Chronograph for shadcn/ui

Chronograph is a shadcn/ui theme built around a neutral gray primary color (#302e2c) with muted light orange accents (#e8e5e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#302e2c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#150c05black
#f8f7f6whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#110a04black
#fbfaf9snow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#110a04black
#fbfaf9snow
Primary
#302e2cdarkslategray
#302e2cdarkslategray
Primary foreground
#cac7c4silver
#cac7c4silver
Secondary
#e8e5e3gainsboro
#302821darkslategray
Secondary foreground
#534c46darkslategray
#cdc1b7silver
Muted
#e8d8c9gainsboro
#362517black
Muted foreground
#696059dimgray
#a69e96darkgray
Accent
#e8e5e3gainsboro
#302821darkslategray
Accent foreground
#534c46darkslategray
#cdc1b7silver
Destructive
#7e0802maroon
#fb1f13red
Destructive foreground
#feb7b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#302e2cdarkslategray
#302e2cdarkslategray

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.22:1AAA
Primary button8.05:1AAA
Secondary button6.73:1AA
Muted text4.41:1AA Large
Accent6.73:1AA
Destructive6.59:1AA
Dark mode
Text on background19.62:1AAA
Text on card19.83:1AAA
Primary button8.05:1AAA
Secondary button8.17:1AAA
Muted text5.54:1AA
Accent8.17:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.022 65.499);
  --muted: oklch(0.891 0.026 63.702);
  --muted-foreground: oklch(0.496 0.016 63.68);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.151 0.019 68.945);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.151 0.019 68.945);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.302 0.005 63.869);
  --primary-foreground: oklch(0.83 0.005 64.014);
  --secondary: oklch(0.924 0.004 64.036);
  --secondary-foreground: oklch(0.422 0.014 63.643);
  --accent: oklch(0.924 0.004 64.036);
  --accent-foreground: oklch(0.422 0.014 63.643);
  --destructive: oklch(0.376 0.149 29.923);
  --destructive-foreground: oklch(0.845 0.083 22.353);
  --ring: oklch(0.302 0.005 63.869);
  --chart-1: oklch(0.302 0.005 63.869);
  --chart-2: oklch(0.924 0.004 64.036);
  --chart-3: oklch(0.924 0.004 64.036);
  --chart-4: oklch(0.947 0.003 64.053);
  --chart-5: oklch(0.303 0.008 63.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.002 64.064);
  --muted: oklch(0.281 0.035 61.888);
  --muted-foreground: oklch(0.703 0.014 63.83);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.985 0.001 64.073);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.001 64.073);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.302 0.005 63.869);
  --primary-foreground: oklch(0.83 0.005 64.014);
  --secondary: oklch(0.285 0.017 63.264);
  --secondary-foreground: oklch(0.818 0.019 63.782);
  --accent: oklch(0.285 0.017 63.264);
  --accent-foreground: oklch(0.818 0.019 63.782);
  --destructive: oklch(0.629 0.247 29.429);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.302 0.005 63.869);
  --chart-1: oklch(0.302 0.005 63.869);
  --chart-2: oklch(0.285 0.017 63.264);
  --chart-3: oklch(0.285 0.017 63.264);
  --chart-4: oklch(0.316 0.019 63.224);
  --chart-5: oklch(0.303 0.008 63.733);
}