Honor for shadcn/ui

Honor is a shadcn/ui theme built around a muted deep green primary color (#20251d) with muted deep green accents (#1d251e). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted deep green primary (#20251d) on a green-tinted background (#0a0d07).

Color palette

TokenLightDark
Background
#fafcf8snow
#0a0d07black
Foreground
#091005black
#fcfdfcwhite
Card
#fafcf8snow
#0a0d07black
Card foreground
#091005black
#fcfdfcwhite
Popover
#fafcf8snow
#0a0d07black
Popover foreground
#091005black
#fcfdfcwhite
Primary
#20251dblack
#20251dblack
Primary foreground
#b8c2b2silver
#b8c2b2silver
Secondary
#24251dblack
#24251dblack
Secondary foreground
#c1c2b2silver
#c1c2b2silver
Muted
#f3f4f1whitesmoke
#0e0e0bblack
Muted foreground
#585855dimgray
#aaaaa7darkgray
Accent
#1d251eblack
#1d251eblack
Accent foreground
#b2c2b4silver
#b2c2b4silver
Destructive
#b21706firebrick
#f94c39tomato
Destructive foreground
#feedeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#20251dblack
#20251dblack

Contrast

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

Light mode
Text on background18.63:1AAA
Text on card18.63:1AAA
Primary button8.46:1AAA
Secondary button8.54:1AAA
Muted text6.46:1AA
Accent8.42:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button8.46:1AAA
Secondary button8.54:1AAA
Muted text8.28:1AAA
Accent8.42:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 132.395);
  --foreground: oklch(0.161 0.026 132.048);
  --muted: oklch(0.965 0.004 111.093);
  --muted-foreground: oklch(0.46 0.006 111.238);
  --popover: oklch(0.987 0.005 132.395);
  --popover-foreground: oklch(0.161 0.026 132.048);
  --card: oklch(0.987 0.005 132.395);
  --card-foreground: oklch(0.161 0.026 132.048);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.257 0.016 132.847);
  --primary-foreground: oklch(0.803 0.025 132.598);
  --secondary: oklch(0.261 0.014 112.032);
  --secondary-foreground: oklch(0.809 0.023 111.538);
  --accent: oklch(0.255 0.017 147.796);
  --accent-foreground: oklch(0.798 0.027 148.203);
  --destructive: oklch(0.488 0.189 30.475);
  --destructive-foreground: oklch(0.96 0.019 25.161);
  --ring: oklch(0.257 0.016 132.847);
  --chart-1: oklch(0.257 0.016 132.847);
  --chart-2: oklch(0.261 0.014 112.032);
  --chart-3: oklch(0.255 0.017 147.796);
  --chart-4: oklch(0.296 0.017 112.086);
  --chart-5: oklch(0.26 0.02 132.969);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.015 132.207);
  --foreground: oklch(0.994 0.002 132.375);
  --muted: oklch(0.163 0.006 111.726);
  --muted-foreground: oklch(0.737 0.005 111.139);
  --popover: oklch(0.154 0.015 132.207);
  --popover-foreground: oklch(0.994 0.002 132.375);
  --card: oklch(0.154 0.015 132.207);
  --card-foreground: oklch(0.994 0.002 132.375);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.257 0.016 132.847);
  --primary-foreground: oklch(0.803 0.025 132.598);
  --secondary: oklch(0.261 0.014 112.032);
  --secondary-foreground: oklch(0.809 0.023 111.538);
  --accent: oklch(0.255 0.017 147.796);
  --accent-foreground: oklch(0.798 0.027 148.203);
  --destructive: oklch(0.66 0.212 30.007);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.257 0.016 132.847);
  --chart-1: oklch(0.257 0.016 132.847);
  --chart-2: oklch(0.261 0.014 112.032);
  --chart-3: oklch(0.255 0.017 147.796);
  --chart-4: oklch(0.296 0.017 112.086);
  --chart-5: oklch(0.26 0.02 132.969);
}