postcss-nested
postcss-plugins
postcss-nested | postcss-plugins | |
---|---|---|
10 | 19 | |
1,189 | 996 | |
0.3% | 1.8% | |
7.1 | 9.7 | |
9 months ago | 4 days ago | |
JavaScript | CSS | |
MIT License | MIT No Attribution |
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.
postcss-nested
-
Vanilla+PostCSS as an Alternative to SCSS
And we have to make sure that it runs before the nesting plugin, otherwise it will not work at all due to an issue when using both plugins together.
- I've started breaking tailwind classes into multiple lines and feel like this is much easier to read than having all the classes on one line. Does anyone else do that? Any drawback to it?
-
Is there any importance of using CSS preprocessor in Svelte?
postcss-nested
- Is SASS Worth Learning?
-
Can you designate multiple CSS rules to be included within a selector?
What you're describing is nesting, which is currently in the proposal stages for CSS. That being said, nesting has long been a feature in many preprocessors, such as sass and less. You can also use this PostCSS plugin if you only want the nesting and nothing else.
- PostCSS- NESTED --- How can i use it inside a component
-
PostCSS nesting with CSS variables isn't working in Tailwind CSS & Next.js
My PostCSS Config contains postcss-preset-env already which should support for CSS nesting. I also installed postcss-nested & postcss-css-variables, just in case.
-
Here's my website setup...
PostCSS Nested - so I can use Sass-like nesting.
- PostCSS Author is “burned out” on project
-
Im Watching A Course For Laravel And Working With
A quick example that demonstrates what I've said would be the postcss nesting plugin: https://github.com/postcss/postcss-nested
postcss-plugins
-
The CSS Odyssey: Why I Turned back to CSS After Trying Everything Else
Media query has limitations. @media(min-width: var(--breakpoint-lg)) won't work. PostCSS plugins support custom media query @custom-media --small-viewport (max-width: 30rem);, then @media (--small-viewport). Still duplications, but at least I can have breakpoints all defined in one file.
- Rethinking CSS in JS
-
Release Radar · August 2024: Major updates from the open source community
Who likes modern CSS? PostCSS Preset Env can help you convert modern CSS into readable browser code, by determining the polyfills needed based on the target browser or runtime environment. The latest version brings support for CSS nesting to align with the latest specifications, and the order of nested declarations and rules are preserved to better support mixins. This new update only supports Node.js 18 or higher. Check out the full list of changes in the release notes.
-
Supporting ancient browsers using modern Web-Tooling
To bring modern CSS features to older browsers, we can use postcss-preset-env. PostCSS allows you to use modern and or future CSS features and automatically adds prefixes and, most importantly, polyfills as needed. If you don't know PostCSS, you probably already heard of Tailwind, right? It's just another PostCSS-Plugin ;)
-
Modern CSS Layouts: You Might Not Need a Framework for That
Sass variables and CSS Custom Properties (a.k.a. CSS variables) are pretty different from each other [1].
If you want to use CSS Nesting and be backwards compatible with older browsers, the PostCSS plugin postcss-preset-env handles that and lots of other new CSS features that older browsers don't support [2].
[1]: https://sass-lang.com/blog/sass-and-native-nesting/
[2]: https://preset-env.cssdb.org
-
Old Dogs, New CSS Tricks
> If you want to use the normal non-& syntax, then you will need to use Safari 17.2, yes.
Non-& is not “the normal syntax”. It was a late addition to the specification. Both with and without & are normal, but with & has better compatibility.
Even if you don’t use the &, you can still write nested CSS and support older versions of Safari, like I said. Use PostCSS or Lightning CSS. There are normally several areas where you can start writing modern CSS today and fill in the backwards compatibility with these tools. It’s not just nesting.
https://preset-env.cssdb.org
https://lightningcss.dev/transpilation.html
-
PostCSS - my initial experience
the author of the most popular PostCSS plugin himself recommended the postcss-preset-env over his own creation which is cssnex, and
-
CSS Is Fun Again
The example in A) won't work as the plugin can't convert the functions with variables in it. https://github.com/csstools/postcss-plugins/tree/main/plugin...
-
What are some harsh truths that r/webdev needs to hear?
You can use this today if you're using PostCSS in your build process (which is the case if you use autoprefixer)! https://preset-env.cssdb.org/
-
Vanilla+PostCSS as an Alternative to SCSS
Switching from a ready-made tool like Sass or a recommendation package like cssnext (deprecated since 2019) or PostCSS Preset Env (archived in 2022), to the modular PostCSS Preset Env plugin set we can choose a helpful and convenient set of future CSS features beyond the current stable client CSS.
What are some alternatives?
postcss-preset-env - Convert modern CSS into something browsers understand
tailwindcss - A utility-first CSS framework for rapid UI development. [Moved to: https://github.com/tailwindlabs/tailwindcss]
css-modules - Documentation about css-modules
react-refresh-webpack-plugin - A Webpack plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.
postcss-nesting - Nest style rules inside each other
cssnano - A modular minifier, built on top of the PostCSS ecosystem. [Moved to: https://github.com/cssnano/cssnano]