Skip to content

CssSpecPatterns ​

Tier 1: W3C CSS Formal Grammar Patterns

Patterns derived from the official W3C CSS specification: https://www.w3.org/TR/CSS2/syndata.html#lexical-units

These are standard CSS constructs used across all stylesheets: identifiers, keywords, colors, lengths, units, function names.

All patterns use modern named capture groups for type safety and IDE completion.

Variables ​

Released under the MIT License