An extremely fast CSS parser, transformer, bundler, and minifier.

Raw values avoid needing to fully specify the whole AST when returning new CSS values. You can just return a raw CSS string, which Lightning CSS will parse and insert into the AST for you. lightningcss.dev/transforms.…
1
2
1,872
Custom at-rules are validated during parsing, and fully type safe in visitors. We use the definition to automatically infer the types of the prelude and body so you can avoid unnecessary checks. Check out the docs to learn more! lightningcss.dev/transforms.…
Replying to @devongovett
Performed some magic with TypeScript so the rule types in custom visitors are actually inferred from this definition too! 🤯
1
3
6
4,424
Lightning CSS v1.19.0 is out! 📏 Custom at-rule parsing 🍣 Return raw values from custom transforms 🚨 Better error messages in transforms 🪺 Support `&` selector in non-nested rules 🧥 Merge non-adjacent @​layer rules 🧑‍🍳 Improve selector downleveling github.com/parcel-bundler/li…
1
11
52
12,312
Lightning CSS retweeted
Finally, this release also includes: 🪺 Support for nested container and layer rules 🪵 Vendor prefixing for supports rules 🖥️ Compile input from stdin via CLI ⌛️ Reduced Rust crate compile times Happy new year! 🎆 github.com/parcel-bundler/li…
1
3
15
3,336
Lightning CSS retweeted
I've also added documentation for all Lightning CSS features to the website, including transpilation, bundling, css modules, and minification. It gives examples of the main transforms that Lightning CSS performs, and how to configure them. lightningcss.dev/docs.html
1
1
7
3,496
Lightning CSS retweeted
The Lightning CSS playground has also been updated to support custom visitors right in your browser! It also now has a much nicer editing experience with syntax highlighting and inline errors powered by Code Mirror. lightningcss.dev/playground/…
2
1
10
6,046
Lightning CSS retweeted
Excited to announce the Lightning CSS visitor API! It lets you build custom CSS transform plugins in JavaScript. ⚡️ 🚀 6x faster than postcss 🍱 Fully parsed values for all CSS rules and properties 🌾 Granular API 🪆 Composable 💪 Fully typed lightningcss.dev/transforms.…
10
68
430
114,851
Lightning CSS retweeted
CSS minified by @lightningcss 😎
Nextra 2.0 is here: 🔹 Redesigned UI 🔹 Image optimization 🔹 Built-in full-text search 🔹 Build-time code highlighting 🔹 MDX v2 🔹 Next SEO 🔹 Multiple docs zones 🔹 Menus and separators 🔹 ... nextra.site
1
1
27
Lightning CSS v1.17.0 is out! ⚡️ 🪺 Updated nesting syntax 🦋 Rust visitor API for building custom transforms 🖨️ Support for @​page margin rules 🗜️ Simplify :is() selector with a single simple argument 📺 Fix media query parenthesization github.com/parcel-bundler/li…
1
20
118
Lightning CSS retweeted
Really excited about this. I’ve often wanted to manipulate colors programmatically over the years (ala SASS). Happy to see this finally standardized as part of CSS Color Level 5. w3.org/TR/css-color-5/ Lightning CSS already supports color-mix() too, btw! 😄
New release! ⚡️ Lightning CSS now supports relative color syntax, which allows you to adjust colors with math functions! If you've ever wanted to lighten or darken a color, now you can – and a lot more. Playground: lightningcss.dev/playground/… Release notes: github.com/parcel-bundler/li…
4
12
50
New release! ⚡️ Lightning CSS now supports relative color syntax, which allows you to adjust colors with math functions! If you've ever wanted to lighten or darken a color, now you can – and a lot more. Playground: lightningcss.dev/playground/… Release notes: github.com/parcel-bundler/li…
1
25
95
Lightning CSS v1.15.0 is out! ⚡️ Includes support for bundling with inline source maps, an option to preserve imports when analyzing deps, fixes for cascade layers, flex shorthand, custom media queries, and more. github.com/parcel-bundler/li…
6
39
Lightning CSS retweeted
Wrote a Vite plugin for Lightning CSS!⚡ github.com/lawrencecchen/vit…
Excited to announce that Parcel CSS is now Lightning CSS! ⚡️ This new name makes it clear that it can be used outside Parcel, with other build tools or standalone. Had way too much fun designing the new website too! 😜 lightningcss.dev Follow @lightningcss for updates.
1
5
19
Lightning CSS retweeted
Excited to announce that Parcel CSS is now Lightning CSS! ⚡️ This new name makes it clear that it can be used outside Parcel, with other build tools or standalone. Had way too much fun designing the new website too! 😜 lightningcss.dev Follow @lightningcss for updates.
27
120
681