Heroine is a shadcn/ui theme built around a vivid cyan primary color (#147a99) with neutral gray accents (#d5d7d8). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the vivid cyan primary (#147a99) on a cyan-tinted background (#040d10).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #040d10black |
| Foreground | #000000black | #f5f9faghostwhite |
| Card | #f3fafbaliceblue | #051114black |
| Card foreground | #000000black | #f8fbfcghostwhite |
| Popover | #f7fbfdghostwhite | #040d10black |
| Popover foreground | #000000black | #f5f9faghostwhite |
| Primary | #147a99darkcyan | #147a99darkcyan |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d5d7d8lightgrey | #171717black |
| Secondary foreground | #3b3f40darkslategray | #afb0b1darkgray |
| Muted | #dadcddgainsboro | #222525darkslategray |
| Muted foreground | #5b6c71dimgray | #8e9fa4darkgray |
| Accent | #d5d7d8lightgrey | #171717black |
| Accent foreground | #3b3f40darkslategray | #afb0b1darkgray |
| Destructive | #6d0c09maroon | #ee362fcrimson |
| Destructive foreground | #f8b1aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #147a99darkcyan | #147a99darkcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 4.89:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 3.98:1 | AA Large |
| Accent | 7.37:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.43:1 | AAA |
| Primary button | 4.89:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 8.25:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Heroine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 217.77);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.003 217.763);
--muted-foreground: oklch(0.519 0.022 218.102);
--popover: oklch(0.986 0.005 217.77);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.007 217.785);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.541 0.098 224.914);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.878 0.003 217.761);
--secondary-foreground: oklch(0.363 0.005 217.837);
--accent: oklch(0.878 0.003 217.761);
--accent-foreground: oklch(0.363 0.005 217.837);
--destructive: oklch(0.343 0.129 28.637);
--destructive-foreground: oklch(0.828 0.084 21.246);
--ring: oklch(0.541 0.098 224.914);
--chart-1: oklch(0.541 0.098 224.914);
--chart-2: oklch(0.878 0.003 217.761);
--chart-3: oklch(0.878 0.003 217.761);
--chart-4: oklch(0.901 0.002 217.757);
--chart-5: oklch(0.546 0.1 225.365);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.017 216.588);
--foreground: oklch(0.979 0.005 217.77);
--muted: oklch(0.261 0.004 217.848);
--muted-foreground: oklch(0.691 0.021 217.967);
--popover: oklch(0.152 0.017 216.588);
--popover-foreground: oklch(0.979 0.005 217.77);
--card: oklch(0.167 0.019 218.161);
--card-foreground: oklch(0.986 0.003 217.76);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.541 0.098 224.914);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.205 0.001 217.759);
--secondary-foreground: oklch(0.758 0.001 217.754);
--accent: oklch(0.205 0.001 217.759);
--accent-foreground: oklch(0.758 0.001 217.754);
--destructive: oklch(0.621 0.22 27.876);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.541 0.098 224.914);
--chart-1: oklch(0.541 0.098 224.914);
--chart-2: oklch(0.205 0.001 217.759);
--chart-3: oklch(0.205 0.001 217.759);
--chart-4: oklch(0.238 0.001 217.761);
--chart-5: oklch(0.546 0.1 225.365);
}