Style System

30 frozen shorthand keys for rapid styling. Any CSS property via escape hatch.

Shorthand Reference

Complete table of all 30 shorthands organized by category.

Spacing

ShorthandCSS PropertyExample
ppadding{p:16}
mmargin{m:8}
ptpaddingTop{pt:12}
pbpaddingBottom{pb:12}
plpaddingLeft{pl:24}
prpaddingRight{pr:24}
mtmarginTop{mt:16}
mbmarginBottom{mb:16}
mlmarginLeft{ml:8}
mrmarginRight{mr:8}

Sizing

ShorthandCSS PropertyExample
wwidth{w:full}
hheight{h:64}
fflex{f:1}

Colors

ShorthandCSS PropertyExample
bgbackgroundColor{bg:#18181b}
ccolor{c:#fff}
bcborderColor{bc:#f97316}

Typography

ShorthandCSS PropertyExample
fsfontSize{fs:24}
fwfontWeight{fw:bold}
tatextAlign{ta:center}

Borders

ShorthandCSS PropertyExample
brborderRadius{br:8}
bwborderWidth{bw:1}

Layout

ShorthandCSS PropertyExample
jcjustifyContent{jc:sb}
aialignItems{ai:center}
fdflexDirection{fd:row}

Effects

ShorthandCSS PropertyExample
shadowboxShadow{shadow:"0 4px 12px rgba(0,0,0,0.3)"}

Usage

Styles attach to any node with curly braces. Comma-separated key:value pairs.

text value="Hello" {fs:24,fw:bold,c:#fff,bg:#18181b,p:16,br:8}

Value Shorthands

Common values have aliases so you never type the full string.

ShorthandExpands to
sbspace-between
saspace-around
sespace-evenly
centercenter
startflex-start
endflex-end
stretchstretch
boldfont-weight: 700
full100%

CSS Escape Hatch

Any CSS property not in the shorthand map can be used with quoted keys.

button {"transition":"all 0.2s ease","box-shadow":"0 4px 12px rgba(0,0,0,0.3)"}

Pseudo-selectors

Colon prefix for hover and press states. The compiler maps these to the target framework's interaction model.

button {bg:#f97316,:hover:bg:#ea580c,:press:bg:#c2410c}

Theme References

Define reusable styles with theme nodes and reference them with $.

theme primary {bg:#f97316,c:#fff,br:8,p:12}

button text="Save" $primary

Responsive Styles

In the Tailwind target, responsive prefixes apply automatically. The compiler translates style shorthands into Tailwind utility classes with the appropriate breakpoint prefixes.