Account for shadcn/ui

Account is a shadcn/ui theme built around a deep green primary color (#28572a) with muted light green accents (#bed5be). The light mode uses a neutral background (#f8fbf8). Dark mode keeps the deep green primary (#28572a) on a green-tinted background (#060f06).

Color palette

TokenLightDark
Background
#f8fbf8mintcream
#060f06black
Foreground
#061406black
#f6f9f6whitesmoke
Card
#f8fbf8mintcream
#060f06black
Card foreground
#061406black
#f6f9f6whitesmoke
Popover
#f8fbf8mintcream
#060f06black
Popover foreground
#061406black
#f6f9f6whitesmoke
Primary
#28572adarkslategray
#28572adarkslategray
Primary foreground
#cbe7cclightgrey
#cbe7cclightgrey
Secondary
#d7e0d7gainsboro
#181b18black
Secondary foreground
#3a4b3adarkslategray
#adb8aedarkgray
Muted
#d3e9d3gainsboro
#162c17black
Muted foreground
#546355dimgray
#9cab9cdarkgray
Accent
#bed5besilver
#2c3a2ddarkslategray
Accent foreground
#263b27darkslategray
#c5d3c6lightgrey
Destructive
#5f0a07maroon
#f02f28crimson
Destructive foreground
#f8a3a0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#28572adarkslategray
#28572adarkslategray

Contrast

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

Light mode
Text on background18.21:1AAA
Text on card18.21:1AAA
Primary button6.34:1AA
Secondary button6.90:1AA
Muted text4.97:1AA
Accent7.75:1AAA
Destructive6.99:1AA
Dark mode
Text on background18.37:1AAA
Text on card18.37:1AAA
Primary button6.34:1AA
Secondary button8.46:1AAA
Muted text6.17:1AA
Accent7.74:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 146.495);
  --foreground: oklch(0.172 0.034 144.757);
  --muted: oklch(0.912 0.038 146.173);
  --muted-foreground: oklch(0.483 0.029 146.007);
  --popover: oklch(0.986 0.005 146.495);
  --popover-foreground: oklch(0.172 0.034 144.757);
  --card: oklch(0.986 0.005 146.495);
  --card-foreground: oklch(0.172 0.034 144.757);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.412 0.09 144.366);
  --primary-foreground: oklch(0.9 0.047 146.069);
  --secondary: oklch(0.897 0.016 146.388);
  --secondary-foreground: oklch(0.392 0.035 145.718);
  --accent: oklch(0.85 0.04 146.12);
  --accent-foreground: oklch(0.328 0.045 145.249);
  --destructive: oklch(0.313 0.118 28.739);
  --destructive-foreground: oklch(0.798 0.103 21.772);
  --ring: oklch(0.412 0.09 144.366);
  --chart-1: oklch(0.412 0.09 144.366);
  --chart-2: oklch(0.897 0.016 146.388);
  --chart-3: oklch(0.85 0.04 146.12);
  --chart-4: oklch(0.919 0.012 146.425);
  --chart-5: oklch(0.417 0.096 144.222);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.025 145.173);
  --foreground: oklch(0.978 0.005 146.501);
  --muted: oklch(0.269 0.049 144.774);
  --muted-foreground: oklch(0.724 0.026 146.222);
  --popover: oklch(0.154 0.025 145.173);
  --popover-foreground: oklch(0.978 0.005 146.501);
  --card: oklch(0.154 0.025 145.173);
  --card-foreground: oklch(0.978 0.005 146.501);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.412 0.09 144.366);
  --primary-foreground: oklch(0.9 0.047 146.069);
  --secondary: oklch(0.218 0.009 146.193);
  --secondary-foreground: oklch(0.771 0.019 146.327);
  --accent: oklch(0.331 0.028 145.758);
  --accent-foreground: oklch(0.852 0.023 146.307);
  --destructive: oklch(0.619 0.227 28.285);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.412 0.09 144.366);
  --chart-1: oklch(0.412 0.09 144.366);
  --chart-2: oklch(0.218 0.009 146.193);
  --chart-3: oklch(0.331 0.028 145.758);
  --chart-4: oklch(0.252 0.011 146.162);
  --chart-5: oklch(0.417 0.096 144.222);
}