@sethfowler/css-tree (npm): CSSTree is a tool set to work with CSS, including fast detailed parser (string->AST), walker (AST traversal), generator (AST->string) and lexer (validation and matching) based on knowledge of spec and browser implementations
Keywords: css|ast|tokenizer|parser|walker|lexer|generator|utils|syntax|validation