Stupendous for shadcn/ui

Stupendous is a shadcn/ui theme built around a neutral gray primary color (#6c6972) with muted light violet accents (#cbc3da). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the neutral gray primary (#6c6972) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020104black
Foreground
#06020dblack
#faf9fbghostwhite
Card
#f9f7fdghostwhite
#040208black
Card foreground
#040209black
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#040208black
Popover foreground
#040209black
#fcfcfdwhite
Primary
#6c6972dimgray
#6c6972dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dcd9e2gainsboro
#2b2636darkslategray
Secondary foreground
#423b4edarkslategray
#c4bdd1silver
Muted
#eeebf5lavender
#0e0a14black
Muted foreground
#60586fdimgray
#9890a7darkgray
Accent
#cbc3dathistle
#3b2f51darkslategray
Accent foreground
#322942darkslategray
#d6cee3gainsboro
Destructive
#751600maroon
#eb2b00orangered
Destructive foreground
#ffb8a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6c6972dimgray
#6c6972dimgray

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.41:1AAA
Primary button5.36:1AA
Secondary button7.67:1AAA
Muted text5.70:1AA
Accent8.09:1AAA
Destructive6.77:1AA
Dark mode
Text on background19.82:1AAA
Text on card20.10:1AAA
Primary button5.36:1AA
Secondary button8.07:1AAA
Muted text6.40:1AA
Accent8.10:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 302.153);
  --foreground: oklch(0.11 0.031 302.705);
  --muted: oklch(0.945 0.014 301.989);
  --muted-foreground: oklch(0.476 0.039 300.911);
  --popover: oklch(0.98 0.008 302.09);
  --popover-foreground: oklch(0.096 0.027 303.114);
  --card: oklch(0.98 0.008 302.09);
  --card-foreground: oklch(0.096 0.027 303.114);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.527 0.014 301.796);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.891 0.013 301.984);
  --secondary-foreground: oklch(0.368 0.034 300.761);
  --accent: oklch(0.832 0.032 301.613);
  --accent-foreground: oklch(0.303 0.045 299.809);
  --destructive: oklch(0.367 0.133 33.692);
  --destructive-foreground: oklch(0.845 0.086 33.042);
  --ring: oklch(0.527 0.014 301.796);
  --chart-1: oklch(0.527 0.014 301.796);
  --chart-2: oklch(0.891 0.013 301.984);
  --chart-3: oklch(0.832 0.032 301.613);
  --chart-4: oklch(0.917 0.01 302.043);
  --chart-5: oklch(0.52 0.025 301.469);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.017 302.899);
  --foreground: oklch(0.984 0.002 302.184);
  --muted: oklch(0.156 0.021 300.04);
  --muted-foreground: oklch(0.667 0.036 301.364);
  --popover: oklch(0.1 0.022 302.899);
  --popover-foreground: oklch(0.992 0.001 302.199);
  --card: oklch(0.1 0.022 302.899);
  --card-foreground: oklch(0.992 0.001 302.199);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.527 0.014 301.796);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.281 0.031 300.461);
  --secondary-foreground: oklch(0.81 0.029 301.651);
  --accent: oklch(0.333 0.061 299.192);
  --accent-foreground: oklch(0.865 0.029 301.683);
  --destructive: oklch(0.605 0.228 32.21);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.527 0.014 301.796);
  --chart-1: oklch(0.527 0.014 301.796);
  --chart-2: oklch(0.281 0.031 300.461);
  --chart-3: oklch(0.333 0.061 299.192);
  --chart-4: oklch(0.309 0.035 300.394);
  --chart-5: oklch(0.52 0.025 301.469);
}