node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

csstss

CSSTSS

A CSS to TSS (Titanium Style Sheet) compiler.

Usage

Example

compile = require "csstss"
tss = compile "Label, Button { font-family: Arial; }"

Output

"Label": {
    "font": {
        "fontFamily": "Arial"
    }
}
"Button": {
    "font": {
        "fontFamily": "Arial"
    }
}