Liquidity is a shadcn/ui theme built around a violet primary color (#673fde) with green accents (#b7de3f). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#673fde) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040208black | #f9f8fbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020104black | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #020104black | #fcfcfdwhite |
| Primary | #673fdeslateblue | #673fdeslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b7de3fyellowgreen | #b7de3fyellowgreen |
| Secondary foreground | #37460cdarkolivegreen | #37460cdarkolivegreen |
| Muted | #f1f2eewhitesmoke | #10110dblack |
| Muted foreground | #5a5a58dimgray | #a6a7a5darkgray |
| Accent | #b7de3fyellowgreen | #b7de3fyellowgreen |
| Accent foreground | #37460cdarkolivegreen | #37460cdarkolivegreen |
| Destructive | #65170bmaroon | #d83218firebrick |
| Destructive foreground | #f6b6aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #673fdeslateblue | #673fdeslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.64:1 | AA |
| Muted text | 6.13:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.84:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.64:1 | AA |
| Muted text | 7.82:1 | AAA |
| Accent | 6.64:1 | AA |
| Destructive | 4.80:1 | AA |
Paste this into your globals.css to use Liquidity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.097 0.023 297.455);
--muted: oklch(0.958 0.005 117.924);
--muted-foreground: oklch(0.467 0.003 117.934);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.077 0.018 297.455);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.077 0.018 297.455);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.514 0.226 286.976);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.845 0.184 122.772);
--secondary-foreground: oklch(0.368 0.081 122.941);
--accent: oklch(0.845 0.184 122.772);
--accent-foreground: oklch(0.368 0.081 122.941);
--destructive: oklch(0.337 0.113 31.654);
--destructive-foreground: oklch(0.833 0.076 28.673);
--ring: oklch(0.514 0.226 286.976);
--chart-1: oklch(0.514 0.226 286.976);
--chart-2: oklch(0.845 0.184 122.772);
--chart-3: oklch(0.845 0.184 122.772);
--chart-4: oklch(0.854 0.176 122.298);
--chart-5: oklch(0.512 0.233 286.28);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.004 297.75);
--muted: oklch(0.176 0.008 118.645);
--muted-foreground: oklch(0.726 0.003 117.888);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.991 0.002 297.788);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 297.788);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.514 0.226 286.976);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.845 0.184 122.772);
--secondary-foreground: oklch(0.368 0.081 122.941);
--accent: oklch(0.845 0.184 122.772);
--accent-foreground: oklch(0.368 0.081 122.941);
--destructive: oklch(0.576 0.205 31.597);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.514 0.226 286.976);
--chart-1: oklch(0.514 0.226 286.976);
--chart-2: oklch(0.845 0.184 122.772);
--chart-3: oklch(0.845 0.184 122.772);
--chart-4: oklch(0.854 0.176 122.298);
--chart-5: oklch(0.512 0.233 286.28);
}