Hydraulics is a shadcn/ui theme built around a near-white primary color (#fbf6fe) with muted light violet accents (#cdc5d3). The light mode uses a neutral background (#faf8fb). Dark mode keeps the near-white primary (#fbf6fe) on a violet-tinted background (#0b050f).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fbghostwhite | #0b050fblack |
| Foreground | #08040cblack | #faf9fasnow |
| Card | #f8f5fawhitesmoke | #0e0713black |
| Card foreground | #060208black | #fdfcfdwhite |
| Popover | #faf8fbghostwhite | #0b050fblack |
| Popover foreground | #08040cblack | #faf9fasnow |
| Primary | #fbf6feghostwhite | #fbf6feghostwhite |
| Primary foreground | #7112afrebeccapurple | #7112afrebeccapurple |
| Secondary | #cdc5d3thistle | #32273adarkslategray |
| Secondary foreground | #342c3adarkslategray | #ccbfd4thistle |
| Muted | #e7ddeelavender | #1b1122black |
| Muted foreground | #4b464edarkslategray | #b6b1b9silver |
| Accent | #cdc5d3thistle | #32273adarkslategray |
| Accent foreground | #342c3adarkslategray | #ccbfd4thistle |
| Destructive | #650b01maroon | #fe240borangered |
| Destructive foreground | #fea49alightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbf6feghostwhite | #fbf6feghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.68:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Hydraulics in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 312.323);
--foreground: oklch(0.12 0.024 313.846);
--muted: oklch(0.91 0.027 312.141);
--muted-foreground: oklch(0.402 0.013 312.109);
--popover: oklch(0.982 0.005 312.323);
--popover-foreground: oklch(0.12 0.024 313.846);
--card: oklch(0.974 0.007 312.305);
--card-foreground: oklch(0.104 0.021 314.053);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.979 0.012 312.266);
--primary-foreground: oklch(0.442 0.217 305.141);
--secondary: oklch(0.834 0.022 312.165);
--secondary-foreground: oklch(0.308 0.028 311.689);
--accent: oklch(0.834 0.022 312.165);
--accent-foreground: oklch(0.308 0.028 311.689);
--destructive: oklch(0.326 0.124 31.511);
--destructive-foreground: oklch(0.805 0.11 26.655);
--ring: oklch(0.979 0.012 312.266);
--chart-1: oklch(0.979 0.012 312.266);
--chart-2: oklch(0.834 0.022 312.165);
--chart-3: oklch(0.834 0.022 312.165);
--chart-4: oklch(0.86 0.018 312.2);
--chart-5: oklch(0.978 0.013 312.263);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.025 312.355);
--foreground: oklch(0.984 0.002 312.346);
--muted: oklch(0.199 0.038 310.879);
--muted-foreground: oklch(0.767 0.011 312.247);
--popover: oklch(0.134 0.025 312.355);
--popover-foreground: oklch(0.984 0.002 312.346);
--card: oklch(0.145 0.028 311.375);
--card-foreground: oklch(0.992 0.001 312.352);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.979 0.012 312.266);
--primary-foreground: oklch(0.442 0.217 305.141);
--secondary: oklch(0.294 0.038 311.39);
--secondary-foreground: oklch(0.821 0.033 312.063);
--accent: oklch(0.294 0.038 311.39);
--accent-foreground: oklch(0.821 0.033 312.063);
--destructive: oklch(0.636 0.247 30.374);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.979 0.012 312.266);
--chart-1: oklch(0.979 0.012 312.266);
--chart-2: oklch(0.294 0.038 311.39);
--chart-3: oklch(0.294 0.038 311.39);
--chart-4: oklch(0.321 0.043 311.356);
--chart-5: oklch(0.978 0.013 312.263);
}