Derivative for shadcn/ui

Derivative is a shadcn/ui theme built around a muted orange primary color (#c6bcb8) with muted cyan accents (#b8c3c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#c6bcb8) on an orange-tinted background (#0c0503).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0503black
Foreground
#150905black
#ffffffwhite
Card
#ffffffwhite
#0c0503black
Card foreground
#150905black
#ffffffwhite
Popover
#ffffffwhite
#0c0503black
Popover foreground
#150905black
#ffffffwhite
Primary
#c6bcb8silver
#c6bcb8silver
Primary foreground
#2a2422darkslategray
#2a2422darkslategray
Secondary
#b8c3c6silver
#b8c3c6silver
Secondary foreground
#22282adarkslategray
#22282adarkslategray
Muted
#eef0f1whitesmoke
#0e1011black
Muted foreground
#464c4edarkslategray
#b1b7b9silver
Accent
#b8c3c6silver
#b8c3c6silver
Accent foreground
#22282adarkslategray
#22282adarkslategray
Destructive
#c7200afirebrick
#e4250corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6bcb8silver
#c6bcb8silver

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button8.20:1AAA
Secondary button8.28:1AAA
Muted text7.66:1AAA
Accent8.28:1AAA
Destructive5.77:1AA
Dark mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button8.20:1AAA
Secondary button8.28:1AAA
Muted text9.39:1AAA
Accent8.28:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.023 43.314);
  --muted: oklch(0.955 0.002 219.526);
  --muted-foreground: oklch(0.412 0.009 219.698);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.023 43.314);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.155 0.023 43.314);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.802 0.013 39.412);
  --primary-foreground: oklch(0.267 0.01 39.318);
  --secondary: oklch(0.809 0.013 219.63);
  --secondary-foreground: oklch(0.273 0.01 219.841);
  --accent: oklch(0.809 0.013 219.63);
  --accent-foreground: oklch(0.273 0.01 219.841);
  --destructive: oklch(0.533 0.202 30.871);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.802 0.013 39.412);
  --chart-1: oklch(0.802 0.013 39.412);
  --chart-2: oklch(0.809 0.013 219.63);
  --chart-3: oklch(0.809 0.013 219.63);
  --chart-4: oklch(0.833 0.011 219.61);
  --chart-5: oklch(0.801 0.017 39.389);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.016 47.078);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.171 0.004 219.683);
  --muted-foreground: oklch(0.776 0.008 219.586);
  --popover: oklch(0.128 0.016 47.078);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.016 47.078);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.802 0.013 39.412);
  --primary-foreground: oklch(0.267 0.01 39.318);
  --secondary: oklch(0.809 0.013 219.63);
  --secondary-foreground: oklch(0.273 0.01 219.841);
  --accent: oklch(0.809 0.013 219.63);
  --accent-foreground: oklch(0.273 0.01 219.841);
  --destructive: oklch(0.589 0.224 30.828);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.802 0.013 39.412);
  --chart-1: oklch(0.802 0.013 39.412);
  --chart-2: oklch(0.809 0.013 219.63);
  --chart-3: oklch(0.809 0.013 219.63);
  --chart-4: oklch(0.833 0.011 219.61);
  --chart-5: oklch(0.801 0.017 39.389);
}