Citizenship for shadcn/ui

Citizenship is a shadcn/ui theme built around a light green primary color (#e2f0d0) with light pink accents (#f0d0e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e2f0d0) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#0b1202black
#f8faf4whitesmoke
Card
#fcfcfcsnow
#050703black
Card foreground
#080d02black
#fafcf8snow
Popover
#fcfcfcsnow
#050703black
Popover foreground
#080d02black
#fafcf8snow
Primary
#e2f0d0beige
#e2f0d0beige
Primary foreground
#151f0ablack
#151f0ablack
Secondary
#d0e2f0gainsboro
#d0e2f0gainsboro
Secondary foreground
#224b6ddarkslategray
#224b6ddarkslategray
Muted
#d9dee3gainsboro
#1c2226black
Muted foreground
#414b53darkslategray
#acb6besilver
Accent
#f0d0e2gainsboro
#f0d0e2gainsboro
Accent foreground
#6d224bbrown
#6d224bbrown
Destructive
#b03703firebrick
#fb550eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2f0d0beige
#e2f0d0beige

Contrast

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

Light mode
Text on background19.06:1AAA
Text on card19.22:1AAA
Primary button14.32:1AAA
Secondary button6.89:1AA
Muted text6.59:1AA
Accent7.51:1AAA
Destructive6.20:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.58:1AAA
Primary button14.32:1AAA
Secondary button6.89:1AA
Muted text7.82:1AAA
Accent7.51:1AAA
Destructive3.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.169 0.035 127.255);
  --muted: oklch(0.899 0.009 242.327);
  --muted-foreground: oklch(0.407 0.018 242.805);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.151 0.03 125.778);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.151 0.03 125.778);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.045 127.053);
  --primary-foreground: oklch(0.224 0.04 129.177);
  --secondary: oklch(0.904 0.027 242.593);
  --secondary-foreground: oklch(0.4 0.073 245.739);
  --accent: oklch(0.891 0.042 343.741);
  --accent-foreground: oklch(0.381 0.115 349.927);
  --destructive: oklch(0.51 0.165 38.054);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.045 127.053);
  --chart-1: oklch(0.937 0.045 127.053);
  --chart-2: oklch(0.904 0.027 242.593);
  --chart-3: oklch(0.891 0.042 343.741);
  --chart-4: oklch(0.928 0.02 242.483);
  --chart-5: oklch(0.939 0.047 127.088);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.01 125.784);
  --foreground: oklch(0.982 0.008 126.538);
  --muted: oklch(0.247 0.012 242.879);
  --muted-foreground: oklch(0.771 0.016 242.465);
  --popover: oklch(0.123 0.013 125.784);
  --popover-foreground: oklch(0.988 0.006 126.501);
  --card: oklch(0.123 0.013 125.784);
  --card-foreground: oklch(0.988 0.006 126.501);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.045 127.053);
  --primary-foreground: oklch(0.224 0.04 129.177);
  --secondary: oklch(0.904 0.027 242.593);
  --secondary-foreground: oklch(0.4 0.073 245.739);
  --accent: oklch(0.891 0.042 343.741);
  --accent-foreground: oklch(0.381 0.115 349.927);
  --destructive: oklch(0.67 0.213 38.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.045 127.053);
  --chart-1: oklch(0.937 0.045 127.053);
  --chart-2: oklch(0.904 0.027 242.593);
  --chart-3: oklch(0.891 0.042 343.741);
  --chart-4: oklch(0.928 0.02 242.483);
  --chart-5: oklch(0.939 0.047 127.088);
}