Litmus is a shadcn/ui theme built around a deep green primary color (#1c3b23) with deep red accents (#3b231c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1c3b23) on a green-tinted background (#040b06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b06black |
| Foreground | #010402black | #f6f9f6whitesmoke |
| Card | #fcfcfcsnow | #050f08black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #040b06black |
| Popover foreground | #010402black | #f6f9f6whitesmoke |
| Primary | #1c3b23darkslategray | #1c3b23darkslategray |
| Primary foreground | #b0d9b9silver | #b0d9b9silver |
| Secondary | #231c3bmidnightblue | #231c3bmidnightblue |
| Secondary foreground | #b9b0d9lightsteelblue | #b9b0d9lightsteelblue |
| Muted | #e1dfe7gainsboro | #1a1820black |
| Muted foreground | #5e5c66dimgray | #9c99a3darkgray |
| Accent | #3b231cdarkslategray | #3b231cdarkslategray |
| Accent foreground | #d9b9b0silver | #d9b9b0silver |
| Destructive | #630b08maroon | #ef3a34crimson |
| Destructive foreground | #f8a8a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c3b23darkslategray | #1c3b23darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 4.98:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Litmus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.097 0.015 152.55);
--muted: oklch(0.908 0.01 296.881);
--muted-foreground: oklch(0.48 0.016 296.493);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.097 0.015 152.55);
--card: oklch(0.992 0 161.565);
--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.319 0.055 149.892);
--primary-foreground: oklch(0.847 0.061 151.993);
--secondary: oklch(0.252 0.056 292.635);
--secondary-foreground: oklch(0.778 0.059 295.702);
--accent: oklch(0.285 0.038 37.668);
--accent-foreground: oklch(0.812 0.039 37.6);
--destructive: oklch(0.322 0.121 28.568);
--destructive-foreground: oklch(0.808 0.095 21.547);
--ring: oklch(0.319 0.055 149.892);
--chart-1: oklch(0.319 0.055 149.892);
--chart-2: oklch(0.252 0.056 292.635);
--chart-3: oklch(0.285 0.038 37.668);
--chart-4: oklch(0.277 0.065 292.414);
--chart-5: oklch(0.323 0.059 149.617);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.02 152.55);
--foreground: oklch(0.979 0.005 153.162);
--muted: oklch(0.216 0.014 295.868);
--muted-foreground: oklch(0.689 0.014 296.707);
--popover: oklch(0.14 0.02 152.55);
--popover-foreground: oklch(0.979 0.005 153.162);
--card: oklch(0.156 0.023 151.895);
--card-foreground: oklch(0.986 0.003 153.189);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.319 0.055 149.892);
--primary-foreground: oklch(0.847 0.061 151.993);
--secondary: oklch(0.252 0.056 292.635);
--secondary-foreground: oklch(0.778 0.059 295.702);
--accent: oklch(0.285 0.038 37.668);
--accent-foreground: oklch(0.812 0.039 37.6);
--destructive: oklch(0.626 0.217 27.6);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.319 0.055 149.892);
--chart-1: oklch(0.319 0.055 149.892);
--chart-2: oklch(0.252 0.056 292.635);
--chart-3: oklch(0.285 0.038 37.668);
--chart-4: oklch(0.277 0.065 292.414);
--chart-5: oklch(0.323 0.059 149.617);
}