Cadet for shadcn/ui

Cadet is a shadcn/ui theme built around a deep red primary color (#3b0d11) with deep indigo accents (#0d113b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#3b0d11) on a neutral background (#080203).

Color palette

TokenLightDark
Background
#ffffffwhite
#080203black
Foreground
#040101black
#fdfcfcsnow
Card
#fcfcfcsnow
#0c0304black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#080203black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#3b0d11black
#3b0d11black
Primary foreground
#e79299darksalmon
#e79299darksalmon
Secondary
#113b0ddarkgreen
#113b0ddarkgreen
Secondary foreground
#4bd53flimegreen
#4bd53flimegreen
Muted
#e9ece9linen
#131613black
Muted foreground
#3d4e3cdarkslategray
#b3c3b1silver
Accent
#0d113bmidnightblue
#0d113bmidnightblue
Accent foreground
#9299e7mediumpurple
#9299e7mediumpurple
Destructive
#950909darkred
#f22626crimson
Destructive foreground
#fcd4d4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b0d11black
#3b0d11black

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button7.18:1AAA
Secondary button6.61:1AA
Muted text7.50:1AAA
Accent6.85:1AA
Destructive6.66:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.36:1AAA
Primary button7.18:1AAA
Secondary button6.61:1AA
Muted text9.85:1AAA
Accent6.85:1AA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.081 0.016 13.32);
  --muted: oklch(0.941 0.005 143.108);
  --muted-foreground: oklch(0.403 0.036 142.709);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.081 0.016 13.32);
  --card: oklch(0.992 0 161.565);
  --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.24 0.072 19.717);
  --primary-foreground: oklch(0.749 0.103 14.423);
  --secondary: oklch(0.31 0.086 141.934);
  --secondary-foreground: oklch(0.769 0.222 141.923);
  --accent: oklch(0.205 0.08 273.079);
  --accent-foreground: oklch(0.709 0.114 279.102);
  --destructive: oklch(0.425 0.169 28.552);
  --destructive-foreground: oklch(0.903 0.046 18.035);
  --ring: oklch(0.24 0.072 19.717);
  --chart-1: oklch(0.24 0.072 19.717);
  --chart-2: oklch(0.31 0.086 141.934);
  --chart-3: oklch(0.205 0.08 273.079);
  --chart-4: oklch(0.351 0.101 141.926);
  --chart-5: oklch(0.241 0.074 20.219);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.019 13.118);
  --foreground: oklch(0.992 0.001 11.267);
  --muted: oklch(0.196 0.008 142.943);
  --muted-foreground: oklch(0.8 0.031 142.954);
  --popover: oklch(0.103 0.019 13.118);
  --popover-foreground: oklch(0.992 0.001 11.267);
  --card: oklch(0.119 0.022 13.242);
  --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.24 0.072 19.717);
  --primary-foreground: oklch(0.749 0.103 14.423);
  --secondary: oklch(0.31 0.086 141.934);
  --secondary-foreground: oklch(0.769 0.222 141.923);
  --accent: oklch(0.205 0.08 273.079);
  --accent-foreground: oklch(0.709 0.114 279.102);
  --destructive: oklch(0.618 0.234 27.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.24 0.072 19.717);
  --chart-1: oklch(0.24 0.072 19.717);
  --chart-2: oklch(0.31 0.086 141.934);
  --chart-3: oklch(0.205 0.08 273.079);
  --chart-4: oklch(0.351 0.101 141.926);
  --chart-5: oklch(0.241 0.074 20.219);
}