You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All tokens are defined in src/styles/theme.css as CSS custom properties and mapped to Tailwind via @theme inline. Never hardcode hex values — always reference the token.
Color Tokens
Foreground / Text
Token
Hex
When to use
--foreground
#202124
Primary text — page titles, body copy, chat messages
Placeholders and disabled states ONLY — never for active labels
⚠️Common mistake: Using --muted-foreground for labels or headers. That token is for empty/disabled states only. Anything that communicates active information uses --secondary-foreground.
Primary buttons, active LeftNav icon, running plan spinner stroke
--sidebar-primary
#2E92A1
Primary button hover bg, selected secondary nav item bg
--accent
#008489
Ghost button text, links — never as a button background fill
⚠️--accent is for text/icon color in ghost contexts only. Some prototype buttons incorrectly use bg-accent — this is a known inconsistency to be fixed.
These are the most common spacing values found across components (not a full design token — just the observed set):
Value
Usage
4px
Gap between icon and label in badges; button icon gap
6px
Badge horizontal padding (px-[6px])
8px
Button padding (px-2), nav item gap
12px
Output tab padding (px-[12px])
16px
Nav list horizontal padding
20px
Table cell padding (px-[20px])
24px
Page section padding
Border Radius Tokens
Variable
Value
Use
--radius-button
4px
Buttons, badges, chat item rows
--radius-card
8px
Cards, panels, output blocks, chat input
Shadow Tokens
Variable
Value
Use
--shadow-sm
0px 2px 4px rgba(16,18,20,0.10)
Card elevation, dropdown menus
--shadow-dropdown
4px 4px 16px 0px rgba(16,18,20,0.10)
Portal-rendered dropdowns
Code Syntax Colors (NOT design tokens)
SQL/code editors must use a standard code-editor palette. Do not use UI design tokens (--primary, --accent, etc.) for syntax highlighting — they clash with the Dremio brand.