An open API service indexing awesome lists of open source software.

https://github.com/csskit/csskit

Refreshing CSS
https://github.com/csskit/csskit

bundler css linter parser rust toolchain transpiler

Last synced: 3 days ago
JSON representation

Refreshing CSS

Awesome Lists containing this project

README

          



csskit



csskit on npm

recent builds


License

> [!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 →][docs]**

## Installation

### Node.js

```sh
npm install csskit
```

## Packages

### Rust Crates

| Crate | Description |
| --------------------------------------------- | -------------------------- |
| [css_ast](./crates/css_ast) | CSS Abstract Syntax Tree |
| [css_lexer](./crates/css_lexer) | CSS tokenizer/lexer |
| [css_parse](./crates/css_parse) | CSS parser |
| [csskit](./crates/csskit) | Main CLI and library |
| [csskit_lsp](./crates/csskit_lsp) | Language Server Protocol |
| [csskit_transform](./crates/csskit_transform) | AST transformations |
| [csskit_highlight](./crates/csskit_highlight) | Syntax highlighting |
| [chromashift](./crates/chromashift) | Color space conversions |
| [css_feature_data](./crates/css_feature_data) | Browser compatibility data |

### Node.js Packages

| Package | Description |
| ---------------------------------------------- | -------------------- |
| [csskit](https://www.npmjs.com/package/csskit) | CLI tool for Node.js |

### Editor Extensions

| Package | Description |
| ----------------------------------- | ---------------- |
| [VSCode](./packages/csskit_vscode/) | VSCode Extension |
| [Zed](/packages/csskit_zed) | Zed Extension |

## Acknowledgments

Previously known as `hdx`. Special thanks to [@sethvincent] for graciously
transferring the `csskit` name.

## License

MIT

[oxc]: https://github.com/Boshen/oxc
[docs]: https://csskit.rs
[@sethvincent]: https://github.com/sethvincent