Meaning for shadcn/ui

Meaning is a shadcn/ui theme built around a muted deep green primary color (#0b0c08) with muted light green accents (#c9d5b8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#0b0c08) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#080b04black
Foreground
#060803black
#fdfdfcwhite
Card
#ffffffwhite
#080b04black
Card foreground
#060803black
#fdfdfcwhite
Popover
#ffffffwhite
#080b04black
Popover foreground
#060803black
#fdfdfcwhite
Primary
#0b0c08black
#0b0c08black
Primary foreground
#a6b691darkseagreen
#a6b691darkseagreen
Secondary
#dfe4d8gainsboro
#22261cblack
Secondary foreground
#475138darkolivegreen
#bcc5afsilver
Muted
#dbe6ccgainsboro
#283319darkslategray
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#c9d5b8silver
#353f27darkslategray
Accent foreground
#303a22darkslategray
#ced8c0lightgrey
Destructive
#c32513firebrick
#e93925orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0c08black
#0b0c08black

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button9.07:1AAA
Secondary button6.47:1AA
Muted text6.82:1AA
Accent7.84:1AAA
Destructive5.84:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button9.07:1AAA
Secondary button8.58:1AAA
Muted text6.46:1AA
Accent7.49:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.017 124.339);
  --muted: oklch(0.909 0.037 125.61);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.017 124.339);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.126 0.017 124.339);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.152 0.009 125.463);
  --primary-foreground: oklch(0.753 0.054 126.065);
  --secondary: oklch(0.911 0.017 125.302);
  --secondary-foreground: oklch(0.419 0.042 126.494);
  --accent: oklch(0.857 0.042 125.728);
  --accent-foreground: oklch(0.331 0.042 126.95);
  --destructive: oklch(0.529 0.195 30.518);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.009 125.463);
  --chart-1: oklch(0.152 0.009 125.463);
  --chart-2: oklch(0.911 0.017 125.302);
  --chart-3: oklch(0.857 0.042 125.728);
  --chart-4: oklch(0.932 0.013 125.237);
  --chart-5: oklch(0.153 0.011 125.506);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.018 124.499);
  --foreground: oklch(0.994 0.002 125.075);
  --muted: oklch(0.304 0.046 127.4);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.144 0.018 124.499);
  --popover-foreground: oklch(0.994 0.002 125.075);
  --card: oklch(0.144 0.018 124.499);
  --card-foreground: oklch(0.994 0.002 125.075);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.152 0.009 125.463);
  --primary-foreground: oklch(0.753 0.054 126.065);
  --secondary: oklch(0.262 0.02 126.148);
  --secondary-foreground: oklch(0.811 0.032 125.597);
  --accent: oklch(0.352 0.042 126.85);
  --accent-foreground: oklch(0.869 0.035 125.608);
  --destructive: oklch(0.614 0.215 30.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.152 0.009 125.463);
  --chart-1: oklch(0.152 0.009 125.463);
  --chart-2: oklch(0.262 0.02 126.148);
  --chart-3: oklch(0.352 0.042 126.85);
  --chart-4: oklch(0.297 0.024 126.21);
  --chart-5: oklch(0.153 0.011 125.506);
}