67 releases
Uses new Rust 2024
| new 0.0.18-canary.f2744799a4 | Feb 14, 2026 |
|---|---|
| 0.0.18-canary.ebb418d345 | Feb 11, 2026 |
| 0.0.16 | Jan 29, 2026 |
| 0.0.11-canary.efc7e551f1 | Dec 29, 2025 |
| 0.0.7-canary.f08affa44d | Oct 27, 2025 |
#90 in Procedural macros
27 downloads per month
Used in 5 crates
4MB
53K
SLoC
css_ast
CSS Abstract Syntax Trees with visitable nodes and style value types.
Features
- Complete AST definitions: Generated and handwritten node types for all CSS constructs
- Visitable nodes: Implement visitor patterns for AST traversal and transformation
- CSS value types: Comprehensive support for all CSS value types
- Property definitions: Type-safe representations of CSS properties
- Generated from spec: Many value definitions automatically generated from CSS specifications
- Feature gates: Optional dependencies for chromashift, miette, serde support
Optional Features
visitable- Enables visitor pattern support for AST traversalchromashift- Enables color conversion utilitiesmiette- Enables rich diagnostic integrationserde- Enables serialization/deserialization support
Part of csskit
This crate is part of the csskit project, a comprehensive CSS toolchain.
For more information, visit csskit.rs.
License
MIT
Dependencies
~3–17MB
~202K SLoC