-
Notifications
You must be signed in to change notification settings - Fork 0
Class API
Class names follow:
<prefix>-<suffix>
Examples:
saas-buttonbento-cardretro-nav-link
<prefix> comes from the selected data-ui style.
These suffixes exist in every style file.
pagecontainersectiongridstackclusterpanelwellinsetcardtoolbarnavnav-linktable-wraptable
titlesubtitlekickerheadingcopylabelhelp-texttext-primarytext-secondarytext-mutedtext-successtext-warningtext-dangertext-accent
fieldinputtextareaselect
buttonbutton-primarybutton-secondarybutton-dangericon-buttonbadgebadge-primarybadge-secondarybadge-successbadge-warningbadge-dangeralertalert-successalert-warningalert-dangeralert-titlealert-bodyprogressprogress-barhover-liftspinnerloading-spinnerspinner-smspinner-lgtooltiptooltip-arrow
Every style has prefixed spinner utilities:
<span class="saas-spinner" aria-label="Loading"></span>
<span class="saas-loading-spinner saas-spinner-lg" aria-hidden="true"></span>
<button class="saas-button saas-button-primary" aria-busy="true">Saving</button>Inside a [data-ui="..."] scope, generic .ui-spinner, .loading-spinner, and [data-loading-spinner] elements also receive theme-aware spinner styling.
Every style has prefixed tooltip utilities plus generic scoped hooks:
<span class="saas-tooltip" role="tooltip">
Helpful context
<span class="saas-tooltip-arrow" aria-hidden="true"></span>
</span>Inside a [data-ui="..."] scope, generic .ui-tooltip, [role="tooltip"], and [data-tooltip] elements inherit the selected UI system.
is-active is a state class, not a prefixed utility. Apply it to supported prefixed components:
<a class="saas-nav-link is-active">Overview</a>
<button class="saas-button is-active">Active</button>The same components also support native state hooks such as aria-current="page" and aria-pressed="true" where appropriate.
The following suffixes are available in:
minimal-saasbentomaximalistbauhaustactileneumorphismretrofuturism
Suffixes:
bg-primarybg-secondarydisabledsurfacesurface-smsurface-lgborderbutton-ghostcheckcheck-controlradioradio-controlswitchswitch-trackswitch-thumbdividerpillroundedrounded-lgrounded-xlsplitsr-onlyvisually-hiddenskip-link
| Suffix | Styles |
|---|---|
pressed |
tactile, brutalism
|
console |
cyberpunk, retro-glass
|
empty-state, metric, metric-label, metric-value
|
minimal-saas |
grid-feature, stat, stat-label, stat-value, tile, tile-sm, tile-md, tile-lg
|
bento |
callout, sticker, wiggle
|
maximalist |
block, composition, rail
|
bauhaus |
bevel, knob
|
tactile |
bubble |
y2k |
Semantic text utilities use the active theme palette directly:
.saas-text-primary { color: var(--saas-primary); }
.saas-text-warning { color: var(--saas-warning); }Filled classes such as button-primary and badge-warning use compact on-* aliases such as --saas-on-primary and --saas-on-warning for text over colored fills.
Color schemes are shared across UI systems in theme-colors.css; class APIs remain prefix-bound to the selected data-ui.
button-primary by style:
- Minimal SaaS:
saas-button-primary - Neumorphism:
neo-button-primary - Cyberpunk:
cyber-button-primary - Retro Glass:
rg-button-primary