Extreme for shadcn/ui

Extreme is a shadcn/ui theme built around a violet primary color (#681ea4) with teal accents (#1ea468). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#681ea4) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#050208black
Foreground
#030104black
#faf9fbghostwhite
Card
#f8f4fbghostwhite
#08040cblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#f8f4fbghostwhite
#08040cblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#681ea4rebeccapurple
#681ea4rebeccapurple
Primary foreground
#faf6fdghostwhite
#faf6fdghostwhite
Secondary
#a4681esienna
#a4681esienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5dfd7gainsboro
#28221ablack
Muted foreground
#5a5249darkolivegreen
#b6aea5darkgray
Accent
#1ea468seagreen
#1ea468seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6c1604maroon
#f53a14orangered
Destructive foreground
#fbb5a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#681ea4rebeccapurple
#681ea4rebeccapurple

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.30:1AAA
Primary button8.53:1AAA
Secondary button4.60:1AA
Muted text5.77:1AA
Accent3.20:1AA Large
Destructive7.01:1AAA
Dark mode
Text on background19.60:1AAA
Text on card19.90:1AAA
Primary button8.53:1AAA
Secondary button4.60:1AA
Muted text7.18:1AAA
Accent3.20:1AA Large
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 310.376);
  --foreground: oklch(0.082 0.017 312.141);
  --muted: oklch(0.905 0.013 73.109);
  --muted-foreground: oklch(0.444 0.017 72.878);
  --popover: oklch(0.972 0.01 310.345);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.972 0.01 310.345);
  --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.428 0.196 303.611);
  --primary-foreground: oklch(0.979 0.01 310.341);
  --secondary: oklch(0.569 0.114 66.117);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.635 0.142 157.43);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.349 0.122 33.059);
  --destructive-foreground: oklch(0.835 0.085 31.591);
  --ring: oklch(0.428 0.196 303.611);
  --chart-1: oklch(0.428 0.196 303.611);
  --chart-2: oklch(0.569 0.114 66.117);
  --chart-3: oklch(0.635 0.142 157.43);
  --chart-4: oklch(0.601 0.121 65.989);
  --chart-5: oklch(0.428 0.202 303.152);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.022 312.104);
  --foreground: oklch(0.983 0.003 310.407);
  --muted: oklch(0.256 0.018 72.492);
  --muted-foreground: oklch(0.755 0.015 73.061);
  --popover: oklch(0.118 0.025 311.871);
  --popover-foreground: oklch(0.992 0.002 310.423);
  --card: oklch(0.118 0.025 311.871);
  --card-foreground: oklch(0.992 0.002 310.423);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.428 0.196 303.611);
  --primary-foreground: oklch(0.979 0.01 310.341);
  --secondary: oklch(0.569 0.114 66.117);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.635 0.142 157.43);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.634 0.227 32.557);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.428 0.196 303.611);
  --chart-1: oklch(0.428 0.196 303.611);
  --chart-2: oklch(0.569 0.114 66.117);
  --chart-3: oklch(0.635 0.142 157.43);
  --chart-4: oklch(0.601 0.121 65.989);
  --chart-5: oklch(0.428 0.202 303.152);
}