Nitro for shadcn/ui

Nitro is a shadcn/ui theme built around a deep teal primary color (#0f3233) with deep yellow accents (#32330f). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the deep teal primary (#0f3233) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#030707black
Foreground
#050f10black
#ffffffwhite
Card
#f8fbfbghostwhite
#050a0ablack
Card foreground
#030c0cblack
#ffffffwhite
Popover
#fcfdfdwhite
#030707black
Popover foreground
#050f10black
#ffffffwhite
Primary
#0f3233darkslategray
#0f3233darkslategray
Primary foreground
#46c4c8mediumturquoise
#46c4c8mediumturquoise
Secondary
#330f32midnightblue
#330f32midnightblue
Secondary foreground
#df95ddplum
#df95ddplum
Muted
#e3cee2gainsboro
#311c30darkslategray
Muted foreground
#564355darkslategray
#bca9bbsilver
Accent
#32330fdarkslategray
#32330fdarkslategray
Accent foreground
#c4c846darkkhaki
#c4c846darkkhaki
Destructive
#8f2c05saddlebrown
#f76226tomato
Destructive foreground
#fdd8c9bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f3233darkslategray
#0f3233darkslategray

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.06:1AAA
Primary button6.56:1AA
Secondary button7.54:1AAA
Muted text6.11:1AA
Accent7.23:1AAA
Destructive6.26:1AA
Dark mode
Text on background20.26:1AAA
Text on card19.91:1AAA
Primary button6.56:1AA
Secondary button7.54:1AAA
Muted text7.13:1AAA
Accent7.23:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 199.584);
  --foreground: oklch(0.159 0.017 198.157);
  --muted: oklch(0.876 0.035 326.882);
  --muted-foreground: oklch(0.41 0.038 327.301);
  --popover: oklch(0.993 0.002 199.584);
  --popover-foreground: oklch(0.159 0.017 198.157);
  --card: oklch(0.987 0.003 199.562);
  --card-foreground: oklch(0.143 0.015 197.89);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.292 0.039 198.368);
  --primary-foreground: oklch(0.753 0.108 198.383);
  --secondary: oklch(0.244 0.077 328.95);
  --secondary-foreground: oklch(0.767 0.129 327.883);
  --accent: oklch(0.311 0.054 110.942);
  --accent-foreground: oklch(0.805 0.149 111.161);
  --destructive: oklch(0.44 0.14 37.996);
  --destructive-foreground: oklch(0.909 0.047 42.754);
  --ring: oklch(0.292 0.039 198.368);
  --chart-1: oklch(0.292 0.039 198.368);
  --chart-2: oklch(0.244 0.077 328.95);
  --chart-3: oklch(0.311 0.054 110.942);
  --chart-4: oklch(0.276 0.091 329.046);
  --chart-5: oklch(0.295 0.041 198.37);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 198.372);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.047 327.96);
  --muted-foreground: oklch(0.757 0.032 326.904);
  --popover: oklch(0.121 0.008 198.372);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.009 198.372);
  --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.292 0.039 198.368);
  --primary-foreground: oklch(0.753 0.108 198.383);
  --secondary: oklch(0.244 0.077 328.95);
  --secondary-foreground: oklch(0.767 0.129 327.883);
  --accent: oklch(0.311 0.054 110.942);
  --accent-foreground: oklch(0.805 0.149 111.161);
  --destructive: oklch(0.68 0.196 39.585);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.292 0.039 198.368);
  --chart-1: oklch(0.292 0.039 198.368);
  --chart-2: oklch(0.244 0.077 328.95);
  --chart-3: oklch(0.311 0.054 110.942);
  --chart-4: oklch(0.276 0.091 329.046);
  --chart-5: oklch(0.295 0.041 198.37);
}