Right for shadcn/ui

Right is a shadcn/ui theme built around a muted deep green primary color (#252b1c) with muted deep pink accents (#2b1c25). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted deep green primary (#252b1c) on a green-tinted background (#0b1005).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0b1005black
Foreground
#0e1505black
#f7f8f6whitesmoke
Card
#f8fcf3whitesmoke
#0e1406black
Card foreground
#0b1104black
#fafbf9snow
Popover
#f8fcf3whitesmoke
#0e1406black
Popover foreground
#0b1104black
#fafbf9snow
Primary
#252b1cdarkslategray
#252b1cdarkslategray
Primary foreground
#bfcbafsilver
#bfcbafsilver
Secondary
#1c252bdarkslategray
#1c252bdarkslategray
Secondary foreground
#afbfcblightsteelblue
#afbfcblightsteelblue
Muted
#f1f2f3whitesmoke
#0c0d0eblack
Muted foreground
#4f5b63dimgray
#9ca7b0darkgray
Accent
#2b1c25black
#2b1c25black
Accent foreground
#cbafbfsilver
#cbafbfsilver
Destructive
#751400maroon
#ff370forangered
Destructive foreground
#ffb7a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#252b1cdarkslategray
#252b1cdarkslategray

Contrast

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

Light mode
Text on background18.12:1AAA
Text on card18.40:1AAA
Primary button8.57:1AAA
Secondary button8.27:1AAA
Muted text6.24:1AA
Accent8.03:1AAA
Destructive6.77:1AA
Dark mode
Text on background18.10:1AAA
Text on card18.09:1AAA
Primary button8.57:1AAA
Secondary button8.27:1AAA
Muted text7.94:1AAA
Accent8.03:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 125.851);
  --foreground: oklch(0.183 0.034 127.649);
  --muted: oklch(0.962 0.001 240.302);
  --muted-foreground: oklch(0.463 0.02 240.888);
  --popover: oklch(0.985 0.012 125.907);
  --popover-foreground: oklch(0.166 0.03 126.593);
  --card: oklch(0.985 0.012 125.907);
  --card-foreground: oklch(0.166 0.03 126.593);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.279 0.028 127.159);
  --primary-foreground: oklch(0.824 0.04 126.404);
  --secondary: oklch(0.258 0.017 241.278);
  --secondary-foreground: oklch(0.795 0.024 240.714);
  --accent: oklch(0.25 0.028 344.294);
  --accent-foreground: oklch(0.782 0.038 342.946);
  --destructive: oklch(0.366 0.134 33.113);
  --destructive-foreground: oklch(0.843 0.087 31.604);
  --ring: oklch(0.279 0.028 127.159);
  --chart-1: oklch(0.279 0.028 127.159);
  --chart-2: oklch(0.258 0.017 241.278);
  --chart-3: oklch(0.25 0.028 344.294);
  --chart-4: oklch(0.289 0.02 241.337);
  --chart-5: oklch(0.282 0.032 127.353);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.025 126.496);
  --foreground: oklch(0.979 0.003 125.774);
  --muted: oklch(0.158 0.002 240.46);
  --muted-foreground: oklch(0.722 0.018 240.624);
  --popover: oklch(0.179 0.029 127.503);
  --popover-foreground: oklch(0.986 0.002 125.763);
  --card: oklch(0.179 0.029 127.503);
  --card-foreground: oklch(0.986 0.002 125.763);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.279 0.028 127.159);
  --primary-foreground: oklch(0.824 0.04 126.404);
  --secondary: oklch(0.258 0.017 241.278);
  --secondary-foreground: oklch(0.795 0.024 240.714);
  --accent: oklch(0.25 0.028 344.294);
  --accent-foreground: oklch(0.782 0.038 342.946);
  --destructive: oklch(0.65 0.238 32.305);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.279 0.028 127.159);
  --chart-1: oklch(0.279 0.028 127.159);
  --chart-2: oklch(0.258 0.017 241.278);
  --chart-3: oklch(0.25 0.028 344.294);
  --chart-4: oklch(0.289 0.02 241.337);
  --chart-5: oklch(0.282 0.032 127.353);
}