Skip to content

CSS Variables Reference

All component tokens follow: --{comp}-{role}[-{descriptor}]

SegmentPurposeExamples
compComponent abbreviationbtn, card, dlg, inp, fld
roleSemantic rolebg, color, border, radius, shadow
descriptorOptional modifierhover, focus, active, sm, lg
AbbreviationMeaning
bgbackground
bd / borderborder
rad / radiusborder-radius
clr / colortext color
sz / sizefont-size
fwfont-weight
px, pyhorizontal / vertical padding
mx, myhorizontal / vertical margin
elelevation / box-shadow

Override in your own CSS — never edit the generated file:

/* Global override — applies to all buttons */
.btn { --btn-radius: 9999px; }
/* Scoped override — applies only inside .hero */
.hero .btn { --btn-bg: var(--color-accent); }