Honorable for shadcn/ui

Honorable is a shadcn/ui theme built around a vivid deep yellow primary color (#343304) with vivid deep indigo accents (#040534). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#343304) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#ffffffwhite
#040401black
Foreground
#090802black
#fbfbf9snow
Card
#ffffffwhite
#040401black
Card foreground
#090802black
#fbfbf9snow
Popover
#ffffffwhite
#040401black
Popover foreground
#090802black
#fbfbf9snow
Primary
#343304darkgreen
#343304darkgreen
Primary foreground
#ece918gold
#ece918gold
Secondary
#040534black
#040534black
Secondary foreground
#d5d5fclavender
#d5d5fclavender
Muted
#eaebf0lavender
#0f0f15black
Muted foreground
#363749darkslategray
#b6b6c9silver
Accent
#040534black
#040534black
Accent foreground
#d5d5fclavender
#d5d5fclavender
Destructive
#ce4e03chocolate
#e25503orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#343304darkgreen
#343304darkgreen

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button10.00:1AAA
Secondary button13.70:1AAA
Muted text9.78:1AAA
Accent13.70:1AAA
Destructive4.46:1AA Large
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button10.00:1AAA
Secondary button13.70:1AAA
Muted text9.55:1AAA
Accent13.70:1AAA
Destructive3.79: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.133 0.021 108.33);
  --muted: oklch(0.94 0.007 285.482);
  --muted-foreground: oklch(0.343 0.033 283.771);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.021 108.33);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.133 0.021 108.33);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.312 0.064 108.576);
  --primary-foreground: oklch(0.907 0.193 108.564);
  --secondary: oklch(0.165 0.089 270.122);
  --secondary-foreground: oklch(0.885 0.053 284.504);
  --accent: oklch(0.165 0.089 270.122);
  --accent-foreground: oklch(0.885 0.053 284.504);
  --destructive: oklch(0.588 0.176 41.99);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.312 0.064 108.576);
  --chart-1: oklch(0.312 0.064 108.576);
  --chart-2: oklch(0.165 0.089 270.122);
  --chart-3: oklch(0.165 0.089 270.122);
  --chart-4: oklch(0.189 0.107 269.234);
  --chart-5: oklch(0.315 0.065 108.604);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.013 107.822);
  --foreground: oklch(0.987 0.002 105.657);
  --muted: oklch(0.172 0.011 284.429);
  --muted-foreground: oklch(0.782 0.026 284.995);
  --popover: oklch(0.103 0.013 107.822);
  --popover-foreground: oklch(0.987 0.002 105.657);
  --card: oklch(0.103 0.013 107.822);
  --card-foreground: oklch(0.987 0.002 105.657);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.312 0.064 108.576);
  --primary-foreground: oklch(0.907 0.193 108.564);
  --secondary: oklch(0.165 0.089 270.122);
  --secondary-foreground: oklch(0.885 0.053 284.504);
  --accent: oklch(0.165 0.089 270.122);
  --accent-foreground: oklch(0.885 0.053 284.504);
  --destructive: oklch(0.63 0.19 41.757);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.312 0.064 108.576);
  --chart-1: oklch(0.312 0.064 108.576);
  --chart-2: oklch(0.165 0.089 270.122);
  --chart-3: oklch(0.165 0.089 270.122);
  --chart-4: oklch(0.189 0.107 269.234);
  --chart-5: oklch(0.315 0.065 108.604);
}