Wool for shadcn/ui

Wool is a shadcn/ui theme built around a deep green primary color (#08170f) with deep orange accents (#170f08). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#08170f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#05150cblack
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#05150cblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#05150cblack
#ffffffwhite
Primary
#08170fblack
#08170fblack
Primary foreground
#3caf70mediumseagreen
#3caf70mediumseagreen
Secondary
#0f0817black
#0f0817black
Secondary foreground
#a47ed3mediumpurple
#a47ed3mediumpurple
Muted
#d8d5ddgainsboro
#26222adarkslategray
Muted foreground
#424044darkslategray
#bdbbbfsilver
Accent
#170f08black
#170f08black
Accent foreground
#d3a47etan
#d3a47etan
Destructive
#b52408firebrick
#f6421eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#08170fblack
#08170fblack

Contrast

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

Light mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button6.64:1AA
Secondary button6.10:1AA
Muted text7.05:1AAA
Accent8.48:1AAA
Destructive6.50:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.64:1AA
Secondary button6.10:1AA
Muted text8.19:1AAA
Accent8.48:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.176 0.029 158.876);
  --muted: oklch(0.877 0.012 306.252);
  --muted-foreground: oklch(0.376 0.007 306.188);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.176 0.029 158.876);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.176 0.029 158.876);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.187 0.027 158.496);
  --primary-foreground: oklch(0.673 0.14 155.32);
  --secondary: oklch(0.152 0.033 303.76);
  --secondary-foreground: oklch(0.663 0.128 303.83);
  --accent: oklch(0.175 0.019 60.997);
  --accent-foreground: oklch(0.753 0.076 60.576);
  --destructive: oklch(0.503 0.184 32.344);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.187 0.027 158.496);
  --chart-1: oklch(0.187 0.027 158.496);
  --chart-2: oklch(0.152 0.033 303.76);
  --chart-3: oklch(0.175 0.019 60.997);
  --chart-4: oklch(0.18 0.046 302.829);
  --chart-5: oklch(0.188 0.029 158.313);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.26 0.016 305.622);
  --muted-foreground: oklch(0.794 0.006 306.334);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.187 0.027 158.496);
  --primary-foreground: oklch(0.673 0.14 155.32);
  --secondary: oklch(0.152 0.033 303.76);
  --secondary-foreground: oklch(0.663 0.128 303.83);
  --accent: oklch(0.175 0.019 60.997);
  --accent-foreground: oklch(0.753 0.076 60.576);
  --destructive: oklch(0.642 0.221 32.885);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.187 0.027 158.496);
  --chart-1: oklch(0.187 0.027 158.496);
  --chart-2: oklch(0.152 0.033 303.76);
  --chart-3: oklch(0.175 0.019 60.997);
  --chart-4: oklch(0.18 0.046 302.829);
  --chart-5: oklch(0.188 0.029 158.313);
}