Raw for shadcn/ui

Raw is a shadcn/ui theme built around a green primary color (#589f56) with purple accents (#9d569f). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#589f56) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#030703black
Foreground
#051505black
#f5f9f5whitesmoke
Card
#f8fcf8mintcream
#030703black
Card foreground
#051505black
#f5f9f5whitesmoke
Popover
#f8fcf8mintcream
#030703black
Popover foreground
#051505black
#f5f9f5whitesmoke
Primary
#589f56mediumseagreen
#589f56mediumseagreen
Primary foreground
#000000black
#000000black
Secondary
#9d569fdarkorchid
#9d569fdarkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efe0f0lavender
#1e0f1fblack
Muted foreground
#6b566cdimgray
#a893a9darkgray
Accent
#9d569fdarkorchid
#9d569fdarkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#881a06darkred
#f54c2etomato
Destructive foreground
#fccdc5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#589f56mediumseagreen
#589f56mediumseagreen

Contrast

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

Light mode
Text on background18.15:1AAA
Text on card18.15:1AAA
Primary button6.51:1AA
Secondary button4.94:1AA
Muted text5.24:1AA
Accent4.94:1AA
Destructive6.66:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button6.51:1AA
Secondary button4.94:1AA
Muted text6.47:1AA
Accent4.94:1AA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 144.575);
  --foreground: oklch(0.175 0.04 142.758);
  --muted: oklch(0.924 0.026 324.799);
  --muted-foreground: oklch(0.482 0.042 325.155);
  --popover: oklch(0.987 0.007 144.575);
  --popover-foreground: oklch(0.175 0.04 142.758);
  --card: oklch(0.987 0.007 144.575);
  --card-foreground: oklch(0.175 0.04 142.758);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.128 143.225);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.562 0.135 325.966);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.562 0.135 325.966);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.409 0.148 32.091);
  --destructive-foreground: oklch(0.887 0.055 29.818);
  --ring: oklch(0.638 0.128 143.225);
  --chart-1: oklch(0.638 0.128 143.225);
  --chart-2: oklch(0.562 0.135 325.966);
  --chart-3: oklch(0.562 0.135 325.966);
  --chart-4: oklch(0.587 0.137 325.932);
  --chart-5: oklch(0.645 0.139 143.117);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.016 143.491);
  --foreground: oklch(0.979 0.007 144.575);
  --muted: oklch(0.198 0.038 325.725);
  --muted-foreground: oklch(0.69 0.039 324.968);
  --popover: oklch(0.12 0.016 143.491);
  --popover-foreground: oklch(0.979 0.007 144.575);
  --card: oklch(0.12 0.016 143.491);
  --card-foreground: oklch(0.979 0.007 144.575);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.638 0.128 143.225);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.562 0.135 325.966);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.562 0.135 325.966);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.652 0.211 32.382);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.128 143.225);
  --chart-1: oklch(0.638 0.128 143.225);
  --chart-2: oklch(0.562 0.135 325.966);
  --chart-3: oklch(0.562 0.135 325.966);
  --chart-4: oklch(0.587 0.137 325.932);
  --chart-5: oklch(0.645 0.139 143.117);
}