Conservative for shadcn/ui

Conservative is a shadcn/ui theme built around a vivid light green primary color (#eefab7) with vivid light purple accents (#fab7ee). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid light green primary (#eefab7) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#030401black
Foreground
#000000black
#ffffffwhite
Card
#fdfdfbsnow
#030401black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdfbsnow
#030401black
Popover foreground
#000000black
#ffffffwhite
Primary
#eefab7palegoldenrod
#eefab7palegoldenrod
Primary foreground
#141802black
#141802black
Secondary
#b7eefapaleturquoise
#b7eefapaleturquoise
Secondary foreground
#021418black
#021418black
Muted
#d9e1e3gainsboro
#1c2426black
Muted foreground
#454d4fdarkslategray
#b0b8basilver
Accent
#fab7eepink
#fab7eepink
Accent foreground
#770863purple
#770863purple
Destructive
#8b2d04saddlebrown
#f85712orangered
Destructive foreground
#fdd5c4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eefab7palegoldenrod
#eefab7palegoldenrod

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.68:1AAA
Primary button16.35:1AAA
Secondary button14.89:1AAA
Muted text6.51:1AA
Accent6.55:1AA
Destructive6.29:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button16.35:1AAA
Secondary button14.89:1AAA
Muted text7.80:1AAA
Accent6.55:1AA
Destructive3.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 114.871);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.009 212.672);
  --muted-foreground: oklch(0.414 0.011 212.72);
  --popover: oklch(0.994 0.003 114.871);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 114.871);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.96 0.086 116.498);
  --primary-foreground: oklch(0.197 0.042 118.203);
  --secondary: oklch(0.915 0.058 212.974);
  --secondary-foreground: oklch(0.176 0.028 212.747);
  --accent: oklch(0.859 0.103 333.019);
  --accent-foreground: oklch(0.391 0.165 337.978);
  --destructive: oklch(0.433 0.135 38.991);
  --destructive-foreground: oklch(0.902 0.051 44.499);
  --ring: oklch(0.96 0.086 116.498);
  --chart-1: oklch(0.96 0.086 116.498);
  --chart-2: oklch(0.915 0.058 212.974);
  --chart-3: oklch(0.859 0.103 333.019);
  --chart-4: oklch(0.931 0.047 212.853);
  --chart-5: oklch(0.963 0.089 116.548);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.011 115.361);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.254 0.012 212.834);
  --muted-foreground: oklch(0.778 0.01 212.676);
  --popover: oklch(0.1 0.011 115.361);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.1 0.011 115.361);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.96 0.086 116.498);
  --primary-foreground: oklch(0.197 0.042 118.203);
  --secondary: oklch(0.915 0.058 212.974);
  --secondary-foreground: oklch(0.176 0.028 212.747);
  --accent: oklch(0.859 0.103 333.019);
  --accent-foreground: oklch(0.391 0.165 337.978);
  --destructive: oklch(0.666 0.208 38.818);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.96 0.086 116.498);
  --chart-1: oklch(0.96 0.086 116.498);
  --chart-2: oklch(0.915 0.058 212.974);
  --chart-3: oklch(0.859 0.103 333.019);
  --chart-4: oklch(0.931 0.047 212.853);
  --chart-5: oklch(0.963 0.089 116.548);
}