Honest is a shadcn/ui theme built around a near-black primary color (#04070c) with near-black accents (#04040c). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the near-black primary (#04070c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #030a11black | #f5f7fawhitesmoke |
| Card | #f8fafcghostwhite | #030303black |
| Card foreground | #02070dblack | #f8fafbghostwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #030a11black | #f5f7fawhitesmoke |
| Primary | #04070cblack | #04070cblack |
| Primary foreground | #6e9dd4cornflowerblue | #6e9dd4cornflowerblue |
| Secondary | #040c0cblack | #040c0cblack |
| Secondary foreground | #32a5a9lightseagreen | #32a5a9lightseagreen |
| Muted | #e0f0f0lavender | #0f1e1fblack |
| Muted foreground | #58696adimgray | #95a6a7darkgray |
| Accent | #04040cblack | #04040cblack |
| Accent foreground | #bebceblightsteelblue | #bebceblightsteelblue |
| Destructive | #c71f05firebrick | #f92b0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #04070cblack | #04070cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.68:1 | AA |
| Muted text | 4.89:1 | AA |
| Accent | 11.29:1 | AAA |
| Destructive | 5.79:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.68:1 | AA |
| Muted text | 6.73:1 | AA |
| Accent | 11.29:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Honest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 251.467);
--foreground: oklch(0.139 0.022 245.448);
--muted: oklch(0.942 0.016 199.372);
--muted-foreground: oklch(0.507 0.02 199.092);
--popover: oklch(0.992 0.002 251.467);
--popover-foreground: oklch(0.139 0.022 245.448);
--card: oklch(0.983 0.004 251.484);
--card-foreground: oklch(0.126 0.019 242.138);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.127 0.014 244.137);
--primary-foreground: oklch(0.685 0.096 252.471);
--secondary: oklch(0.142 0.015 197.909);
--secondary-foreground: oklch(0.661 0.099 198.417);
--accent: oklch(0.11 0.023 284.033);
--accent-foreground: oklch(0.813 0.066 286.37);
--destructive: oklch(0.532 0.203 31.176);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.127 0.014 244.137);
--chart-1: oklch(0.127 0.014 244.137);
--chart-2: oklch(0.142 0.015 197.909);
--chart-3: oklch(0.11 0.023 284.033);
--chart-4: oklch(0.191 0.022 198.367);
--chart-5: oklch(0.127 0.015 243.785);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.004 251.483);
--muted: oklch(0.223 0.021 198.553);
--muted-foreground: oklch(0.713 0.019 199.256);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.004 251.483);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.003 251.472);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.127 0.014 244.137);
--primary-foreground: oklch(0.685 0.096 252.471);
--secondary: oklch(0.142 0.015 197.909);
--secondary-foreground: oklch(0.661 0.099 198.417);
--accent: oklch(0.11 0.023 284.033);
--accent-foreground: oklch(0.813 0.066 286.37);
--destructive: oklch(0.631 0.239 31.174);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.127 0.014 244.137);
--chart-1: oklch(0.127 0.014 244.137);
--chart-2: oklch(0.142 0.015 197.909);
--chart-3: oklch(0.11 0.023 284.033);
--chart-4: oklch(0.191 0.022 198.367);
--chart-5: oklch(0.127 0.015 243.785);
}