Aid for shadcn/ui

Aid is a shadcn/ui theme built around a muted deep green primary color (#1c231a) with muted green accents (#bac9b6). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted deep green primary (#1c231a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfefbwhite
#000000black
Foreground
#061103black
#ffffffwhite
Card
#fcfefbwhite
#000000black
Card foreground
#061103black
#ffffffwhite
Popover
#fcfefbwhite
#000000black
Popover foreground
#061103black
#ffffffwhite
Primary
#1c231ablack
#1c231ablack
Primary foreground
#b2c2aesilver
#b2c2aesilver
Secondary
#cfd5cdlightgrey
#1d211cblack
Secondary foreground
#353d33darkslategray
#b4beb1silver
Muted
#e9eee7linen
#121811black
Muted foreground
#5d6f58dimgray
#95a790darkseagreen
Accent
#bac9b6silver
#293626darkslategray
Accent foreground
#232c21darkslategray
#c2d1bdsilver
Destructive
#773109saddlebrown
#e45e11chocolate
Destructive foreground
#fad0b8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c231ablack
#1c231ablack

Contrast

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

Light mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button8.60:1AAA
Secondary button7.53:1AAA
Muted text4.60:1AA
Accent8.32:1AAA
Destructive6.64:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.60:1AAA
Secondary button8.47:1AAA
Muted text7.03:1AAA
Accent7.94:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 138.336);
  --foreground: oklch(0.163 0.037 136.904);
  --muted: oklch(0.944 0.012 138.343);
  --muted-foreground: oklch(0.521 0.043 138.43);
  --popover: oklch(0.995 0.005 138.336);
  --popover-foreground: oklch(0.163 0.037 136.904);
  --card: oklch(0.995 0.005 138.336);
  --card-foreground: oklch(0.163 0.037 136.904);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.246 0.019 138.42);
  --primary-foreground: oklch(0.795 0.032 138.374);
  --secondary: oklch(0.866 0.013 138.346);
  --secondary-foreground: oklch(0.35 0.02 138.395);
  --accent: oklch(0.819 0.031 138.371);
  --accent-foreground: oklch(0.281 0.024 138.436);
  --destructive: oklch(0.405 0.109 45.135);
  --destructive-foreground: oklch(0.887 0.057 51.759);
  --ring: oklch(0.246 0.019 138.42);
  --chart-1: oklch(0.246 0.019 138.42);
  --chart-2: oklch(0.866 0.013 138.346);
  --chart-3: oklch(0.819 0.031 138.371);
  --chart-4: oklch(0.889 0.011 138.343);
  --chart-5: oklch(0.248 0.022 138.444);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.018 138.439);
  --muted-foreground: oklch(0.709 0.04 138.393);
  --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.246 0.019 138.42);
  --primary-foreground: oklch(0.795 0.032 138.374);
  --secondary: oklch(0.243 0.012 138.385);
  --secondary-foreground: oklch(0.79 0.021 138.358);
  --accent: oklch(0.317 0.033 138.471);
  --accent-foreground: oklch(0.843 0.032 138.372);
  --destructive: oklch(0.644 0.183 43.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.246 0.019 138.42);
  --chart-1: oklch(0.246 0.019 138.42);
  --chart-2: oklch(0.243 0.012 138.385);
  --chart-3: oklch(0.317 0.033 138.471);
  --chart-4: oklch(0.276 0.015 138.389);
  --chart-5: oklch(0.248 0.022 138.444);
}