Heron is a shadcn/ui theme built around a near-black primary color (#020005) with near-black accents (#050005). The light mode uses a neutral background (#faf7fc). Dark mode keeps the near-black primary (#020005) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fcghostwhite | #000000black |
| Foreground | #0c0614black | #f7f5fawhitesmoke |
| Card | #faf7fcghostwhite | #000000black |
| Card foreground | #0c0614black | #f7f5fawhitesmoke |
| Popover | #faf7fcghostwhite | #000000black |
| Popover foreground | #0c0614black | #f7f5fawhitesmoke |
| Primary | #020005black | #020005black |
| Primary foreground | #cb9fffplum | #cb9fffplum |
| Secondary | #000005black | #000005black |
| Secondary foreground | #9fa2fflightsteelblue | #9fa2fflightsteelblue |
| Muted | #f1f1f3whitesmoke | #0c0c0eblack |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #050005black | #050005black |
| Accent foreground | #f739femagenta | #f739femagenta |
| Destructive | #79130bmaroon | #ec4236tomato |
| Destructive foreground | #f9c2belightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020005black | #020005black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 9.88:1 | AAA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 9.88:1 | AAA |
| Secondary button | 9.05:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Heron in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 307.022);
--foreground: oklch(0.14 0.033 305.257);
--muted: oklch(0.96 0.002 284.766);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(0.98 0.007 307.022);
--popover-foreground: oklch(0.14 0.033 305.257);
--card: oklch(0.98 0.007 307.022);
--card-foreground: oklch(0.14 0.033 305.257);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.069 0.034 310.353);
--primary-foreground: oklch(0.778 0.14 304.818);
--secondary: oklch(0.057 0.033 264.954);
--secondary-foreground: oklch(0.746 0.133 281.164);
--accent: oklch(0.081 0.037 327.522);
--accent-foreground: oklch(0.708 0.295 326.623);
--destructive: oklch(0.374 0.138 29.467);
--destructive-foreground: oklch(0.861 0.064 23.193);
--ring: oklch(0.069 0.034 310.353);
--chart-1: oklch(0.069 0.034 310.353);
--chart-2: oklch(0.057 0.033 264.954);
--chart-3: oklch(0.081 0.037 327.522);
--chart-4: oklch(0.094 0.056 264.915);
--chart-5: oklch(0.068 0.036 310.523);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.972 0.008 307.014);
--muted: oklch(0.155 0.004 284.385);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.972 0.008 307.014);
--card: oklch(0 0 0);
--card-foreground: oklch(0.972 0.008 307.014);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.069 0.034 310.353);
--primary-foreground: oklch(0.778 0.14 304.818);
--secondary: oklch(0.057 0.033 264.954);
--secondary-foreground: oklch(0.746 0.133 281.164);
--accent: oklch(0.081 0.037 327.522);
--accent-foreground: oklch(0.708 0.295 326.623);
--destructive: oklch(0.629 0.208 28.63);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.069 0.034 310.353);
--chart-1: oklch(0.069 0.034 310.353);
--chart-2: oklch(0.057 0.033 264.954);
--chart-3: oklch(0.081 0.037 327.522);
--chart-4: oklch(0.094 0.056 264.915);
--chart-5: oklch(0.068 0.036 310.523);
}