Raw for shadcn/ui

Raw is a shadcn/ui theme built around a light green primary color (#c9d7ac) with muted light green accents (#e0e3d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#c9d7ac) on a green-tinted background (#0b0e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0e07black
Foreground
#030401black
#fdfdfcwhite
Card
#fcfcfcsnow
#0e1108black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0b0e07black
Popover foreground
#030401black
#fdfdfcwhite
Primary
#c9d7acsilver
#c9d7acsilver
Primary foreground
#2e371bdarkslategray
#2e371bdarkslategray
Secondary
#e0e3d8gainsboro
#1a1c17black
Secondary foreground
#495139darkolivegreen
#b5b9acdarkgray
Muted
#ebf1dfbeige
#1a200eblack
Muted foreground
#63675bdimgray
#a0a498darkgray
Accent
#e0e3d8gainsboro
#1a1c17black
Accent foreground
#495139darkolivegreen
#b5b9acdarkgray
Destructive
#6b2106maroon
#f4632ftomato
Destructive foreground
#fabea8lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9d7acsilver
#c9d7acsilver

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.54:1AAA
Primary button8.23:1AAA
Secondary button6.42:1AA
Muted text5.02:1AA
Accent6.42:1AA
Destructive7.08:1AAA
Dark mode
Text on background19.11:1AAA
Text on card19.01:1AAA
Primary button8.23:1AAA
Secondary button8.59:1AAA
Muted text6.57:1AA
Accent8.59:1AAA
Destructive6.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.016 121.138);
  --muted: oklch(0.949 0.025 121.91);
  --muted-foreground: oklch(0.506 0.019 122.089);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.016 121.138);
  --card: oklch(0.992 0 161.565);
  --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.858 0.059 122.632);
  --primary-foreground: oklch(0.32 0.048 124.187);
  --secondary: oklch(0.911 0.016 121.769);
  --secondary-foreground: oklch(0.419 0.039 123.025);
  --accent: oklch(0.911 0.016 121.769);
  --accent-foreground: oklch(0.419 0.039 123.025);
  --destructive: oklch(0.359 0.111 37.998);
  --destructive-foreground: oklch(0.85 0.077 40.875);
  --ring: oklch(0.858 0.059 122.632);
  --chart-1: oklch(0.858 0.059 122.632);
  --chart-2: oklch(0.911 0.016 121.769);
  --chart-3: oklch(0.911 0.016 121.769);
  --chart-4: oklch(0.932 0.012 121.7);
  --chart-5: oklch(0.862 0.064 122.724);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.016 122.426);
  --foreground: oklch(0.993 0.002 121.517);
  --muted: oklch(0.231 0.033 124.012);
  --muted-foreground: oklch(0.712 0.017 121.881);
  --popover: oklch(0.157 0.016 122.426);
  --popover-foreground: oklch(0.993 0.002 121.517);
  --card: oklch(0.172 0.018 123.155);
  --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.858 0.059 122.632);
  --primary-foreground: oklch(0.32 0.048 124.187);
  --secondary: oklch(0.222 0.009 122.151);
  --secondary-foreground: oklch(0.779 0.02 121.904);
  --accent: oklch(0.222 0.009 122.151);
  --accent-foreground: oklch(0.779 0.02 121.904);
  --destructive: oklch(0.678 0.189 39.004);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.858 0.059 122.632);
  --chart-1: oklch(0.858 0.059 122.632);
  --chart-2: oklch(0.222 0.009 122.151);
  --chart-3: oklch(0.222 0.009 122.151);
  --chart-4: oklch(0.257 0.011 122.207);
  --chart-5: oklch(0.862 0.064 122.724);
}