Derby for shadcn/ui

Derby is a shadcn/ui theme built around a vivid light orange primary color (#f6c9a2) with vivid light violet accents (#c9a2f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light orange primary (#f6c9a2) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#ffffffwhite
#070503black
Foreground
#000000black
#f9f7f6whitesmoke
Card
#fcfcfcsnow
#0a0705black
Card foreground
#000000black
#fbfaf9snow
Popover
#fcfcfcsnow
#0a0705black
Popover foreground
#000000black
#fbfaf9snow
Primary
#f6c9a2navajowhite
#f6c9a2navajowhite
Primary foreground
#5d3009saddlebrown
#5d3009saddlebrown
Secondary
#a2f6c9aquamarine
#a2f6c9aquamarine
Secondary foreground
#095d30darkgreen
#095d30darkgreen
Muted
#cee3d8gainsboro
#1c3126darkslategray
Muted foreground
#53655bdimgray
#9aaca3darkgray
Accent
#c9a2f6plum
#c9a2f6plum
Accent foreground
#30095dmidnightblue
#30095dmidnightblue
Destructive
#862004darkred
#f84716orangered
Destructive foreground
#fdccbfpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6c9a2navajowhite
#f6c9a2navajowhite

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.29:1AAA
Secondary button6.31:1AA
Muted text4.63:1AA
Accent7.55:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.22:1AAA
Primary button7.29:1AAA
Secondary button6.31:1AA
Muted text5.81:1AA
Accent7.55:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.898 0.028 162.649);
  --muted-foreground: oklch(0.488 0.027 161.956);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.866 0.072 62.831);
  --primary-foreground: oklch(0.361 0.081 55.93);
  --secondary: oklch(0.907 0.102 160.15);
  --secondary-foreground: oklch(0.421 0.104 152.972);
  --accent: oklch(0.778 0.123 305.127);
  --accent-foreground: oklch(0.27 0.132 297.286);
  --destructive: oklch(0.409 0.141 34.682);
  --destructive-foreground: oklch(0.885 0.059 35.968);
  --ring: oklch(0.866 0.072 62.831);
  --chart-1: oklch(0.866 0.072 62.831);
  --chart-2: oklch(0.907 0.102 160.15);
  --chart-3: oklch(0.778 0.123 305.127);
  --chart-4: oklch(0.92 0.088 160.739);
  --chart-5: oklch(0.867 0.075 62.773);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.008 69.419);
  --foreground: oklch(0.978 0.003 64.056);
  --muted: oklch(0.291 0.035 159.926);
  --muted-foreground: oklch(0.728 0.025 162.557);
  --popover: oklch(0.134 0.009 69.388);
  --popover-foreground: oklch(0.985 0.002 64.067);
  --card: oklch(0.134 0.009 69.388);
  --card-foreground: oklch(0.985 0.002 64.067);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.866 0.072 62.831);
  --primary-foreground: oklch(0.361 0.081 55.93);
  --secondary: oklch(0.907 0.102 160.15);
  --secondary-foreground: oklch(0.421 0.104 152.972);
  --accent: oklch(0.778 0.123 305.127);
  --accent-foreground: oklch(0.27 0.132 297.286);
  --destructive: oklch(0.651 0.22 34.737);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.072 62.831);
  --chart-1: oklch(0.866 0.072 62.831);
  --chart-2: oklch(0.907 0.102 160.15);
  --chart-3: oklch(0.778 0.123 305.127);
  --chart-4: oklch(0.92 0.088 160.739);
  --chart-5: oklch(0.867 0.075 62.773);
}