Pure for shadcn/ui

Pure is a shadcn/ui theme built around a vivid green primary color (#6cf9a9) with vivid teal accents (#6cf9ef). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#6cf9a9) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#ffffffwhite
#020805black
Foreground
#040c07black
#fcfdfcwhite
Card
#fcfcfcsnow
#040c07black
Card foreground
#020805black
#ffffffwhite
Popover
#ffffffwhite
#020805black
Popover foreground
#040c07black
#fcfdfcwhite
Primary
#6cf9a9mediumaquamarine
#6cf9a9mediumaquamarine
Primary foreground
#023116black
#023116black
Secondary
#76f96clightgreen
#76f96clightgreen
Secondary foreground
#053102black
#053102black
Muted
#e3e9e2gainsboro
#171d16black
Muted foreground
#5d665cdimgray
#9aa399darkgray
Accent
#6cf9efaquamarine
#6cf9efaquamarine
Accent foreground
#02312edarkslategray
#02312edarkslategray
Destructive
#da4d01orangered
#fe5d06orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6cf9a9mediumaquamarine
#6cf9a9mediumaquamarine

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.76:1AAA
Primary button10.83:1AAA
Secondary button10.72:1AAA
Muted text4.82:1AA
Accent11.08:1AAA
Destructive4.15:1AA Large
Dark mode
Text on background19.81:1AAA
Text on card19.82:1AAA
Primary button10.83:1AAA
Secondary button10.72:1AAA
Muted text6.61:1AA
Accent11.08:1AAA
Destructive6.77:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.018 161.606);
  --muted: oklch(0.927 0.011 143.573);
  --muted-foreground: oklch(0.498 0.019 143.435);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.018 161.606);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.016 161.79);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.884 0.166 155.747);
  --primary-foreground: oklch(0.275 0.069 152.906);
  --secondary: oklch(0.878 0.216 142.315);
  --secondary-foreground: oklch(0.273 0.088 141.695);
  --accent: oklch(0.902 0.123 189.202);
  --accent-foreground: oklch(0.283 0.048 187.923);
  --destructive: oklch(0.607 0.189 40.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.884 0.166 155.747);
  --chart-1: oklch(0.884 0.166 155.747);
  --chart-2: oklch(0.878 0.216 142.315);
  --chart-3: oklch(0.902 0.123 189.202);
  --chart-4: oklch(0.886 0.198 142.423);
  --chart-5: oklch(0.889 0.171 155.558);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.016 161.789);
  --foreground: oklch(0.993 0.002 161.77);
  --muted: oklch(0.221 0.016 143.254);
  --muted-foreground: oklch(0.705 0.017 143.506);
  --popover: oklch(0.123 0.016 161.789);
  --popover-foreground: oklch(0.993 0.002 161.77);
  --card: oklch(0.141 0.019 161.556);
  --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.884 0.166 155.747);
  --primary-foreground: oklch(0.275 0.069 152.906);
  --secondary: oklch(0.878 0.216 142.315);
  --secondary-foreground: oklch(0.273 0.088 141.695);
  --accent: oklch(0.902 0.123 189.202);
  --accent-foreground: oklch(0.283 0.048 187.923);
  --destructive: oklch(0.683 0.21 40.646);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.884 0.166 155.747);
  --chart-1: oklch(0.884 0.166 155.747);
  --chart-2: oklch(0.878 0.216 142.315);
  --chart-3: oklch(0.902 0.123 189.202);
  --chart-4: oklch(0.886 0.198 142.423);
  --chart-5: oklch(0.889 0.171 155.558);
}