Gearshift for shadcn/ui

Gearshift is a shadcn/ui theme built around a deep yellow primary color (#644e12) with deep green accents (#516412). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#644e12) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#141005black
#f9f8f5whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#100d04black
#fbfaf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#141005black
#f9f8f5whitesmoke
Primary
#644e12saddlebrown
#644e12saddlebrown
Primary foreground
#f2e2b5wheat
#f2e2b5wheat
Secondary
#642512maroon
#642512maroon
Secondary foreground
#f2c3b5lightpink
#f2c3b5lightpink
Muted
#f5edealinen
#150c0ablack
Muted foreground
#615d5cdimgray
#a39f9edarkgray
Accent
#516412darkolivegreen
#516412darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a41c04firebrick
#f93310orangered
Destructive foreground
#fee1dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#644e12saddlebrown
#644e12saddlebrown

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card19.00:1AAA
Primary button6.20:1AA
Secondary button7.32:1AAA
Muted text5.62:1AA
Accent6.63:1AA
Destructive6.18:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.83:1AAA
Primary button6.20:1AA
Secondary button7.32:1AAA
Muted text7.34:1AAA
Accent6.63:1AA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.176 0.023 91.4);
  --muted: oklch(0.951 0.01 37.695);
  --muted-foreground: oklch(0.481 0.006 37.685);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.176 0.023 91.4);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.16 0.021 92.703);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.435 0.08 87.548);
  --primary-foreground: oklch(0.914 0.061 90.43);
  --secondary: oklch(0.354 0.096 37.211);
  --secondary-foreground: oklch(0.856 0.057 37.592);
  --accent: oklch(0.47 0.106 122.441);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.464 0.173 31.838);
  --destructive-foreground: oklch(0.933 0.033 29.629);
  --ring: oklch(0.435 0.08 87.548);
  --chart-1: oklch(0.435 0.08 87.548);
  --chart-2: oklch(0.354 0.096 37.211);
  --chart-3: oklch(0.47 0.106 122.441);
  --chart-4: oklch(0.384 0.106 37.137);
  --chart-5: oklch(0.439 0.082 87.221);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.004 90.151);
  --muted: oklch(0.167 0.015 37.591);
  --muted-foreground: oklch(0.706 0.005 37.705);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.004 90.151);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.003 90.141);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.435 0.08 87.548);
  --primary-foreground: oklch(0.914 0.061 90.43);
  --secondary: oklch(0.354 0.096 37.211);
  --secondary-foreground: oklch(0.856 0.057 37.592);
  --accent: oklch(0.47 0.106 122.441);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.636 0.235 31.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.435 0.08 87.548);
  --chart-1: oklch(0.435 0.08 87.548);
  --chart-2: oklch(0.354 0.096 37.211);
  --chart-3: oklch(0.47 0.106 122.441);
  --chart-4: oklch(0.384 0.106 37.137);
  --chart-5: oklch(0.439 0.082 87.221);
}