Skip to main content

Colors

Niom components use semantic CSS custom properties. This keeps component variants consistent and gives applications one place to customize their theme.

Preview
PrimarySecondaryTertiaryAccentHighlightDanger
TokenDefaultUsage
--color-background#08111fPage and control backgrounds
--color-foreground#f5f7fbPrimary text
--color-surface#111c30Cards, panels, and menus
--color-muted#1d2a42Subdued fills and loading states
--color-border#2b3850Borders and dividers
--color-primary#38bdf8Main actions and selected states
--color-secondary#a78bfaSecondary emphasis
--color-tertiary#10288cAlternative strong emphasis
--color-accent#34d399Success and positive states
--color-danger#ef4444Errors and destructive actions
--color-highlight#f5b942Ratings and warnings

Override tokens​

Load your overrides after the Niom stylesheet:

theme.css
:root {
--color-primary: #0ea5e9;
--color-primary-hover: #38bdf8;
--color-secondary: #8b5cf6;
--color-accent: #10b981;
}