Mature for shadcn/ui

Mature is a shadcn/ui theme built around a deep purple primary color (#321130) with deep teal accents (#113032). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#321130) on a purple-tinted background (#0e060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060eblack
Foreground
#170316black
#faf5faghostwhite
Card
#fcfcfcsnow
#120811black
Card foreground
#120211black
#fcf8fbsnow
Popover
#ffffffwhite
#0e060eblack
Popover foreground
#170316black
#faf5faghostwhite
Primary
#321130midnightblue
#321130midnightblue
Primary foreground
#dd98d9plum
#dd98d9plum
Secondary
#303211darkslategray
#303211darkslategray
Secondary foreground
#bdc34bdarkkhaki
#bdc34bdarkkhaki
Muted
#dedfd3gainsboro
#2c2c20darkslategray
Muted foreground
#41423edarkslategray
#c1c1bdsilver
Accent
#113032darkslategray
#113032darkslategray
Accent foreground
#4bbdc3mediumturquoise
#4bbdc3mediumturquoise
Destructive
#9c0502darkred
#fc211dred
Destructive foreground
#fed3d2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#321130midnightblue
#321130midnightblue

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.71:1AAA
Primary button7.62:1AAA
Secondary button6.98:1AA
Muted text7.51:1AAA
Accent6.27:1AA
Destructive6.36:1AA
Dark mode
Text on background18.53:1AAA
Text on card18.70:1AAA
Primary button7.62:1AAA
Secondary button6.98:1AA
Muted text7.79:1AAA
Accent6.27:1AA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.151 0.053 329.662);
  --muted: oklch(0.899 0.016 109.046);
  --muted-foreground: oklch(0.376 0.006 109.022);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.151 0.053 329.662);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.136 0.047 329.479);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.243 0.072 329.474);
  --primary-foreground: oklch(0.767 0.118 328.364);
  --secondary: oklch(0.306 0.051 111.689);
  --secondary-foreground: oklch(0.79 0.142 111.933);
  --accent: oklch(0.287 0.037 199.999);
  --accent-foreground: oklch(0.737 0.102 200.054);
  --destructive: oklch(0.436 0.176 29.293);
  --destructive-foreground: oklch(0.903 0.049 19.251);
  --ring: oklch(0.243 0.072 329.474);
  --chart-1: oklch(0.243 0.072 329.474);
  --chart-2: oklch(0.306 0.051 111.689);
  --chart-3: oklch(0.287 0.037 199.999);
  --chart-4: oklch(0.349 0.06 111.793);
  --chart-5: oklch(0.243 0.075 329.581);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.022 328.292);
  --foreground: oklch(0.975 0.008 327.117);
  --muted: oklch(0.29 0.021 110.027);
  --muted-foreground: oklch(0.81 0.005 108.83);
  --popover: oklch(0.14 0.022 328.292);
  --popover-foreground: oklch(0.975 0.008 327.117);
  --card: oklch(0.153 0.026 328.458);
  --card-foreground: oklch(0.983 0.006 327.09);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.243 0.072 329.474);
  --primary-foreground: oklch(0.767 0.118 328.364);
  --secondary: oklch(0.306 0.051 111.689);
  --secondary-foreground: oklch(0.79 0.142 111.933);
  --accent: oklch(0.287 0.037 199.999);
  --accent-foreground: oklch(0.737 0.102 200.054);
  --destructive: oklch(0.631 0.245 28.553);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.243 0.072 329.474);
  --chart-1: oklch(0.243 0.072 329.474);
  --chart-2: oklch(0.306 0.051 111.689);
  --chart-3: oklch(0.287 0.037 199.999);
  --chart-4: oklch(0.349 0.06 111.793);
  --chart-5: oklch(0.243 0.075 329.581);
}