Karate for shadcn/ui

Karate is a shadcn/ui theme built around a muted deep yellow primary color (#37381f) with muted deep purple accents (#381f37). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the muted deep yellow primary (#37381f) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fcfcf8snow
#040401black
Foreground
#0c0d02black
#ffffffwhite
Card
#fcfcf8snow
#040401black
Card foreground
#0c0d02black
#ffffffwhite
Popover
#fcfcf8snow
#040401black
Popover foreground
#0c0d02black
#ffffffwhite
Primary
#37381fdarkslategray
#37381fdarkslategray
Primary foreground
#d4d5b3silver
#d4d5b3silver
Secondary
#1f3738darkslategray
#1f3738darkslategray
Secondary foreground
#b3d4d5lightblue
#b3d4d5lightblue
Muted
#ebf4f5whitesmoke
#0a1414black
Muted foreground
#536d6edimgray
#91aaacdarkgray
Accent
#381f37darkslategray
#381f37darkslategray
Accent foreground
#d5b3d4thistle
#d5b3d4thistle
Destructive
#da2307firebrick
#f8391borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#37381fdarkslategray
#37381fdarkslategray

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button8.00:1AAA
Secondary button8.03:1AAA
Muted text4.97:1AA
Accent7.92:1AAA
Destructive4.98:1AA
Dark mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button8.00:1AAA
Secondary button8.03:1AAA
Muted text7.61:1AAA
Accent7.92:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 108.82);
  --foreground: oklch(0.154 0.025 111.038);
  --muted: oklch(0.961 0.01 200.761);
  --muted-foreground: oklch(0.515 0.03 200.268);
  --popover: oklch(0.99 0.006 108.82);
  --popover-foreground: oklch(0.154 0.025 111.038);
  --card: oklch(0.99 0.006 108.82);
  --card-foreground: oklch(0.154 0.025 111.038);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.332 0.041 110.878);
  --primary-foreground: oklch(0.864 0.046 109.663);
  --secondary: oklch(0.317 0.03 200.033);
  --secondary-foreground: oklch(0.846 0.034 200.435);
  --accent: oklch(0.282 0.055 328.688);
  --accent-foreground: oklch(0.807 0.058 327.683);
  --destructive: oklch(0.569 0.217 31.133);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.332 0.041 110.878);
  --chart-1: oklch(0.332 0.041 110.878);
  --chart-2: oklch(0.317 0.03 200.033);
  --chart-3: oklch(0.282 0.055 328.688);
  --chart-4: oklch(0.351 0.034 200.022);
  --chart-5: oklch(0.336 0.044 111.037);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.011 110.181);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.181 0.014 200.122);
  --muted-foreground: oklch(0.72 0.029 200.444);
  --popover: oklch(0.101 0.011 110.181);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.101 0.011 110.181);
  --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.332 0.041 110.878);
  --primary-foreground: oklch(0.864 0.046 109.663);
  --secondary: oklch(0.317 0.03 200.033);
  --secondary-foreground: oklch(0.846 0.034 200.435);
  --accent: oklch(0.282 0.055 328.688);
  --accent-foreground: oklch(0.807 0.058 327.683);
  --destructive: oklch(0.639 0.229 31.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.332 0.041 110.878);
  --chart-1: oklch(0.332 0.041 110.878);
  --chart-2: oklch(0.317 0.03 200.033);
  --chart-3: oklch(0.282 0.055 328.688);
  --chart-4: oklch(0.351 0.034 200.022);
  --chart-5: oklch(0.336 0.044 111.037);
}