Liquid is a shadcn/ui theme built around a neutral gray primary color (#605f57) with neutral gray accents (#5f5760). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the neutral gray primary (#605f57) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #070703black |
| Foreground | #040301black | #fdfdfcwhite |
| Card | #fcfbf8snow | #0b0a04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfbf8snow | #0b0a04black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #605f57dimgray | #605f57dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #57605fdimgray | #57605fdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9eceblavender | #131615black |
| Muted foreground | #546965dimgray | #96aba7darkgray |
| Accent | #5f5760dimgray | #5f5760dimgray |
| Accent foreground | #f5f4f5whitesmoke | #f5f4f5whitesmoke |
| Destructive | #8a1205darkred | #f62a13orangered |
| Destructive foreground | #fdcac4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #605f57dimgray | #605f57dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 4.92:1 | AA |
| Accent | 6.33:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 6.44:1 | AA |
| Muted text | 7.54:1 | AAA |
| Accent | 6.33:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Liquid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 95.059);
--foreground: oklch(0.101 0.013 99.499);
--muted: oklch(0.941 0.003 183.106);
--muted-foreground: oklch(0.502 0.026 181.712);
--popover: oklch(0.988 0.004 95.085);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.004 95.085);
--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.483 0.012 95.304);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.482 0.012 182.505);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.468 0.017 319.454);
--accent-foreground: oklch(0.969 0.002 319.445);
--destructive: oklch(0.406 0.155 30.637);
--destructive-foreground: oklch(0.881 0.059 25.678);
--ring: oklch(0.483 0.012 95.304);
--chart-1: oklch(0.483 0.012 95.304);
--chart-2: oklch(0.482 0.012 182.505);
--chart-3: oklch(0.468 0.017 319.454);
--chart-4: oklch(0.51 0.013 182.498);
--chart-5: oklch(0.489 0.019 95.438);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 98.724);
--foreground: oklch(0.993 0.001 95.048);
--muted: oklch(0.196 0.004 182.626);
--muted-foreground: oklch(0.724 0.024 182.259);
--popover: oklch(0.143 0.015 98.463);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.015 98.463);
--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.483 0.012 95.304);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.482 0.012 182.505);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.468 0.017 319.454);
--accent-foreground: oklch(0.969 0.002 319.445);
--destructive: oklch(0.626 0.238 30.487);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.483 0.012 95.304);
--chart-1: oklch(0.483 0.012 95.304);
--chart-2: oklch(0.482 0.012 182.505);
--chart-3: oklch(0.468 0.017 319.454);
--chart-4: oklch(0.51 0.013 182.498);
--chart-5: oklch(0.489 0.019 95.438);
}