Regionalism for shadcn/ui

Regionalism is a shadcn/ui theme built around a deep yellow primary color (#2c2711) with deep purple accents (#27112c). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the deep yellow primary (#2c2711) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fdfcf7snow
#030302black
Foreground
#050401black
#fdfdfcwhite
Card
#fdfcf7snow
#030302black
Card foreground
#050401black
#fdfdfcwhite
Popover
#fdfcf7snow
#030302black
Popover foreground
#050401black
#fdfdfcwhite
Primary
#2c2711black
#2c2711black
Primary foreground
#b9a650darkkhaki
#b9a650darkkhaki
Secondary
#112c27darkslategray
#112c27darkslategray
Secondary foreground
#50b9a6mediumaquamarine
#50b9a6mediumaquamarine
Muted
#eaf5f3whitesmoke
#0a1513black
Muted foreground
#484c4bdarkslategray
#b3b7b6silver
Accent
#27112cblack
#27112cblack
Accent foreground
#cb99d6plum
#cb99d6plum
Destructive
#a41404darkred
#f9351forangered
Destructive foreground
#fee0dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2c2711black
#2c2711black

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button6.15:1AA
Secondary button6.26:1AA
Muted text7.82:1AAA
Accent7.52:1AAA
Destructive6.30:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button6.15:1AA
Secondary button6.26:1AA
Muted text9.19:1AAA
Accent7.52:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 96.252);
  --foreground: oklch(0.104 0.018 101.594);
  --muted: oklch(0.962 0.012 183.987);
  --muted-foreground: oklch(0.413 0.006 183.925);
  --popover: oklch(0.99 0.007 96.252);
  --popover-foreground: oklch(0.104 0.018 101.594);
  --card: oklch(0.99 0.007 96.252);
  --card-foreground: oklch(0.104 0.018 101.594);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.272 0.036 97.015);
  --primary-foreground: oklch(0.724 0.109 96.86);
  --secondary: oklch(0.27 0.034 180.163);
  --secondary-foreground: oklch(0.719 0.102 179.331);
  --accent: oklch(0.224 0.057 320.055);
  --accent-foreground: oklch(0.75 0.102 320.092);
  --destructive: oklch(0.459 0.178 30.547);
  --destructive-foreground: oklch(0.93 0.034 25.331);
  --ring: oklch(0.272 0.036 97.015);
  --chart-1: oklch(0.272 0.036 97.015);
  --chart-2: oklch(0.27 0.034 180.163);
  --chart-3: oklch(0.224 0.057 320.055);
  --chart-4: oklch(0.309 0.04 179.905);
  --chart-5: oklch(0.274 0.038 96.977);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 98.966);
  --foreground: oklch(0.993 0.001 96.177);
  --muted: oklch(0.183 0.016 181.662);
  --muted-foreground: oklch(0.777 0.005 184.136);
  --popover: oklch(0.098 0.008 98.966);
  --popover-foreground: oklch(0.993 0.001 96.177);
  --card: oklch(0.098 0.008 98.966);
  --card-foreground: oklch(0.993 0.001 96.177);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.272 0.036 97.015);
  --primary-foreground: oklch(0.724 0.109 96.86);
  --secondary: oklch(0.27 0.034 180.163);
  --secondary-foreground: oklch(0.719 0.102 179.331);
  --accent: oklch(0.224 0.057 320.055);
  --accent-foreground: oklch(0.75 0.102 320.092);
  --destructive: oklch(0.639 0.233 30.505);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.036 97.015);
  --chart-1: oklch(0.272 0.036 97.015);
  --chart-2: oklch(0.27 0.034 180.163);
  --chart-3: oklch(0.224 0.057 320.055);
  --chart-4: oklch(0.309 0.04 179.905);
  --chart-5: oklch(0.274 0.038 96.977);
}