Hyacinth is a shadcn/ui theme built around a neutral gray primary color (#403a3c) with neutral gray accents (#3a3c40). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#403a3c) on a red-tinted background (#0f0508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0508black |
| Foreground | #140609black | #ffffffwhite |
| Card | #fcfcfcsnow | #13070ablack |
| Card foreground | #100507black | #ffffffwhite |
| Popover | #fcfcfcsnow | #13070ablack |
| Popover foreground | #100507black | #ffffffwhite |
| Primary | #403a3cdarkslategray | #403a3cdarkslategray |
| Primary foreground | #d8d4d5lightgrey | #d8d4d5lightgrey |
| Secondary | #3c403adarkslategray | #3c403adarkslategray |
| Secondary foreground | #d5d8d4lightgrey | #d5d8d4lightgrey |
| Muted | #f0f6eewhitesmoke | #0b1109black |
| Muted foreground | #5e7557dimgray | #91a88adarkseagreen |
| Accent | #3a3c40darkslategray | #3a3c40darkslategray |
| Accent foreground | #d4d5d8lightgrey | #d4d5d8lightgrey |
| Destructive | #6c2304maroon | #f75e1dchocolate |
| Destructive foreground | #fcc0a6lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #403a3cdarkslategray | #403a3cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 4.60:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 20.05:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.55:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.56:1 | AA |
Paste this into your globals.css to use Hyacinth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.026 3.923);
--muted: oklch(0.967 0.012 138.343);
--muted-foreground: oklch(0.536 0.054 138.463);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.134 0.023 2.335);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.134 0.023 2.335);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.356 0.009 1.645);
--primary-foreground: oklch(0.874 0.005 1.109);
--secondary: oklch(0.366 0.012 138.365);
--secondary-foreground: oklch(0.879 0.006 138.338);
--accent: oklch(0.355 0.008 272.402);
--accent-foreground: oklch(0.874 0.004 272.605);
--destructive: oklch(0.366 0.111 39.866);
--destructive-foreground: oklch(0.856 0.077 44.274);
--ring: oklch(0.356 0.009 1.645);
--chart-1: oklch(0.356 0.009 1.645);
--chart-2: oklch(0.366 0.012 138.365);
--chart-3: oklch(0.355 0.008 272.402);
--chart-4: oklch(0.396 0.013 138.366);
--chart-5: oklch(0.353 0.014 2.066);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.02 2.176);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.019 138.361);
--muted-foreground: oklch(0.706 0.051 138.415);
--popover: oklch(0.148 0.023 3.751);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.148 0.023 3.751);
--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.356 0.009 1.645);
--primary-foreground: oklch(0.874 0.005 1.109);
--secondary: oklch(0.366 0.012 138.365);
--secondary-foreground: oklch(0.879 0.006 138.338);
--accent: oklch(0.355 0.008 272.402);
--accent-foreground: oklch(0.874 0.004 272.605);
--destructive: oklch(0.674 0.2 39.915);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.356 0.009 1.645);
--chart-1: oklch(0.356 0.009 1.645);
--chart-2: oklch(0.366 0.012 138.365);
--chart-3: oklch(0.355 0.008 272.402);
--chart-4: oklch(0.396 0.013 138.366);
--chart-5: oklch(0.353 0.014 2.066);
}