Utilities
The complete UnoCSS vocabulary — every shortcut in uno.config.ts, rendered from shortcutAliases so this list tracks the source.
section-containersection-container-smsection-container-lgsection-paddingsection-padding-smflex-centerflex-betweenflex-col-center
cardcard-hovercard-glasscard-featurecard-interactivecard-subtle
badgebadge-primarybadge-secondarybadge-successbadge-warningbadge-glass
pillpill-hover
heading-displayheading-heroheading-sectionheading-subsectionheading-cardtext-bodytext-body-smtext-mutedtext-subtletext-captiongradient-textgradient-text-primarygradient-text-accent
glassglass-lightglass-darkglass-subtle
soft-shadowpremium-shadowglow-primaryglow-accent
interactinteract-liftinteract-glowfocus-ringfocus-ring-primaryhover-lifthover-scale
dividerdivider-gradientdivider-y
icon-boxicon-box-smicon-box-mdicon-box-lgicon-box-gradient
Dynamic rules
Regex utilities from uno.config.ts — values are filled in at extraction time.
| Pattern | Compiles to |
|---|---|
| theme-color-{name} | color: var(--color-{name}) — or hsl() with /opacity |
| theme-bg-{name} | background-color: var(--color-{name}) |
| theme-bc-{name} | border-color: var(--color-{name}) |
| delay-{n} | animation-delay: {n}ms |
| duration-{n} | animation-duration + transition-duration: {n}ms |
| z-{n} | z-index: {n} |
| opacity-{n} | opacity: n/100 |
| blur-{sm…3xl} | filter: blur(4px…40px) |
Icons
presetIcons renders icons as pure CSS classes — no runtime icon component needed for these collections.
| Prefix | Collection |
|---|---|
| i-ph-* | Phosphor — default set, duotone for decorative |
| i-tabler-* | Tabler |
| i-mdi-* | Material Design Icons |
| i-logos-* | Brand logos |
Attributify mode
Utilities can be written as attributes. `dark` and `light` are in ignoreAttributes — a prop named dark/light gets extracted as a garbage selector and crashes production minification. Name the prop isDark.
Extraction gotchas
UnoCSS scans source text — these patterns silently produce no CSS or break the build.
- No interpolated classes.
bg-zinc-*inside a template string is never extracted — write full class names or use inline styles (this site blocklists${and+in class candidates). - Dynamic classes need the safelist. If a class can only appear at runtime, add it to
safelistin uno.config.ts. - Arbitrary values are fine when
static —
shadow-[0_8px_30px_rgb(0,0,0,0.04)]is howsoft-shadowis defined.