Robust for shadcn/ui

Robust is a shadcn/ui theme built around an orange primary color (#ab8d63) with violet accents (#8d63ab). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#ab8d63) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fcfaf8snow
#080602black
Foreground
#000000black
#fbfaf9snow
Card
#fcfaf8snow
#080602black
Card foreground
#000000black
#fbfaf9snow
Popover
#fcfaf8snow
#080602black
Popover foreground
#000000black
#fbfaf9snow
Primary
#ab8d63darkkhaki
#ab8d63darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#63ab8dcadetblue
#63ab8dcadetblue
Secondary foreground
#000000black
#000000black
Muted
#e7f4eehoneydew
#0b1813black
Muted foreground
#374941darkslategray
#b6c8c1silver
Accent
#8d63ablightslategray
#8d63ablightslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ba4008firebrick
#f7773bcoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ab8d63darkkhaki
#ab8d63darkkhaki

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button6.73:1AA
Secondary button7.75:1AAA
Muted text8.45:1AAA
Accent4.65:1AA
Destructive5.48:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button6.73:1AA
Secondary button7.75:1AAA
Muted text10.37:1AAA
Accent4.65:1AA
Destructive7.63:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 76.639);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.016 169.197);
  --muted-foreground: oklch(0.386 0.026 167.611);
  --popover: oklch(0.986 0.003 76.639);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.003 76.639);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.661 0.068 75.481);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.686 0.086 165.358);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.573 0.116 309.998);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.539 0.167 39.539);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.661 0.068 75.481);
  --chart-1: oklch(0.661 0.068 75.481);
  --chart-2: oklch(0.686 0.086 165.358);
  --chart-3: oklch(0.573 0.116 309.998);
  --chart-4: oklch(0.706 0.081 165.827);
  --chart-5: oklch(0.666 0.074 75.269);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.013 83.607);
  --foreground: oklch(0.986 0.002 76.644);
  --muted: oklch(0.197 0.022 165.959);
  --muted-foreground: oklch(0.818 0.022 168.889);
  --popover: oklch(0.121 0.013 83.607);
  --popover-foreground: oklch(0.986 0.002 76.644);
  --card: oklch(0.121 0.013 83.607);
  --card-foreground: oklch(0.986 0.002 76.644);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.661 0.068 75.481);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.686 0.086 165.358);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.573 0.116 309.998);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.709 0.173 43.396);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.661 0.068 75.481);
  --chart-1: oklch(0.661 0.068 75.481);
  --chart-2: oklch(0.686 0.086 165.358);
  --chart-3: oklch(0.573 0.116 309.998);
  --chart-4: oklch(0.706 0.081 165.827);
  --chart-5: oklch(0.666 0.074 75.269);
}