CSS parser and compiler
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
scripts
src
.babelrc
.eslintignore
.eslintrc.js
.flowconfig
.gitignore
README.md
package-lock.json
package.json

README.md

dogma-css-parser

CSS parser and compiler.

npm install dogma-css-parser

Usage

Parser

To parse a CSS string into an AST you can do the following:

import {parse} from 'dogma-css-parser'

const css = '.foo {color: red;}'
const ast = parse(css)

The above example will set the constant ast to the following AST:

Compiler