Menu
Overview
General
ButtonBadgePillsAvatarBrand lockupLayout
ContainerGrid & RowSurface & text utilitiesApp shellPage headerData Display
CardTableChartsCalendarStatsBulletsLeadersLogo wallCollapse & DisclosureTimelineValue chainDescriptionsFeedback
AlertProgressModalSlide-overSkeletonEmpty stateForms
Field & InputDropdownLead form & CTA rowDate pickerFilter barNavigation
NavSide navigationTop navigationApp switcherUser menuStepperTabsBreadcrumbPaginationTemplates
Sign-in pageSigned-out pageSettings layoutTheming
Browser tabProduct themesLayout
Surface & text utilities
Surface ground and secondary-text helpers that stay correct in dark mode.
.surface · .muted
Primary text on a surface.
Secondary text uses .muted, it re-tunes correctly in dark mode.
<div class="surface" style="border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-4)">
<p style="margin:0">Primary text on a surface.</p>
<p class="muted" style="margin:0">Secondary text uses <code>.muted</code>, it re-tunes correctly in dark mode.</p>
</div>
Usage
- Never pair a hardcoded dark text colour with a token surface, it turns dark-on-dark in dark mode. Use the role tokens (
--text-secondary,--accent-text,--success-text…). - In dark mode, raised surfaces get lighter, not darker, the kit's
--surface-raisedhandles it.