Cartridge for shadcn/ui

Cartridge is a shadcn/ui theme built around a vivid deep violet primary color (#36034a) with vivid deep teal accents (#034a36). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid deep violet primary (#36034a) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030104black
Foreground
#030104black
#ffffffwhite
Card
#fdfbfewhite
#030104black
Card foreground
#030104black
#ffffffwhite
Popover
#fdfbfewhite
#030104black
Popover foreground
#030104black
#ffffffwhite
Primary
#36034amidnightblue
#36034amidnightblue
Primary foreground
#d984fbviolet
#d984fbviolet
Secondary
#4a3603saddlebrown
#4a3603saddlebrown
Secondary foreground
#f7ba22goldenrod
#f7ba22goldenrod
Muted
#f6f2ealinen
#151209black
Muted foreground
#5a5444darkolivegreen
#bbb5a5darkgray
Accent
#034a36darkslategray
#034a36darkslategray
Accent foreground
#22f7baturquoise
#22f7baturquoise
Destructive
#9d2501firebrick
#fe440borangered
Destructive foreground
#ffdcd1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#36034amidnightblue
#36034amidnightblue

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button6.83:1AA
Secondary button6.62:1AA
Muted text6.76:1AA
Accent7.42:1AAA
Destructive6.05:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.77:1AAA
Primary button6.83:1AA
Secondary button6.62:1AA
Muted text9.14:1AAA
Accent7.42:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 316.595);
  --foreground: oklch(0.083 0.02 318.733);
  --muted: oklch(0.962 0.012 88.87);
  --muted-foreground: oklch(0.447 0.026 89.015);
  --popover: oklch(0.99 0.005 316.595);
  --popover-foreground: oklch(0.083 0.02 318.733);
  --card: oklch(0.99 0.005 316.595);
  --card-foreground: oklch(0.083 0.02 318.733);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.253 0.121 313.178);
  --primary-foreground: oklch(0.747 0.184 315.734);
  --secondary: oklch(0.345 0.069 84.423);
  --secondary-foreground: oklch(0.824 0.163 83.782);
  --accent: oklch(0.363 0.073 167.007);
  --accent-foreground: oklch(0.868 0.174 166.661);
  --destructive: oklch(0.459 0.161 34.84);
  --destructive-foreground: oklch(0.92 0.042 37.603);
  --ring: oklch(0.253 0.121 313.178);
  --chart-1: oklch(0.253 0.121 313.178);
  --chart-2: oklch(0.345 0.069 84.423);
  --chart-3: oklch(0.363 0.073 167.007);
  --chart-4: oklch(0.389 0.078 83.695);
  --chart-5: oklch(0.254 0.123 313.028);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.018 318.426);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.018 88.932);
  --muted-foreground: oklch(0.773 0.023 88.953);
  --popover: oklch(0.084 0.018 318.426);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.084 0.018 318.426);
  --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.253 0.121 313.178);
  --primary-foreground: oklch(0.747 0.184 315.734);
  --secondary: oklch(0.345 0.069 84.423);
  --secondary-foreground: oklch(0.824 0.163 83.782);
  --accent: oklch(0.363 0.073 167.007);
  --accent-foreground: oklch(0.868 0.174 166.661);
  --destructive: oklch(0.657 0.228 34.655);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.253 0.121 313.178);
  --chart-1: oklch(0.253 0.121 313.178);
  --chart-2: oklch(0.345 0.069 84.423);
  --chart-3: oklch(0.363 0.073 167.007);
  --chart-4: oklch(0.389 0.078 83.695);
  --chart-5: oklch(0.254 0.123 313.028);
}