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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 7.02:1 | AAA |
| Destructive | 6.09:1 | AA |
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);
}