Honorable for shadcn/ui

Honorable is a shadcn/ui theme built around an indigo primary color (#3a239f) with green accents (#889f23). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the indigo primary (#3a239f) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040307black
Foreground
#060311black
#ffffffwhite
Card
#f8f8fcghostwhite
#06050bblack
Card foreground
#04030dblack
#ffffffwhite
Popover
#fcfbfewhite
#040307black
Popover foreground
#060311black
#ffffffwhite
Primary
#3a239fdarkslateblue
#3a239fdarkslateblue
Primary foreground
#f8f7fdghostwhite
#f8f7fdghostwhite
Secondary
#889f23olivedrab
#889f23olivedrab
Secondary foreground
#000000black
#000000black
Muted
#e8eadcbeige
#212315black
Muted foreground
#595e45darkolivegreen
#b5baa1darkgray
Accent
#889f23olivedrab
#889f23olivedrab
Accent foreground
#000000black
#000000black
Destructive
#75290asaddlebrown
#ec5c22chocolate
Destructive foreground
#f9cbb9peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3a239fdarkslateblue
#3a239fdarkslateblue

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.33:1AAA
Primary button10.28:1AAA
Secondary button7.02:1AAA
Muted text5.54:1AA
Accent7.02:1AAA
Destructive6.87:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.34:1AAA
Primary button10.28:1AAA
Secondary button7.02:1AAA
Muted text7.96:1AAA
Accent7.02:1AAA
Destructive6.09:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 294.766);
  --foreground: oklch(0.118 0.035 291.831);
  --muted: oklch(0.932 0.02 115.212);
  --muted-foreground: oklch(0.47 0.038 116.33);
  --popover: oklch(0.99 0.003 294.766);
  --popover-foreground: oklch(0.118 0.035 291.831);
  --card: oklch(0.98 0.006 294.708);
  --card-foreground: oklch(0.107 0.03 292.871);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.378 0.185 281.218);
  --primary-foreground: oklch(0.978 0.009 294.658);
  --secondary: oklch(0.662 0.145 119.899);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.662 0.145 119.899);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.39 0.115 39.271);
  --destructive-foreground: oklch(0.877 0.058 42.674);
  --ring: oklch(0.378 0.185 281.218);
  --chart-1: oklch(0.378 0.185 281.218);
  --chart-2: oklch(0.662 0.145 119.899);
  --chart-3: oklch(0.662 0.145 119.899);
  --chart-4: oklch(0.7 0.154 119.935);
  --chart-5: oklch(0.376 0.192 280.258);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.014 294.058);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.026 116.79);
  --muted-foreground: oklch(0.777 0.034 115.635);
  --popover: oklch(0.104 0.014 294.058);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.016 294.043);
  --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.378 0.185 281.218);
  --primary-foreground: oklch(0.978 0.009 294.658);
  --secondary: oklch(0.662 0.145 119.899);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.662 0.145 119.899);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.654 0.19 39.458);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.378 0.185 281.218);
  --chart-1: oklch(0.378 0.185 281.218);
  --chart-2: oklch(0.662 0.145 119.899);
  --chart-3: oklch(0.662 0.145 119.899);
  --chart-4: oklch(0.7 0.154 119.935);
  --chart-5: oklch(0.376 0.192 280.258);
}