50 releases
Uses new Rust 2024
| new 0.0.18-canary.f8df552bcc | Feb 17, 2026 |
|---|---|
| 0.0.18-canary.f2744799a4 | Feb 14, 2026 |
| 0.0.16 | Jan 29, 2026 |
| 0.0.11-canary.efc7e551f1 | Dec 29, 2025 |
#23 in #css-parser
Used in csskit
3.5MB
49K
SLoC
[!WARNING] Alpha Quality: csskit is in active development and not yet ready for production use. APIs may change without notice.
csskit is a high-performance CSS toolchain written in Rust, inspired by oxc. It provides blazingly fast parsing, minification, linting, formatting, as well as IDE integration with an LSP.
Features
- Parser: Spec-compliant CSS parser with full AST support
- Minifier: Aggressive minification for faster asset delivery
- Formatting: Beautify your CSS with consistent formatting
- Transformations: Transform modern syntax to support a wide variety of browsers.
- LSP: Language server integration for editors and IDEs
- Highlighting: Syntax highlighting support with Semantic Tokens
Visit csskit.rs for full documentation and guides →
Installation
Node.js
npm install csskit
Packages
Rust Crates
| Crate | Description |
|---|---|
| css_ast | CSS Abstract Syntax Tree |
| css_lexer | CSS tokenizer/lexer |
| css_parse | CSS parser |
| csskit | Main CLI and library |
| csskit_lsp | Language Server Protocol |
| csskit_transform | AST transformations |
| csskit_highlight | Syntax highlighting |
| chromashift | Color space conversions |
| css_feature_data | Browser compatibility data |
Node.js Packages
| Package | Description |
|---|---|
| csskit | CLI tool for Node.js |
Editor Extensions
| Package | Description |
|---|---|
| VSCode | VSCode Extension |
| Zed | Zed Extension |
Acknowledgments
Previously known as hdx. Special thanks to @sethvincent for graciously
transferring the csskit name.
License
MIT
Dependencies
~3.5–5.5MB
~103K SLoC