Honest is a shadcn/ui theme built around a near-black primary color (#0a0006) with neutral gray accents (#dad8d9). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the near-black primary (#0a0006) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #000000black |
| Foreground | #080206black | #fdfcfdwhite |
| Card | #fbf8fasnow | #030303black |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #fdfcfdwhite | #000000black |
| Popover foreground | #080206black | #fdfcfdwhite |
| Primary | #0a0006black | #0a0006black |
| Primary foreground | #fa42b7hotpink | #fa42b7hotpink |
| Secondary | #dad8d9gainsboro | #1a1a1ablack |
| Secondary foreground | #423e40darkslategray | #b3b3b3darkgray |
| Muted | #f4f0f3whitesmoke | #0f0b0bblack |
| Muted foreground | #56434fdarkslategray | #bca9a9darkgray |
| Accent | #dad8d9gainsboro | #1a1a1ablack |
| Accent foreground | #423e40darkslategray | #b3b3b3darkgray |
| Destructive | #88140cdarkred | #ef4f43tomato |
| Destructive foreground | #fbcfcbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a0006black | #0a0006black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 8.06:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.58: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 338.764);
--foreground: oklch(0.107 0.022 338.995);
--muted: oklch(0.96 0.005 338.835);
--muted-foreground: oklch(0.408 0.031 340.278);
--popover: oklch(0.992 0.002 338.764);
--popover-foreground: oklch(0.107 0.022 338.995);
--card: oklch(0.983 0.004 338.809);
--card-foreground: oklch(0.085 0.018 338.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.1 0.04 339.212);
--primary-foreground: oklch(0.684 0.243 346.662);
--secondary: oklch(0.883 0.003 338.797);
--secondary-foreground: oklch(0.368 0.007 339.1);
--accent: oklch(0.883 0.003 338.797);
--accent-foreground: oklch(0.368 0.007 339.1);
--destructive: oklch(0.404 0.151 29.56);
--destructive-foreground: oklch(0.89 0.05 22.927);
--ring: oklch(0.1 0.04 339.212);
--chart-1: oklch(0.1 0.04 339.212);
--chart-2: oklch(0.883 0.003 338.797);
--chart-3: oklch(0.883 0.003 338.797);
--chart-4: oklch(0.907 0.003 338.779);
--chart-5: oklch(0.099 0.042 339.23);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 338.765);
--muted: oklch(0.154 0.007 17.9);
--muted-foreground: oklch(0.752 0.021 17.636);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 338.765);
--card: oklch(0.092 0 180);
--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.1 0.04 339.212);
--primary-foreground: oklch(0.684 0.243 346.662);
--secondary: oklch(0.216 0 180);
--secondary-foreground: oklch(0.765 0 172.405);
--accent: oklch(0.216 0 180);
--accent-foreground: oklch(0.765 0 172.405);
--destructive: oklch(0.647 0.198 28.009);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.1 0.04 339.212);
--chart-1: oklch(0.1 0.04 339.212);
--chart-2: oklch(0.216 0 180);
--chart-3: oklch(0.216 0 180);
--chart-4: oklch(0.248 0 173.29);
--chart-5: oklch(0.099 0.042 339.23);
}