Typhoon for shadcn/ui

Typhoon is a shadcn/ui theme built around a muted light indigo primary color (#cfcfd8) with muted light violet accents (#d4cfd8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light indigo primary (#cfcfd8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#cfcfd8lightgrey
#cfcfd8lightgrey
Primary foreground
#353541darkslategray
#353541darkslategray
Secondary
#cfd4d8lightgrey
#cfd4d8lightgrey
Secondary foreground
#353b41darkslategray
#353b41darkslategray
Muted
#dbe6f0lavender
#0f1a24black
Muted foreground
#61666bdimgray
#94999edarkgray
Accent
#d4cfd8lightgrey
#d4cfd8lightgrey
Accent foreground
#3a3541darkslategray
#3a3541darkslategray
Destructive
#ae4309saddlebrown
#f4712atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cfcfd8lightgrey
#cfcfd8lightgrey

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.84:1AAA
Secondary button7.58:1AAA
Muted text4.57:1AA
Accent7.77:1AAA
Destructive5.80:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button7.84:1AAA
Secondary button7.58:1AAA
Muted text6.13:1AA
Accent7.77:1AAA
Destructive7.21:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.018 246.185);
  --muted-foreground: oklch(0.508 0.01 246.196);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.858 0.012 285.371);
  --primary-foreground: oklch(0.333 0.02 284.481);
  --secondary: oklch(0.867 0.008 246.067);
  --secondary-foreground: oklch(0.348 0.013 246.386);
  --accent: oklch(0.861 0.013 307.617);
  --accent-foreground: oklch(0.339 0.022 307.046);
  --destructive: oklch(0.523 0.153 42.273);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.012 285.371);
  --chart-1: oklch(0.858 0.012 285.371);
  --chart-2: oklch(0.867 0.008 246.067);
  --chart-3: oklch(0.861 0.013 307.617);
  --chart-4: oklch(0.891 0.006 246.047);
  --chart-5: oklch(0.855 0.015 285.295);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 285.582);
  --muted: oklch(0.212 0.025 247.418);
  --muted-foreground: oklch(0.681 0.009 246.126);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 285.582);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 285.582);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.858 0.012 285.371);
  --primary-foreground: oklch(0.333 0.02 284.481);
  --secondary: oklch(0.867 0.008 246.067);
  --secondary-foreground: oklch(0.348 0.013 246.386);
  --accent: oklch(0.861 0.013 307.617);
  --accent-foreground: oklch(0.339 0.022 307.046);
  --destructive: oklch(0.695 0.18 44.907);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.858 0.012 285.371);
  --chart-1: oklch(0.858 0.012 285.371);
  --chart-2: oklch(0.867 0.008 246.067);
  --chart-3: oklch(0.861 0.013 307.617);
  --chart-4: oklch(0.891 0.006 246.047);
  --chart-5: oklch(0.855 0.015 285.295);
}