Turbulent for shadcn/ui

Turbulent is a shadcn/ui theme built around a neutral gray primary color (#e5e6e6) with neutral gray accents (#e5e6e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#e5e6e6) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#020e08black
#ffffffwhite
Card
#fcfcfcsnow
#030705black
Card foreground
#010905black
#ffffffwhite
Popover
#fcfcfcsnow
#030705black
Popover foreground
#010905black
#ffffffwhite
Primary
#e5e6e6gainsboro
#e5e6e6gainsboro
Primary foreground
#4c4d4ddarkslategray
#4c4d4ddarkslategray
Secondary
#e5e6e5gainsboro
#e5e6e5gainsboro
Secondary foreground
#4c4d4cdarkslategray
#4c4d4cdarkslategray
Muted
#d6e0d7gainsboro
#1f291fblack
Muted foreground
#4b5d4cdarkslategray
#a2b4a2darkgray
Accent
#e5e6e6gainsboro
#e5e6e6gainsboro
Accent foreground
#4c4d4ddarkslategray
#4c4d4ddarkslategray
Destructive
#b02711firebrick
#ec533ctomato
Destructive foreground
#fef7f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5e6e6gainsboro
#e5e6e6gainsboro

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.70:1AAA
Primary button6.77:1AA
Secondary button6.77:1AA
Muted text5.23:1AA
Accent6.77:1AA
Destructive6.30:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.23:1AAA
Primary button6.77:1AA
Secondary button6.77:1AA
Muted text6.89:1AA
Accent6.77:1AA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.025 166.238);
  --muted: oklch(0.897 0.017 146.376);
  --muted-foreground: oklch(0.459 0.037 145.816);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.127 0.022 167.18);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.022 167.18);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.924 0.001 166.888);
  --primary-foreground: oklch(0.42 0.002 166.757);
  --secondary: oklch(0.924 0.001 146.533);
  --secondary-foreground: oklch(0.419 0.003 146.476);
  --accent: oklch(0.924 0.001 199.598);
  --accent-foreground: oklch(0.42 0.002 199.542);
  --destructive: oklch(0.496 0.177 31.597);
  --destructive-foreground: oklch(0.981 0.008 27.974);
  --ring: oklch(0.924 0.001 166.888);
  --chart-1: oklch(0.924 0.001 166.888);
  --chart-2: oklch(0.924 0.001 146.533);
  --chart-3: oklch(0.924 0.001 199.598);
  --chart-4: oklch(0.947 0.001 146.536);
  --chart-5: oklch(0.925 0.003 166.833);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 167.068);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.267 0.023 145.769);
  --muted-foreground: oklch(0.751 0.033 146.155);
  --popover: oklch(0.122 0.012 167.068);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.012 167.068);
  --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.924 0.001 166.888);
  --primary-foreground: oklch(0.42 0.002 166.757);
  --secondary: oklch(0.924 0.001 146.533);
  --secondary-foreground: oklch(0.419 0.003 146.476);
  --accent: oklch(0.924 0.001 199.598);
  --accent-foreground: oklch(0.42 0.002 199.542);
  --destructive: oklch(0.647 0.192 31.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.001 166.888);
  --chart-1: oklch(0.924 0.001 166.888);
  --chart-2: oklch(0.924 0.001 146.533);
  --chart-3: oklch(0.924 0.001 199.598);
  --chart-4: oklch(0.947 0.001 146.536);
  --chart-5: oklch(0.925 0.003 166.833);
}