Foundations / Design tokens
Design tokens
Design tokens are the single source of truth for all visual decisions in Flux UI — color, spacing, motion, and border radius. Use CSS variables directly or via Tailwind utilities.
Color
Background
| Token and description | Light value | Dark value |
|---|---|---|
--backgroundPage and app background. | #f6f8fa | #0b0f14 |
--cardCard and panel surface background. | #ffffff | #141a22 |
--mutedSubtle background for hover states and grouped sections. | #f3f4f6 | #1e2630 |
--popoverFloating panel background (tooltips, menus, popovers). | #ffffff | #1a222d |
--accentAccent background for highlighted items. | #f3f4f6 | #1e2630 |
--primary-lightTinted primary background for badges and chips. | #eff4ff | rgba(0,97,227,0.18) |
Text
| Token and description | Light value | Dark value |
|---|---|---|
--foregroundPrimary text color. | #111827 | #f3f4f6 |
--muted-foregroundSecondary / placeholder text. | #6b7280 | #b4bcc8 |
--primary-foregroundText on primary color backgrounds. | #ffffff | #ffffff |
--card-foregroundText on card backgrounds. | #111827 | #f3f4f6 |
Border
| Token and description | Light value | Dark value |
|---|---|---|
--borderDefault border color for cards, inputs, and dividers. | #e5e7eb | #2a3441 |
--inputInput border color. | #e5e7eb | #2a3441 |
--ringFocus ring color. | #0061e3 | #3b82f6 |
Interactive
| Token and description | Light value | Dark value |
|---|---|---|
--primaryPrimary brand color. Used for CTAs, links, and focus. | #0061e3 | #0061e3 |
--primary-hoverHover state for primary interactive elements. | #0055c8 | #3b82f6 |
--destructiveError and destructive action color. | #dc2626 | #f87171 |
--destructive-foregroundText on destructive backgrounds. | #ffffff | #450a0a |
Chart
| Token and description | Light value | Dark value |
|---|---|---|
--chart-1First chart series color. | #0061e3 | #60a5fa |
--chart-2Second chart series color. | #2563eb | #818cf8 |
--chart-3Third chart series color. | #7c3aed | #c4b5fd |
--chart-4Fourth chart series color. | #059669 | #34d399 |
--chart-5Fifth chart series color. | #d97706 | #fbbf24 |
Navigation
| Token and description | Light value | Dark value |
|---|---|---|
--sidebarSidebar background. | #e8eaee | #10151c |
--sidebar-borderSidebar border. | #d8dce3 | #2a3441 |
--sidebar-foregroundSidebar text. | #374151 | #d1d5db |
--headerTop navigation bar background. | #ffffff | #0f1419 |
--header-borderTop navigation bar border. | #e2e5ea | #2a3441 |
Border
Radius
| Token and description | Light value | Dark value |
|---|---|---|
--radiusBase border radius. | 0.375rem (6px) | 0.375rem (6px) |
--radius-xlXL border radius for cards. | 0.625rem (10px) | 0.625rem (10px) |
--radius-2xl2XL border radius. | 0.875rem (14px) | 0.875rem (14px) |
--radius-3xl3XL border radius for panels. | 1.25rem (20px) | 1.25rem (20px) |
Motion
Duration
| Token and description | Light value | Dark value |
|---|---|---|
--motion-duration-instantNo visible delay — used for immediate state changes. | 0ms | 0ms |
--motion-duration-fastQuick micro-interactions (hover, focus). | 120ms | 120ms |
--motion-duration-normalStandard transitions (modals, panels). | 200ms | 200ms |
--motion-duration-slowProgress bars, page transitions. | 320ms | 320ms |
--motion-duration-slowerSlow reveals, complex animations. | 480ms | 480ms |
Easing
| Token and description | Light value | Dark value |
|---|---|---|
--motion-ease-standardDefault UI easing. Smooth, slightly bouncy deceleration. | cubic-bezier(0.16, 1, 0.3, 1) | cubic-bezier(0.16, 1, 0.3, 1) |
--motion-ease-emphasizedSpringy — for overlay entrances and attention draws. | cubic-bezier(0.34, 1.56, 0.64, 1) | cubic-bezier(0.34, 1.56, 0.64, 1) |
--motion-ease-linearConstant speed — for progress bars and looping animations. | linear | linear |