postcss-plugins
csswg-drafts
postcss-plugins | csswg-drafts | |
---|---|---|
12 | 70 | |
837 | 4,278 | |
1.7% | 0.8% | |
9.9 | 9.9 | |
5 days ago | 3 days ago | |
CSS | Bikeshed | |
MIT No Attribution | GNU General Public License v3.0 or later |
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-plugins
-
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.
-
More CSS reactions
To implement :has support, the css-has-pseudo polyfill can be used. This polyfill includes both a PostCSS plugin and a JS function to be used in the HTML page.
-
CSS nesting is coming
Yes, it's behind a flag and only in future versions, but it is a huge step forward. Those versions will soon be available, and we can try it locally (unfortunately, not on production without a polyfill or a plugin).
-
The Complete Guide for Setting Up React App from Scratch (feat. TypeScript)
w/ postcss-preset-env(v7.8.3): convert modern CSS into something most browsers can understand, determining the polyfills you need based on your targeted browsers or runtime environments. It takes the support data that comes from MDN and Can I Use and determine from a browserlist whether those transformations are needed. It also packs Autoprefixer within and shares the list with it, so prefixes are only applied when you're going to need them given your browser support list.
-
In terms of styling, how does the structure of your project using traditional CSS look like?
There's a @ custom-media proposal (and PostCSS plugin) that can make it a lot easier to use media queries across components. Define your MQs in your global CSS, use everywhere. If you're worried about repeating MQs in your CSS from a bloat perspective, there are PostCSS plugins for that as well.
- Is there a way to shorten .contactform h2,… and to say something like .contactform (h2, ul, label)?
-
Is a bracket within a bracket possible? (HTML/CSSS)
The term you are looking for is "nesting". CSS currently does not support it. But there is a draft being worked on. No browser currently supports it, though. Most CSS Pre- or Postprocessors like Sass, Less, Stylus, PostCSS support nesting.
csswg-drafts
-
Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout – WebKit
For more background, and some detailed discussion of the opposite argument ("display: masonry" over "display:grid"+"grid-template-rows: masonry") see https://github.com/w3c/csswg-drafts/issues/9041
-
Chrome Dev: High Definition CSS Color Guide
The tracking issue: https://github.com/w3c/csswg-drafts/issues/8659
As noted there, okHSL/HSV keeps the perceptual uniformity by removing some peaks beyond the geometric limit of HSL/HSV, and it is unclear whether it is what users do expect or not.
-
Announcing Winduum 1.0 - Framework agnostic component library for TailwindCSS
The idea is that you should be able to set accent color via accent-color CSS property. It is discussed that there should be access to the color value of this property, e.g. via AccentColor or AccentColorText.
-
Learn CSS Layout the Pedantic Way
What do you mean by "official documentation"? The specification [1]? MDN [2]?
[1] https://drafts.csswg.org/
[2] https://developer.mozilla.org/en-US/docs/Web/CSS
The former is not meant as a learning resource for new web devs and the latter usually has information about the "baseline" support ond browser compatibility tables.
-
CSS WG resolved to officially work on native custom functions and mixins
The link corresponding to the actual submission title (“CSS WG resolved to officially work on native custom functions and mixins”):
https://github.com/w3c/csswg-drafts/issues/9350#issuecomment...
> RESOLVED: Start ED of css-mixins for CSS Custom Functions and Mixins
-
Weird things engineers believe about Web development
Recently I was reading the Learn CSS the pedantic way book and the definition for inline boxes did not match the way that anonymous block boxes were generated when an inline-level element had a block-level element as its child. So I went looking elsewhere for a more appropriate definition for that case and found this issue on standards: https://github.com/w3c/csswg-drafts/issues/1477 It was really interesting to know that I was not the only one confused. My question was: Does the inline-box generated by the inline-level element contains the box generated by the block-level child or there wasn't an inline-box that was a parent of them all but there were 2 siblings inline-level boxes of the block-level box that were wrapped in another anonymous block boxes? Reading that issue I got to know the concept of fragments, which I did not know browsers had. But the issue seems to suggest that the box tree for this case should have the inline-box as being a parent of the block-box. Which led me to another question, in that case, if I apply a border to the parent inline-level element, shouldn't it apply to the overall box that is generated (it does not)? The answer is that borders between block-boxes and inline-level boxes should not intersect but that is really difficult to derive from reading the standards alone. Anyway it was headache-inducing trying to learn the box-model pedantically :)
-
CSS Is Fun Again
With all the recent CSS improvements I still miss the possibility to have working transition to "height:auto". The issue [1] on csswg-drafts is the most upvoted one. At least we can now use css grid and track sizes transitions, but it's far from intuitive, transition for "height:auto" should just work.
[1]: https://github.com/w3c/csswg-drafts/issues/626
- Proposed "au" unit for CSS provides for styling on an astronomical scale
-
The Future of CSS: Easy Light-Dark Mode Color Switching with Light-Dark()
Masonry isn’t ready to be shipped as there are still quite a few open spec issues [^1] that need to be resolved first.
[^1]: https://github.com/w3c/csswg-drafts/issues?q=is%3Aissue+is%3...
-
CSS Solves Auto-Expanding Textareas
the irc log is here: https://github.com/w3c/csswg-drafts/issues/7542#issuecomment...
i had the same reaction, it seems like a very weird syntax. but after reading the discussion i get it: you're telling a form field to behave like a normal html element, instead of behaving like a form field.
What are some alternatives?
tailwindcss - A utility-first CSS framework for rapid UI development. [Moved to: https://github.com/tailwindlabs/tailwindcss]
Modernizr - Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
css-experiments
open-props - CSS custom properties to help accelerate adaptive and consistent design.
css-houdini-drafts - Mirror of https://hg.css-houdini.org/drafts
WHATWG HTML Standard - HTML Standard
cssnano - A modular minifier, built on top of the PostCSS ecosystem. [Moved to: https://github.com/cssnano/cssnano]
Rotativa - Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
awesome-typescript-loader - Awesome TypeScript loader for webpack
rellax - Lightweight, vanilla javascript parallax library
react-refresh-webpack-plugin - A Webpack plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.
container-query-polyfill - A polyfill for CSS Container Queries