Honorable for shadcn/ui

Honorable is a shadcn/ui theme built around a deep green primary color (#4b5e31) with muted light green accents (#daded3). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#4b5e31) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#ffffffwhite
#050703black
Foreground
#000000black
#f8f9f6whitesmoke
Card
#ffffffwhite
#050703black
Card foreground
#000000black
#f8f9f6whitesmoke
Popover
#ffffffwhite
#050703black
Popover foreground
#000000black
#f8f9f6whitesmoke
Primary
#4b5e31darkolivegreen
#4b5e31darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#daded3gainsboro
#2c2f28darkslategray
Secondary foreground
#414936darkslategray
#c5c9c0silver
Muted
#d9ddd5gainsboro
#272a22darkslategray
Muted foreground
#484c43darkslategray
#b8bcb3silver
Accent
#daded3gainsboro
#2c2f28darkslategray
Accent foreground
#414936darkslategray
#c5c9c0silver
Destructive
#c93808firebrick
#dc3e09orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b5e31darkolivegreen
#4b5e31darkolivegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.16:1AAA
Secondary button6.90:1AA
Muted text6.36:1AA
Accent6.90:1AA
Destructive5.17:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button7.16:1AAA
Secondary button8.10:1AAA
Muted text7.54:1AAA
Accent8.10:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.892 0.011 125.214);
  --muted-foreground: oklch(0.409 0.015 125.549);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.453 0.071 127.493);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.895 0.016 125.298);
  --secondary-foreground: oklch(0.393 0.033 126.247);
  --accent: oklch(0.895 0.016 125.298);
  --accent-foreground: oklch(0.393 0.033 126.247);
  --destructive: oklch(0.556 0.188 35.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.071 127.493);
  --chart-1: oklch(0.453 0.071 127.493);
  --chart-2: oklch(0.895 0.016 125.298);
  --chart-3: oklch(0.895 0.016 125.298);
  --chart-4: oklch(0.916 0.013 125.241);
  --chart-5: oklch(0.459 0.076 127.719);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.014 124.439);
  --foreground: oklch(0.98 0.004 125.099);
  --muted: oklch(0.279 0.014 125.774);
  --muted-foreground: oklch(0.79 0.013 125.266);
  --popover: oklch(0.125 0.014 124.439);
  --popover-foreground: oklch(0.98 0.004 125.099);
  --card: oklch(0.125 0.014 124.439);
  --card-foreground: oklch(0.98 0.004 125.099);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.453 0.071 127.493);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.299 0.013 125.65);
  --secondary-foreground: oklch(0.83 0.014 125.272);
  --accent: oklch(0.299 0.013 125.65);
  --accent-foreground: oklch(0.83 0.014 125.272);
  --destructive: oklch(0.595 0.202 35.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.071 127.493);
  --chart-1: oklch(0.453 0.071 127.493);
  --chart-2: oklch(0.299 0.013 125.65);
  --chart-3: oklch(0.299 0.013 125.65);
  --chart-4: oklch(0.331 0.015 125.672);
  --chart-5: oklch(0.459 0.076 127.719);
}