Hydrolysis is a shadcn/ui theme built around a neutral gray primary color (#6d6675) with neutral gray accents (#66756d). The light mode uses a neutral background (#faf7fd). Dark mode keeps the neutral gray primary (#6d6675) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #000000black |
| Foreground | #020104black | #faf8fbghostwhite |
| Card | #faf7fdghostwhite | #000000black |
| Card foreground | #020104black | #faf8fbghostwhite |
| Popover | #faf7fdghostwhite | #000000black |
| Popover foreground | #020104black | #faf8fbghostwhite |
| Primary | #6d6675dimgray | #6d6675dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #756d66dimgray | #756d66dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edeae8linen | #171412black |
| Muted foreground | #5a5149darkolivegreen | #b6aca5darkgray |
| Accent | #66756ddimgray | #66756ddimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cd1e0efirebrick | #db200ffirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d6675dimgray | #6d6675dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 5.09:1 | AA |
| Muted text | 6.48:1 | AA |
| Accent | 4.83:1 | AA |
| Destructive | 5.53:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 5.09:1 | AA |
| Muted text | 8.23:1 | AAA |
| Accent | 4.83:1 | AA |
| Destructive | 4.95:1 | AA |
Paste this into your globals.css to use Hydrolysis in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 305.633);
--foreground: oklch(0.077 0.022 307.445);
--muted: oklch(0.939 0.004 60.223);
--muted-foreground: oklch(0.44 0.017 59.754);
--popover: oklch(0.98 0.008 305.633);
--popover-foreground: oklch(0.077 0.022 307.445);
--card: oklch(0.98 0.008 305.633);
--card-foreground: oklch(0.077 0.022 307.445);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.522 0.025 305.1);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.539 0.015 59.901);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.023 160.771);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.543 0.208 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.025 305.1);
--chart-1: oklch(0.522 0.025 305.1);
--chart-2: oklch(0.539 0.015 59.901);
--chart-3: oklch(0.548 0.023 160.771);
--chart-4: oklch(0.566 0.016 59.898);
--chart-5: oklch(0.515 0.036 304.812);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 305.684);
--muted: oklch(0.194 0.006 59.844);
--muted-foreground: oklch(0.751 0.015 60.016);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.004 305.684);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.004 305.684);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.522 0.025 305.1);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.539 0.015 59.901);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.023 160.771);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.571 0.22 30.092);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.025 305.1);
--chart-1: oklch(0.522 0.025 305.1);
--chart-2: oklch(0.539 0.015 59.901);
--chart-3: oklch(0.548 0.023 160.771);
--chart-4: oklch(0.566 0.016 59.898);
--chart-5: oklch(0.515 0.036 304.812);
}