open-props
modern-normalize
Our great sponsors
open-props | modern-normalize | |
---|---|---|
49 | 8 | |
4,390 | 5,742 | |
- | - | |
8.3 | 2.1 | |
6 days ago | 12 months ago | |
HTML | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
open-props
-
Learn CSS Layout the Pedantic Way
There's still some boilerplate, but I'm a big fan of Open Props[0] because it takes a hybrid approach. CSS isn't necessarily reinventing the wheel, but allowing for easier / more powerful approaches to difficult layouts or things that would otherwise require JS. Bootstrap is fine but troubleshooting advanced layout issues involves a lot of inspecting elements to see what styles are actually being applied (at least in my experience, YMMV) so I'd personally always bet on CSS.
[0] https://open-props.style/
-
Why Tailwind Isn't for Me
I don't quite get the hate for having CSS in another file. Do you also put all your react stuff in one single file ? That same logic and argument can be applied against all modularization.
And really 20-50 tailwind classes in a single element is VERY hard to read and keep in mind. No - it does not make things clear or understandable. One tends to need to re-read and scan over from the beginning and eyes glaze over. Esp if some elements only vary with a few classes missing. I guess it works for people with very high attention to detail and high amount of working memory. I only find it personally frustrating.
Maybe tailwind css works for some bright people. I did try it for a couple of projects and only felt pain.
However, the "atomic css" philosophy behind tailwind is great. I find framewroks like https://open-props.style/ far better to use.
- Htmx and Web Components: A Perfect Match
-
Styling React 2023 edition
Open Props adds to the set by providing extra custom properties for things like easing functions or animations.
-
The Future of CSS: Easy Light-Dark Mode Color Switching with Light-Dark()
> If you wanted to actually solve theming, what you should work for is not a constrained helper function like light-dark(), but instead a shared token schema. Today nearly every company has their own token schema and different ways of naming things in the semantic token layer. If we had a shard language here, not only would it be trivial to add light/dark theming (just redefine a few variables that are already provided for you), code could be shared between sites and inherit the theming/branding.
Isn't that the idea behind https://open-props.style/ (and https://theme-ui.com/ in JS land)?
I think it's a great idea, but hampered by the lack of adoption incentives for the very people that need to adopt it for it to become successful (design system/component library authors). It introduces constraints, but the promised interoperability is not really beneficial to the people who need to work within those constraints.
-
Tailwind CSS and the death of web craftsmanship
I do think that the real value of Tailwind comes from the utility classes, rather than css-in-html paradigm. You could achieve the same, for example, with Pollen.css [0] or Open Props [1].
[0] https://github.com/heybokeh/pollen
[1] https://github.com/argyleink/open-props
-
What is the best styling strategy for a Svelte project?
If you choose to style with plain CSS you can add design tokens as CSS variables with Open Props: https://open-props.style.
-
Released tw-variables: 400 useful Tailwind utilities as ready-to-import CSS variables
Some time ago I discovered Open Props which provides a lot of design tokens as CSS variables and started using it in some of my projects.
-
[Showcase] Searching for Friendly-User for Scrum-Tool Miyagi
CSS: Open Props (https://open-props.style/)
-
What UI framework would you recommend?
https://open-props.style/ gives you design tokens as CSS variables. Itβs CSS only and not Svelte specific.
modern-normalize
-
Tailwind CSS: A critique
Tailwind Preflight is amazing - built on top of modern-normalize, Preflight resets the default inconsistent styles across modern browsers. In addition to modern-normalize, Preflight:
-
MVP.css β Minimalist stylesheet for HTML elements
I think this is the same category as https://github.com/sindresorhus/modern-normalize
`modern-normalized.css` can be for MVP too. Honestly few < 100 lines on top of normalized one isn't that much work.
-
(Help) How to make the brown or red thing in the navigation bar have no margin on the left and right side & also make the logo vertically centered with the text?
You should inspect the elements to find out where the margins around the nav bar are coming from. I assume you never zeroed the margins on the body, but it's good practice to inspect your properties to find out for yourself where things are coming from. To fix, you can probably add body {margin: 0;} to your CSS. An even better way would be to load a modern reset before your styles, something like modern normalize.
-
How to style markdown with Tailwind CSS
Tailwind CSS comes with "an opinionated set of base styles" called Preflight. A helpful CSS reset built on top of modern-normalize.
- Vite vue ts tailwind template: Convert styles to TailwindCSS classes and configs (Part 3)
- What is the de-facto standard CSS reset?
-
Safari is the new Internet Explorer... I thought this when I came across this issue, there's way too many issues like this one.
You know this exists right ?
-
CSS Reset
I recently switched from normalize.css to a "modern" fork https://github.com/sindresorhus/modern-normalize
What are some alternatives?
carbon-components-svelte - Svelte implementation of the Carbon Design System
normalize.css - A modern alternative to CSS resets
svelte-headlessui - Unofficial Svelte port of the Headless UI component library
tailwindcss-typography - Beautiful typographic defaults for HTML you don't control.
pollen - The CSS variables build system
Bootstrap - The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
vue-ts-tailwind - Vite + Vue + TypeScript + TailwindCSS template
vanilla-extract - Zero-runtime Stylesheets-in-TypeScript
caniuse - Raw browser/feature support data from caniuse.com
unocss - The instant on-demand atomic CSS engine.
standardized-audio-context - A cross-browser wrapper for the Web Audio API which aims to closely follow the standard.