@tbela99/css-parser Playground
Parse Options
Minify
Parse color
Resolve @import
Remove @charset
Remove empty nodes
Remove duplicate declarations
Compute shorthand properties
Compute calc() expressions
Inline CSS variables
Validate CSS
Lenient validation mode
CSS Nesting
Rewrite URLs
Sourcemap
Render Options
Beautify
Minify
Convert color
Remove comments
Preserve license
Soucemap
Expand nesting rules
CSS Preset
None
Calc
Validation
Import Bootstrap
Import Tailwind CSS
:root { --color: green; } ._19_u :focus { color: hsl(from var(--color) calc(h * 2) s l); } :root { --preferred-width: 20px; } .foo-bar { width: calc(calc(var(--preferred-width) + 1px) / 3 + 5px); height: calc(100% / 4);}
Result
Stats
Errors
AST
GitHub