Liquid is a shadcn/ui theme built around a vivid deep green primary color (#0b5606) with vivid deep purple accents (#510656). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#0b5606) on a green-tinted background (#060f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060f06black |
| Foreground | #020901black | #f6f9f5whitesmoke |
| Card | #fcfcfcsnow | #081307black |
| Card foreground | #010501black | #f9fbf9mintcream |
| Popover | #fcfcfcsnow | #081307black |
| Popover foreground | #010501black | #f9fbf9mintcream |
| Primary | #0b5606darkgreen | #0b5606darkgreen |
| Primary foreground | #9cf896palegreen | #9cf896palegreen |
| Secondary | #510656indigo | #510656indigo |
| Secondary foreground | #f296f8violet | #f296f8violet |
| Muted | #e7dee8gainsboro | #201721black |
| Muted foreground | #4e454fdarkslategray | #bab0basilver |
| Accent | #510656indigo | #510656indigo |
| Accent foreground | #f296f8violet | #f296f8violet |
| Destructive | #a52c03firebrick | #fb602dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b5606darkgreen | #0b5606darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 6.95:1 | AA |
| Muted text | 7.00:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 7.10:1 | AAA |
| Text on background | 18.35:1 | AAA |
| Text on card | 18.30:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 6.95:1 | AA |
| Muted text | 8.28:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Liquid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.032 141.234);
--muted: oklch(0.911 0.016 323.726);
--muted-foreground: oklch(0.403 0.021 323.904);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.099 0.026 141.234);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.026 141.234);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.396 0.129 142.089);
--primary-foreground: oklch(0.899 0.159 142.67);
--secondary: oklch(0.313 0.139 325.009);
--secondary-foreground: oklch(0.799 0.166 324.595);
--accent: oklch(0.313 0.139 325.009);
--accent-foreground: oklch(0.799 0.166 324.595);
--destructive: oklch(0.479 0.163 35.651);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.396 0.129 142.089);
--chart-1: oklch(0.396 0.129 142.089);
--chart-2: oklch(0.313 0.139 325.009);
--chart-3: oklch(0.313 0.139 325.009);
--chart-4: oklch(0.347 0.156 324.97);
--chart-5: oklch(0.4 0.131 142.061);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.025 142.328);
--foreground: oklch(0.979 0.007 143.599);
--muted: oklch(0.221 0.023 324.143);
--muted-foreground: oklch(0.768 0.018 323.757);
--popover: oklch(0.17 0.029 142.432);
--popover-foreground: oklch(0.986 0.005 143.611);
--card: oklch(0.17 0.029 142.432);
--card-foreground: oklch(0.986 0.005 143.611);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.396 0.129 142.089);
--primary-foreground: oklch(0.899 0.159 142.67);
--secondary: oklch(0.313 0.139 325.009);
--secondary-foreground: oklch(0.799 0.166 324.595);
--accent: oklch(0.313 0.139 325.009);
--accent-foreground: oklch(0.799 0.166 324.595);
--destructive: oklch(0.684 0.199 37.76);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.396 0.129 142.089);
--chart-1: oklch(0.396 0.129 142.089);
--chart-2: oklch(0.313 0.139 325.009);
--chart-3: oklch(0.313 0.139 325.009);
--chart-4: oklch(0.347 0.156 324.97);
--chart-5: oklch(0.4 0.131 142.061);
}