Gyro for shadcn/ui

Gyro is a shadcn/ui theme built around a near-black primary color (#020303) with near-black accents (#020203). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the near-black primary (#020303) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030507black
Foreground
#02070dblack
#f7f7f8whitesmoke
Card
#fbfcfewhite
#030507black
Card foreground
#02070dblack
#f7f7f8whitesmoke
Popover
#fbfcfewhite
#030507black
Popover foreground
#02070dblack
#f7f7f8whitesmoke
Primary
#020303black
#020303black
Primary foreground
#929ba5darkgray
#929ba5darkgray
Secondary
#020303black
#020303black
Secondary foreground
#92a5a5darkgray
#92a5a5darkgray
Muted
#d5dcdcgainsboro
#23292adarkslategray
Muted foreground
#4b5c5ddarkslategray
#a2b3b4darkgray
Accent
#020203black
#020203black
Accent foreground
#9392a5lightslategray
#9392a5lightslategray
Destructive
#e63d00orangered
#ff6933tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020303black
#020303black

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button7.34:1AAA
Secondary button8.01:1AAA
Muted text5.05:1AA
Accent6.79:1AA
Destructive4.18:1AA Large
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button7.34:1AAA
Secondary button8.01:1AAA
Muted text6.76:1AA
Accent6.79:1AA
Destructive7.33:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 253.233);
  --foreground: oklch(0.125 0.019 243.743);
  --muted: oklch(0.889 0.007 200.792);
  --muted-foreground: oklch(0.462 0.022 200.376);
  --popover: oklch(0.992 0.002 253.233);
  --popover-foreground: oklch(0.125 0.019 243.743);
  --card: oklch(0.992 0.002 253.233);
  --card-foreground: oklch(0.125 0.019 243.743);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.091 0.002 251.828);
  --primary-foreground: oklch(0.684 0.019 253.394);
  --secondary: oklch(0.093 0.002 200.42);
  --secondary-foreground: oklch(0.706 0.021 200.542);
  --accent: oklch(0.089 0.003 288.262);
  --accent-foreground: oklch(0.666 0.029 287.874);
  --destructive: oklch(0.61 0.212 35.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.091 0.002 251.828);
  --chart-1: oklch(0.091 0.002 251.828);
  --chart-2: oklch(0.093 0.002 200.42);
  --chart-3: oklch(0.089 0.003 288.262);
  --chart-4: oklch(0.148 0.003 200.591);
  --chart-5: oklch(0.091 0.002 251.406);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.01 246.755);
  --foreground: oklch(0.977 0.001 253.228);
  --muted: oklch(0.276 0.009 200.506);
  --muted-foreground: oklch(0.754 0.02 200.587);
  --popover: oklch(0.112 0.01 246.755);
  --popover-foreground: oklch(0.977 0.001 253.228);
  --card: oklch(0.112 0.01 246.755);
  --card-foreground: oklch(0.977 0.001 253.228);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.091 0.002 251.828);
  --primary-foreground: oklch(0.684 0.019 253.394);
  --secondary: oklch(0.093 0.002 200.42);
  --secondary-foreground: oklch(0.706 0.021 200.542);
  --accent: oklch(0.089 0.003 288.262);
  --accent-foreground: oklch(0.666 0.029 287.874);
  --destructive: oklch(0.702 0.194 39.091);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.091 0.002 251.828);
  --chart-1: oklch(0.091 0.002 251.828);
  --chart-2: oklch(0.093 0.002 200.42);
  --chart-3: oklch(0.089 0.003 288.262);
  --chart-4: oklch(0.148 0.003 200.591);
  --chart-5: oklch(0.091 0.002 251.406);
}