Liquid is a shadcn/ui theme built around a yellow primary color (#eded87) with indigo accents (#8787ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#eded87) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070703black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #ffffffwhite | #070703black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #ffffffwhite | #070703black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #eded87khaki | #eded87khaki |
| Primary foreground | #3a3a09darkolivegreen | #3a3a09darkolivegreen |
| Secondary | #8787edmediumpurple | #8787edmediumpurple |
| Secondary foreground | #09093amidnightblue | #09093amidnightblue |
| Muted | #d3d3dflightgrey | #20202cdarkslategray |
| Muted foreground | #56566cdimgray | #9393a9darkgray |
| Accent | #8787edmediumpurple | #8787edmediumpurple |
| Accent foreground | #09093amidnightblue | #09093amidnightblue |
| Destructive | #691307maroon | #ee2a11orangered |
| Destructive foreground | #f9b2a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eded87khaki | #eded87khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 6.05:1 | AA |
| Muted text | 4.79:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 9.54:1 | AAA |
| Secondary button | 6.05:1 | AA |
| Muted text | 5.34:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 4.20:1 | AA Large |
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.105 0.016 108.805);
--muted: oklch(0.869 0.017 286.046);
--muted-foreground: oklch(0.462 0.034 284.975);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.105 0.016 108.805);
--card: oklch(1 0 180);
--card-foreground: oklch(0.105 0.016 108.805);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.925 0.125 108.611);
--primary-foreground: oklch(0.337 0.067 109.496);
--secondary: oklch(0.669 0.149 281.617);
--secondary-foreground: oklch(0.184 0.091 272.987);
--accent: oklch(0.669 0.149 281.617);
--accent-foreground: oklch(0.184 0.091 272.987);
--destructive: oklch(0.34 0.121 31.119);
--destructive-foreground: oklch(0.829 0.084 27.444);
--ring: oklch(0.925 0.125 108.611);
--chart-1: oklch(0.925 0.125 108.611);
--chart-2: oklch(0.669 0.149 281.617);
--chart-3: oklch(0.669 0.149 281.617);
--chart-4: oklch(0.706 0.131 282.518);
--chart-5: oklch(0.931 0.129 108.665);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.011 107.896);
--foreground: oklch(0.994 0.001 106.425);
--muted: oklch(0.25 0.023 284.608);
--muted-foreground: oklch(0.672 0.031 285.529);
--popover: oklch(0.125 0.011 107.896);
--popover-foreground: oklch(0.994 0.001 106.425);
--card: oklch(0.125 0.011 107.896);
--card-foreground: oklch(0.994 0.001 106.425);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.925 0.125 108.611);
--primary-foreground: oklch(0.337 0.067 109.496);
--secondary: oklch(0.669 0.149 281.617);
--secondary-foreground: oklch(0.184 0.091 272.987);
--accent: oklch(0.669 0.149 281.617);
--accent-foreground: oklch(0.184 0.091 272.987);
--destructive: oklch(0.612 0.231 30.902);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.925 0.125 108.611);
--chart-1: oklch(0.925 0.125 108.611);
--chart-2: oklch(0.669 0.149 281.617);
--chart-3: oklch(0.669 0.149 281.617);
--chart-4: oklch(0.706 0.131 282.518);
--chart-5: oklch(0.931 0.129 108.665);
}