Super for shadcn/ui

Super is a shadcn/ui theme built around a muted deep teal primary color (#141918) with muted deep red accents (#191416). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted deep teal primary (#141918) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefdwhite
#000000black
Foreground
#000000black
#f9fbfbghostwhite
Card
#fbfefdwhite
#000000black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#fbfefdwhite
#000000black
Popover foreground
#000000black
#f9fbfbghostwhite
Primary
#141918black
#141918black
Primary foreground
#a7b9b5darkgray
#a7b9b5darkgray
Secondary
#191416black
#191416black
Secondary foreground
#b9a7abdarkgray
#b9a7abdarkgray
Muted
#e3ced3lightgrey
#311c20black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#191416black
#191416black
Accent foreground
#b9a7abdarkgray
#b9a7abdarkgray
Destructive
#8b1a09darkred
#f03114orangered
Destructive foreground
#fcd1capink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#141918black
#141918black

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button8.63:1AAA
Secondary button7.93:1AAA
Muted text6.93:1AA
Accent7.93:1AAA
Destructive6.71:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button8.63:1AAA
Secondary button7.93:1AAA
Muted text8.69:1AAA
Accent7.93:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 181.977);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.87 0.025 2.835);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.994 0.003 181.977);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 181.977);
  --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.21 0.008 180.98);
  --primary-foreground: oklch(0.77 0.02 181.333);
  --secondary: oklch(0.2 0.008 3.208);
  --secondary-foreground: oklch(0.745 0.021 2.825);
  --accent: oklch(0.2 0.008 3.208);
  --accent-foreground: oklch(0.745 0.021 2.825);
  --destructive: oklch(0.415 0.15 31.544);
  --destructive-foreground: oklch(0.895 0.049 28.314);
  --ring: oklch(0.21 0.008 180.98);
  --chart-1: oklch(0.21 0.008 180.98);
  --chart-2: oklch(0.2 0.008 3.208);
  --chart-3: oklch(0.2 0.008 3.208);
  --chart-4: oklch(0.232 0.011 3.331);
  --chart-5: oklch(0.211 0.01 180.692);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.003 181.982);
  --muted: oklch(0.255 0.035 5.718);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.003 181.982);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.003 181.982);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.21 0.008 180.98);
  --primary-foreground: oklch(0.77 0.02 181.333);
  --secondary: oklch(0.2 0.008 3.208);
  --secondary-foreground: oklch(0.745 0.021 2.825);
  --accent: oklch(0.2 0.008 3.208);
  --accent-foreground: oklch(0.745 0.021 2.825);
  --destructive: oklch(0.619 0.228 31.456);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.21 0.008 180.98);
  --chart-1: oklch(0.21 0.008 180.98);
  --chart-2: oklch(0.2 0.008 3.208);
  --chart-3: oklch(0.2 0.008 3.208);
  --chart-4: oklch(0.232 0.011 3.331);
  --chart-5: oklch(0.211 0.01 180.692);
}