Livid is a shadcn/ui theme built around a vivid light indigo primary color (#d4d1fa) with neutral gray accents (#e2e2e4). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid light indigo primary (#d4d1fa) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020203black |
| Foreground | #010104black | #f8f8fcghostwhite |
| Card | #f8f8fcghostwhite | #040307black |
| Card foreground | #000000black | #fcfbfdsnow |
| Popover | #fbfbfeghostwhite | #020203black |
| Popover foreground | #010104black | #f8f8fcghostwhite |
| Primary | #d4d1falavender | #d4d1falavender |
| Primary foreground | #2918e7blue | #2918e7blue |
| Secondary | #e2e2e4gainsboro | #262532darkslategray |
| Secondary foreground | #47474ddarkslategray | #bdbccdsilver |
| Muted | #e7e6eflavender | #101019black |
| Muted foreground | #3e3e47darkslategray | #b9b8c1silver |
| Accent | #e2e2e4gainsboro | #262532darkslategray |
| Accent foreground | #47474ddarkslategray | #bdbccdsilver |
| Destructive | #da4607orangered | #f86525tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d4d1falavender | #d4d1falavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.32:1 | AA Large |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 9.64:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.87:1 | AA |
Paste this into your globals.css to use Livid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 290.186);
--foreground: oklch(0.074 0.019 286.666);
--muted: oklch(0.928 0.013 289.978);
--muted-foreground: oklch(0.367 0.016 289.42);
--popover: oklch(0.99 0.003 290.186);
--popover-foreground: oklch(0.074 0.019 286.666);
--card: oklch(0.979 0.006 290.124);
--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.876 0.057 288.99);
--primary-foreground: oklch(0.441 0.276 269.599);
--secondary: oklch(0.913 0.003 290.184);
--secondary-foreground: oklch(0.401 0.01 289.78);
--accent: oklch(0.913 0.003 290.184);
--accent-foreground: oklch(0.401 0.01 289.78);
--destructive: oklch(0.599 0.193 37.941);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.057 288.99);
--chart-1: oklch(0.876 0.057 288.99);
--chart-2: oklch(0.913 0.003 290.184);
--chart-3: oklch(0.913 0.003 290.184);
--chart-4: oklch(0.937 0.002 290.203);
--chart-5: oklch(0.874 0.059 288.939);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.01 288.75);
--foreground: oklch(0.98 0.005 290.145);
--muted: oklch(0.177 0.02 287.975);
--muted-foreground: oklch(0.786 0.013 289.933);
--popover: oklch(0.083 0.01 288.75);
--popover-foreground: oklch(0.98 0.005 290.145);
--card: oklch(0.105 0.012 288.75);
--card-foreground: oklch(0.99 0.003 290.197);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.876 0.057 288.99);
--primary-foreground: oklch(0.441 0.276 269.599);
--secondary: oklch(0.271 0.024 288.504);
--secondary-foreground: oklch(0.8 0.025 289.661);
--accent: oklch(0.271 0.024 288.504);
--accent-foreground: oklch(0.8 0.025 289.661);
--destructive: oklch(0.685 0.195 40.628);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.876 0.057 288.99);
--chart-1: oklch(0.876 0.057 288.99);
--chart-2: oklch(0.271 0.024 288.504);
--chart-3: oklch(0.271 0.024 288.504);
--chart-4: oklch(0.299 0.028 288.428);
--chart-5: oklch(0.874 0.059 288.939);
}