Robust for shadcn/ui

Robust is a shadcn/ui theme built around a muted deep orange primary color (#46392b) with muted deep blue accents (#2b3746). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#46392b) on a neutral background (#040302).

Color palette

TokenLightDark
Background
#ffffffwhite
#040302black
Foreground
#0c0803black
#fcfaf8snow
Card
#ffffffwhite
#040302black
Card foreground
#0c0803black
#fcfaf8snow
Popover
#ffffffwhite
#040302black
Popover foreground
#0c0803black
#fcfaf8snow
Primary
#46392bdarkslategray
#46392bdarkslategray
Primary foreground
#dcd2c6lightgrey
#dcd2c6lightgrey
Secondary
#2b3746darkslategray
#2b3746darkslategray
Secondary foreground
#c6d0dclightgrey
#c6d0dclightgrey
Muted
#e3eaf3lavender
#0c141cblack
Muted foreground
#464e58darkslategray
#a7afb9darkgray
Accent
#2b3746darkslategray
#2b3746darkslategray
Accent foreground
#c6d0dclightgrey
#c6d0dclightgrey
Destructive
#61170amaroon
#e33516orangered
Destructive foreground
#f6b3a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#46392bdarkslategray
#46392bdarkslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button7.50:1AAA
Secondary button7.73:1AAA
Muted text6.95:1AA
Accent7.73:1AAA
Destructive7.27:1AAA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button7.50:1AAA
Secondary button7.73:1AAA
Muted text8.36:1AAA
Accent7.73:1AAA
Destructive4.37:1AA Large

CSS variables

Paste this into your globals.css to use Robust in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.138 0.017 79.087);
  --muted: oklch(0.934 0.014 251.569);
  --muted-foreground: oklch(0.422 0.019 251.777);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.138 0.017 79.087);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.138 0.017 79.087);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.354 0.029 70.385);
  --primary-foreground: oklch(0.868 0.02 71.242);
  --secondary: oklch(0.333 0.031 252.096);
  --secondary-foreground: oklch(0.854 0.02 251.63);
  --accent: oklch(0.333 0.031 252.096);
  --accent-foreground: oklch(0.854 0.02 251.63);
  --destructive: oklch(0.33 0.109 32.366);
  --destructive-foreground: oklch(0.826 0.081 30.14);
  --ring: oklch(0.354 0.029 70.385);
  --chart-1: oklch(0.354 0.029 70.385);
  --chart-2: oklch(0.333 0.031 252.096);
  --chart-3: oklch(0.333 0.031 252.096);
  --chart-4: oklch(0.361 0.034 252.112);
  --chart-5: oklch(0.356 0.033 70.19);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.007 77.063);
  --foreground: oklch(0.986 0.004 71.42);
  --muted: oklch(0.188 0.021 252.233);
  --muted-foreground: oklch(0.752 0.016 251.618);
  --popover: oklch(0.094 0.007 77.063);
  --popover-foreground: oklch(0.986 0.004 71.42);
  --card: oklch(0.094 0.007 77.063);
  --card-foreground: oklch(0.986 0.004 71.42);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.354 0.029 70.385);
  --primary-foreground: oklch(0.868 0.02 71.242);
  --secondary: oklch(0.333 0.031 252.096);
  --secondary-foreground: oklch(0.854 0.02 251.63);
  --accent: oklch(0.333 0.031 252.096);
  --accent-foreground: oklch(0.854 0.02 251.63);
  --destructive: oklch(0.6 0.214 32.122);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.354 0.029 70.385);
  --chart-1: oklch(0.354 0.029 70.385);
  --chart-2: oklch(0.333 0.031 252.096);
  --chart-3: oklch(0.333 0.031 252.096);
  --chart-4: oklch(0.361 0.034 252.112);
  --chart-5: oklch(0.356 0.033 70.19);
}