Eurocentrism for shadcn/ui

Eurocentrism is a shadcn/ui theme built around a vivid light green primary color (#f9fce3) with vivid light green accents (#ecfce3). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#f9fce3) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#ffffffwhite
#070802black
Foreground
#131504black
#f8f8f7whitesmoke
Card
#fcfcfcsnow
#0b0c03black
Card foreground
#0f1103black
#fafaf9snow
Popover
#fcfcfcsnow
#0b0c03black
Popover foreground
#0f1103black
#fafaf9snow
Primary
#f9fce3lightyellow
#f9fce3lightyellow
Primary foreground
#394107darkolivegreen
#394107darkolivegreen
Secondary
#fcf3e3oldlace
#fcf3e3oldlace
Secondary foreground
#412b07maroon
#412b07maroon
Muted
#ece4d4antiquewhite
#2b2213black
Muted foreground
#5f5d59dimgray
#a6a4a0darkgray
Accent
#ecfce3beige
#ecfce3beige
Accent foreground
#1c4107darkgreen
#1c4107darkgreen
Destructive
#862403darkred
#f94e15orangered
Destructive foreground
#fdcebepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9fce3lightyellow
#f9fce3lightyellow

Contrast

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

Light mode
Text on background18.47:1AAA
Text on card18.64:1AAA
Primary button10.38:1AAA
Secondary button12.12:1AAA
Muted text5.18:1AA
Accent10.85:1AAA
Destructive6.48:1AA
Dark mode
Text on background18.91:1AAA
Text on card18.83:1AAA
Primary button10.38:1AAA
Secondary button12.12:1AAA
Muted text6.31:1AA
Accent10.85:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.19 0.033 115.462);
  --muted: oklch(0.92 0.022 81.487);
  --muted-foreground: oklch(0.477 0.006 81.507);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.171 0.029 114.989);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.171 0.029 114.989);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.982 0.033 113.162);
  --primary-foreground: oklch(0.355 0.077 117.37);
  --secondary: oklch(0.967 0.023 81.488);
  --secondary-foreground: oklch(0.309 0.059 76.387);
  --accent: oklch(0.973 0.037 133.845);
  --accent-foreground: oklch(0.334 0.094 136.934);
  --destructive: oklch(0.415 0.138 36.214);
  --destructive-foreground: oklch(0.889 0.058 39.253);
  --ring: oklch(0.982 0.033 113.162);
  --chart-1: oklch(0.982 0.033 113.162);
  --chart-2: oklch(0.967 0.023 81.488);
  --chart-3: oklch(0.973 0.037 133.845);
  --chart-4: oklch(0.983 0.011 81.508);
  --chart-5: oklch(0.983 0.034 113.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.018 113.602);
  --foreground: oklch(0.979 0.002 112.586);
  --muted: oklch(0.257 0.029 80.549);
  --muted-foreground: oklch(0.719 0.006 81.512);
  --popover: oklch(0.149 0.021 113.922);
  --popover-foreground: oklch(0.986 0.001 112.572);
  --card: oklch(0.149 0.021 113.922);
  --card-foreground: oklch(0.986 0.001 112.572);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.982 0.033 113.162);
  --primary-foreground: oklch(0.355 0.077 117.37);
  --secondary: oklch(0.967 0.023 81.488);
  --secondary-foreground: oklch(0.309 0.059 76.387);
  --accent: oklch(0.973 0.037 133.845);
  --accent-foreground: oklch(0.334 0.094 136.934);
  --destructive: oklch(0.66 0.216 36.294);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.033 113.162);
  --chart-1: oklch(0.982 0.033 113.162);
  --chart-2: oklch(0.967 0.023 81.488);
  --chart-3: oklch(0.973 0.037 133.845);
  --chart-4: oklch(0.983 0.011 81.508);
  --chart-5: oklch(0.983 0.034 113.183);
}