{"data":{"slug":"lightning-css","name":"Lightning CSS","tagline":"MPL-2.0 CSS parser, transformer, and minifier in Rust","category":"libraries","categoryName":"Libraries","url":"https://lightningcss.dev","github":"https://github.com/parcel-bundler/lightningcss","pricing":"open-source","hook":"Lightning CSS is the Rust CSS engine when you want parsing, transforms, and minification without bundler lock-in.","whatsGood":"MPL-2.0. Standalone CSS transforms at build-tool speed — vendor prefixing, nesting, custom media, minification, and CSS modules with a single library. Plugs into Vite, Parcel, or your own toolchain. Written in Rust with WASM and Node bindings. Replaces Autoprefixer + cssnano pipelines.","theCatch":"MPL-2.0 is not MIT — modifications to Lightning CSS itself must be disclosed. Vs Biome (linter/formatter), Vite/esbuild (bundlers with built-in CSS), and PostCSS (plugin ecosystem): Lightning CSS is the *CSS transform engine*, not a general bundler and not a design-time linter. No PostCSS plugin compat — you migrate config, not plugins.","verdict":"MPL-2.0 CSS engine. Free forever; use when you want one fast Rust library instead of a PostCSS plugin chain.","addedAt":"2026-09-09","featured":false,"domain":"Libraries","subSpecialty":"Tooling","subcategory":"Tooling","tags":["self-host","copyleft","active"],"capabilities":["css","minify","transform"],"surfaces":["Self-host"],"ecosystem":["Rust","Node.js","WASM"],"licenseModel":"MPL-2.0","githubStars":7711,"starsPerWeek":29,"access":"free","archived":false,"repo":{"createdAt":"2021-10-09","pushedAt":"2026-10-08","license":"MPL-2.0","archived":false,"checkedAt":"2026-10-19"}},"related":[{"slug":"hono","name":"Hono","tagline":"Tiny TypeScript web framework that runs on every runtime"},{"slug":"phaser","name":"Phaser","tagline":"MIT HTML5 2D game framework with scenes, physics, and tilemaps"},{"slug":"pixijs","name":"PixiJS","tagline":"MIT 2D WebGPU/WebGL renderer, not a game engine"},{"slug":"babylonjs","name":"Babylon.js","tagline":"Apache-2.0 3D engine for the web, now on v9"},{"slug":"playcanvas","name":"PlayCanvas","tagline":"MIT WebGL2/WebGPU engine plus an optional hosted Editor"}],"links":{"self":"/api/gems/lightning-css","html":"/gems/lightning-css","markdown":"/gems/lightning-css.md","category":"/api/gems?category=libraries","categoryPage":"/stacks/libraries"}}