Sore for shadcn/ui

Sore is a shadcn/ui theme built around a muted green primary color (#c8cda7) with muted purple accents (#cda7c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#c8cda7) on a green-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0a05black
Foreground
#0c0e02black
#fdfdfcwhite
Card
#ffffffwhite
#0a0a05black
Card foreground
#0c0e02black
#fdfdfcwhite
Popover
#ffffffwhite
#0a0a05black
Popover foreground
#0c0e02black
#fdfdfcwhite
Primary
#c8cda7silver
#c8cda7silver
Primary foreground
#282a18black
#282a18black
Secondary
#a7c8cdlightsteelblue
#a7c8cdlightsteelblue
Secondary foreground
#18282adarkslategray
#18282adarkslategray
Muted
#dceceflavender
#102023black
Muted foreground
#415558darkslategray
#a7bbbesilver
Accent
#cda7c8plum
#cda7c8plum
Accent foreground
#2a1828black
#2a1828black
Destructive
#7d1b08maroon
#f35d3ftomato
Destructive foreground
#fbc6bcpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8cda7silver
#c8cda7silver

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button8.91:1AAA
Secondary button8.58:1AAA
Muted text6.50:1AA
Accent7.90:1AAA
Destructive6.84:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button8.91:1AAA
Secondary button8.58:1AAA
Muted text8.34:1AAA
Accent7.90:1AAA
Destructive6.44:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.029 114.55);
  --muted: oklch(0.933 0.018 207.864);
  --muted-foreground: oklch(0.434 0.025 207.861);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.029 114.55);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.155 0.029 114.55);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.836 0.052 113.704);
  --primary-foreground: oklch(0.279 0.032 114.696);
  --secondary: oklch(0.811 0.036 207.838);
  --secondary-foreground: oklch(0.264 0.022 208.006);
  --accent: oklch(0.773 0.064 330.653);
  --accent-foreground: oklch(0.24 0.04 331.604);
  --destructive: oklch(0.388 0.135 32.839);
  --destructive-foreground: oklch(0.871 0.062 31.355);
  --ring: oklch(0.836 0.052 113.704);
  --chart-1: oklch(0.836 0.052 113.704);
  --chart-2: oklch(0.811 0.036 207.838);
  --chart-3: oklch(0.773 0.064 330.653);
  --chart-4: oklch(0.832 0.032 207.836);
  --chart-5: oklch(0.841 0.057 113.815);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.014 113.331);
  --foreground: oklch(0.994 0.002 112.584);
  --muted: oklch(0.232 0.023 208.153);
  --muted-foreground: oklch(0.778 0.022 207.844);
  --popover: oklch(0.144 0.014 113.331);
  --popover-foreground: oklch(0.994 0.002 112.584);
  --card: oklch(0.144 0.014 113.331);
  --card-foreground: oklch(0.994 0.002 112.584);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.836 0.052 113.704);
  --primary-foreground: oklch(0.279 0.032 114.696);
  --secondary: oklch(0.811 0.036 207.838);
  --secondary-foreground: oklch(0.264 0.022 208.006);
  --accent: oklch(0.773 0.064 330.653);
  --accent-foreground: oklch(0.24 0.04 331.604);
  --destructive: oklch(0.669 0.19 33.182);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.836 0.052 113.704);
  --chart-1: oklch(0.836 0.052 113.704);
  --chart-2: oklch(0.811 0.036 207.838);
  --chart-3: oklch(0.773 0.064 330.653);
  --chart-4: oklch(0.832 0.032 207.836);
  --chart-5: oklch(0.841 0.057 113.815);
}