Colors
Theme color palette, optional main theme colors with live preview, and usage guide for CSS tokens and tone utilities.
1. Theme Color Palette
Semantic brand & status tokens. Every text colour maintains ≥ 4.5:1 WCAG AA contrast in both Light and Dark modes. Click any swatch to copy its token.
Primary buttons, active links, charts, focus rings
Positive KPIs, completed states, confirmations
Pending actions, low stock, caution notices
Neutral highlights, informational badges, tips
Destructive actions, errors, overdue alerts
Muted badges, archived items, secondary labels
Dynamic Primary Scale
Derived live from --primary via color-mix(). Pick any optional colour below to watch this ramp update.
Surfaces, Borders & Text Tokens
2. Optional Main Theme Colors
Want a different brand colour for the main theme? Click any swatch below to apply it live across buttons, sidebar, links, and charts.
A full Theme Preset is active. Select Default under Full-Palette Presets below to unlock individual primary colour swatches.
Optional Full-Palette Presets
Need a completely different background, card surface, and ink mood? Click any preset to preview it live.
3. How to Use Colors
Use semantic tone utilities instead of hardcoded hex colours so your UI automatically adapts to Dark mode, optional colours, and presets.
| Tone | Soft Badge | Solid Badge | Icon Box | Tone Surface & Text | Progress Bar |
|---|---|---|---|---|---|
| primary | Primary | Primary |
|
Soft surface
Tone text
|
|
| success | Success | Success |
|
Soft surface
Tone text
|
|
| warning | Warning | Warning |
|
Soft surface
Tone text
|
|
| info | Info | Info |
|
Soft surface
Tone text
|
|
| danger | Danger | Danger |
|
Soft surface
Tone text
|
|
| neutral | Neutral | Neutral |
|
Soft surface
Tone text
|
|
A. Semantic Utility Classes
Combine tone-* or shortcut classes in HTML so components follow any selected theme.
<!-- Badges & icon tiles -->
<span class="badge-primary">Active</span>
<span class="badge-solid-success">Paid</span>
<span class="icon-box-warning">...</span>
<!-- Dynamic tone from data -->
<div class="tone-info tone-soft p-3">
<span class="tone-info tone-text">Note</span>
</div>
B. Set Default Theme Color
Pick any optional colour as your site default in js/site-config.js or on <html>.
window.SiteConfig = {
mode: '', // '' | 'dark' | 'system'
color: 'blue', // indigo, teal, green, mono…
preset: '', // or 'tokyo-night', 'nord-frost'
};
<!-- Or directly on <html> -->
<html data-theme-color="teal">
C. Add Your Own Brand Hex
Override --primary once in CSS; accents, rings, sidebar pills, and charts derive from it automatically.
:root[data-theme-color="brand"] {
--primary: #0EA5E9;
}
/* Solid fills always use --primary-foreground */
.my-cta {
background: var(--primary);
color: var(--primary-foreground);
}