Mature for shadcn/ui

Mature is a shadcn/ui theme built around a vivid light green primary color (#befec5) with muted light green accents (#bed0c0). The light mode uses a neutral background (#f8fbf9). Dark mode keeps the vivid light green primary (#befec5) on a green-tinted background (#060e07).

Color palette

TokenLightDark
Background
#f8fbf9mintcream
#060e07black
Foreground
#051006black
#f8fcf8mintcream
Card
#f5faf6whitesmoke
#081209black
Card foreground
#040c05black
#fbfdfcwhite
Popover
#f5faf6whitesmoke
#081209black
Popover foreground
#040c05black
#fbfdfcwhite
Primary
#befec5paleturquoise
#befec5paleturquoise
Primary foreground
#012305black
#012305black
Secondary
#dde3degainsboro
#1a231bblack
Secondary foreground
#404f42darkslategray
#adc2afsilver
Muted
#e1eae2gainsboro
#151e16black
Muted foreground
#616562dimgray
#9a9e9adarkgray
Accent
#bed0c0silver
#243827darkslategray
Accent foreground
#273528darkslategray
#bbd3besilver
Destructive
#bd2214firebrick
#e93f2fcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#befec5paleturquoise
#befec5paleturquoise

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.72:1AAA
Primary button14.60:1AAA
Secondary button6.69:1AA
Muted text4.80:1AA
Accent7.96:1AAA
Destructive6.16:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.72:1AAA
Primary button14.60:1AAA
Secondary button8.53:1AAA
Muted text6.30:1AA
Accent7.92:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 149.074);
  --foreground: oklch(0.156 0.028 147.621);
  --muted: oklch(0.928 0.013 148.968);
  --muted-foreground: oklch(0.504 0.007 148.96);
  --popover: oklch(0.98 0.007 149.043);
  --popover-foreground: oklch(0.14 0.024 147.955);
  --card: oklch(0.98 0.007 149.043);
  --card-foreground: oklch(0.14 0.024 147.955);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.939 0.1 147.789);
  --primary-foreground: oklch(0.224 0.069 145.296);
  --secondary: oklch(0.911 0.01 149.006);
  --secondary-foreground: oklch(0.409 0.028 148.307);
  --accent: oklch(0.839 0.029 148.717);
  --accent-foreground: oklch(0.312 0.03 147.923);
  --destructive: oklch(0.517 0.192 30.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.1 147.789);
  --chart-1: oklch(0.939 0.1 147.789);
  --chart-2: oklch(0.911 0.01 149.006);
  --chart-3: oklch(0.839 0.029 148.717);
  --chart-4: oklch(0.933 0.007 149.041);
  --chart-5: oklch(0.941 0.103 147.748);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.02 148.05);
  --foreground: oklch(0.987 0.006 149.059);
  --muted: oklch(0.222 0.018 148.113);
  --muted-foreground: oklch(0.693 0.007 149.017);
  --popover: oklch(0.167 0.023 147.615);
  --popover-foreground: oklch(0.993 0.003 149.096);
  --card: oklch(0.167 0.023 147.615);
  --card-foreground: oklch(0.993 0.003 149.096);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.939 0.1 147.789);
  --primary-foreground: oklch(0.224 0.069 145.296);
  --secondary: oklch(0.245 0.02 148.117);
  --secondary-foreground: oklch(0.793 0.035 148.597);
  --accent: oklch(0.317 0.039 147.551);
  --accent-foreground: oklch(0.842 0.038 148.586);
  --destructive: oklch(0.62 0.209 29.524);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.1 147.789);
  --chart-1: oklch(0.939 0.1 147.789);
  --chart-2: oklch(0.245 0.02 148.117);
  --chart-3: oklch(0.317 0.039 147.551);
  --chart-4: oklch(0.279 0.024 148.049);
  --chart-5: oklch(0.941 0.103 147.748);
}