Hydroxyl is a shadcn/ui theme built around a red primary color (#a04d46) with orange accents (#a07a46). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#a04d46) on a neutral background (#080302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080302black |
| Foreground | #040101black | #fdfcfbsnow |
| Card | #ffffffwhite | #080302black |
| Card foreground | #040101black | #fdfcfbsnow |
| Popover | #ffffffwhite | #080302black |
| Popover foreground | #040101black | #fdfcfbsnow |
| Primary | #a04d46sienna | #a04d46sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a0466bindianred | #a0466bindianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1eeefwhitesmoke | #110e0fblack |
| Muted foreground | #4b484adarkslategray | #b7b4b5silver |
| Accent | #a07a46peru | #a07a46peru |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c63410firebrick | #e73d13orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a04d46sienna | #a04d46sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 5.87:1 | AA |
| Muted text | 7.84:1 | AAA |
| Accent | 3.91:1 | AA Large |
| Destructive | 5.36:1 | AA |
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 5.87:1 | AA |
| Muted text | 9.35:1 | AAA |
| Accent | 3.91:1 | AA Large |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Hydroxyl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.085 0.012 28.118);
--muted: oklch(0.952 0.004 349.79);
--muted-foreground: oklch(0.407 0.004 349.973);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.085 0.012 28.118);
--card: oklch(1 0 180);
--card-foreground: oklch(0.085 0.012 28.118);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.522 0.111 26.842);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.521 0.126 356.214);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.084 74.386);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.547 0.188 34.019);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.111 26.842);
--chart-1: oklch(0.522 0.111 26.842);
--chart-2: oklch(0.521 0.126 356.214);
--chart-3: oklch(0.605 0.084 74.386);
--chart-4: oklch(0.546 0.132 356.262);
--chart-5: oklch(0.522 0.119 27.171);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.016 28.368);
--foreground: oklch(0.991 0.002 23.601);
--muted: oklch(0.167 0.006 350.707);
--muted-foreground: oklch(0.771 0.004 349.807);
--popover: oklch(0.107 0.016 28.368);
--popover-foreground: oklch(0.991 0.002 23.601);
--card: oklch(0.107 0.016 28.368);
--card-foreground: oklch(0.991 0.002 23.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.522 0.111 26.842);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.521 0.126 356.214);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.084 74.386);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.613 0.212 33.905);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.111 26.842);
--chart-1: oklch(0.522 0.111 26.842);
--chart-2: oklch(0.521 0.126 356.214);
--chart-3: oklch(0.605 0.084 74.386);
--chart-4: oklch(0.546 0.132 356.262);
--chart-5: oklch(0.522 0.119 27.171);
}