A language service for CSS.
(Work In Progress) It provides full-featured language support, including code completion, diagnostics, hover, and more. Compliant with the Language Server Protocol, CSSlsrs can be integrated into language servers written in Rust or via WebAssembly. We use Biome's CSS parser behind the scenes.
📖 Main repository, with all related crates and packages.
🐛 Report a bug, please read our contributing guidelines and code of conduct first.
🚨 Report a security vulnerability, and be sure to review our security policy.
💬 Join the discussion, if you have any questions, ideas, or suggestions.
Feature | CSSlsrs | VScode | Differences |
---|---|---|---|
Hover | 🟨 | ✅ | Lacks HTML previews |
Completion | ❌ | ✅ | - |
Path completion | ❌ | ✅ | - |
Definition | ❌ | ✅ | - |
References | ❌ | ✅ | - |
Document Symbols | ✅ | ✅ | Supports more symbols |
Document Highlights | ❌ | ✅ | - |
Code Actions | ❌ | ✅ | - |
Code Lens | ❌ | ✅ | - |
Rename | ❌ | ✅ | - |
Colors | ✅ | ✅ | - |
Color Presentation | ✅ | ✅ | Supports for LCH & Lab |
Folding | ✅ | ✅ | - |
Selection Range | ❌ | ✅ | - |
Validation | ❌ | ✅ | - |
Custom data | ❌ | ✅ | - |
Super-set of CSS | ❌ | ✅ | - |