Overview
Colour
Paper and ink, and one orange light. Orange is scarce: if a layout has more than a few orange moments, it has too many.
Light
--backgroundPage
--cardControl fill: fields, chips, cards
--popoverMenus, calendars, country search
--secondary
--mutedDisabled and read-only fill, segmented track
--accentHighlighted menu item or day
Dark
--backgroundPage
--cardControl fill: fields, chips, cards
--popoverMenus, calendars, country search
--secondary
--mutedDisabled and read-only fill, segmented track
--accentHighlighted menu item or day
Light
--foregroundValues, labels, option titles
--card-foreground
--popover-foreground
--secondary-foreground
--muted-foregroundHelper, placeholder, icons
--accent-foreground
Dark
--foregroundValues, labels, option titles
--card-foreground
--popover-foreground
--secondary-foreground
--muted-foregroundHelper, placeholder, icons
--accent-foreground
Light
--borderHairlines and dividers, never control edges
--inputKept for shadcn; Dex controls use the control borders
--control-border-subtleRest border, every control
--control-borderHover border, every control
--control-border-strongFocus edge, every control
Dark
--borderHairlines and dividers, never control edges
--inputKept for shadcn; Dex controls use the control borders
--control-border-subtleRest border, every control
--control-borderHover border, every control
--control-border-strongFocus edge, every control
Light
--primaryDefault buttons, selected fill or border
--primary-foregroundThe mark or text on primary
--destructiveEvery error border and message
--destructive-foregroundText on a destructive fill: white in light, near-black in dark
--ringKept for shadcn; Dex focus is control-border-strong
--successDone, such as an upload complete
--success-foregroundText on a success fill
--warningA warning fill: a dot, a tint, a solid pill. Too light for text
--warning-foregroundText on a warning fill
--warning-strongWarning text and icons on the page or on a warning tint
--info
Dark
--primaryDefault buttons, selected fill or border
--primary-foregroundThe mark or text on primary
--destructiveEvery error border and message
--destructive-foregroundText on a destructive fill: white in light, near-black in dark
--ringKept for shadcn; Dex focus is control-border-strong
--successDone, such as an upload complete
--success-foregroundText on a success fill
--warningA warning fill: a dot, a tint, a solid pill. Too light for text
--warning-foregroundText on a warning fill
--warning-strongWarning text and icons on the page or on a warning tint
--info
Light
--brandDex orange: the mark, one main action, one highlight
--brand-foregroundText on brand
--brand-strongOrange for small type and links on paper, where Dex orange would fail contrast
--app-backgroundBehind the app shell and product frames
--app-foregroundOnly as a tint: /50 selected tab, /35 user chat bubble, /25 hover
--linkedin
--linkedin-hover
Dark
--brandDex orange: the mark, one main action, one highlight
--brand-foregroundText on brand
--brand-strongOrange for small type and links on paper, where Dex orange would fail contrast
--app-backgroundBehind the app shell and product frames
--app-foregroundOnly as a tint: /50 selected tab, /35 user chat bubble, /25 hover
--linkedin
--linkedin-hover
Light
--sidebar
--sidebar-foreground
--sidebar-primary
--sidebar-primary-foreground
--sidebar-accent
--sidebar-accent-foreground
--sidebar-border
--sidebar-ring
Dark
--sidebar
--sidebar-foreground
--sidebar-primary
--sidebar-primary-foreground
--sidebar-accent
--sidebar-accent-foreground
--sidebar-border
--sidebar-ring
Light
--shadow-colorEvery shadow layer, at 2–6%
Dark
--shadow-colorEvery shadow layer, at 2–6%