Worse is a shadcn/ui theme built around a neutral gray primary color (#dfe0e1) with neutral gray accents (#e1e1df). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the neutral gray primary (#dfe0e1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #000000black |
| Foreground | #030716black | #fcfcfdwhite |
| Card | #f5f6fawhitesmoke | #030303black |
| Card foreground | #020612black | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #000000black |
| Popover foreground | #030716black | #fcfcfdwhite |
| Primary | #dfe0e1gainsboro | #dfe0e1gainsboro |
| Primary foreground | #45464adarkslategray | #45464adarkslategray |
| Secondary | #e1e1dfgainsboro | #e1e1dfgainsboro |
| Secondary foreground | #4a4945darkslategray | #4a4945darkslategray |
| Muted | #f1f0efwhitesmoke | #10100eblack |
| Muted foreground | #534f41darkolivegreen | #bebaacsilver |
| Accent | #e1e1dfgainsboro | #e1e1dfgainsboro |
| Accent foreground | #4a4945darkslategray | #4a4945darkslategray |
| Destructive | #941805darkred | #f22707orangered |
| Destructive foreground | #fdd4cebisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfe0e1gainsboro | #dfe0e1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 7.20:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.13:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 9.80:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Worse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 273.823);
--foreground: oklch(0.135 0.036 265.135);
--muted: oklch(0.956 0.002 93.887);
--muted-foreground: oklch(0.427 0.023 94.34);
--popover: oklch(0.982 0.004 273.823);
--popover-foreground: oklch(0.135 0.036 265.135);
--card: oklch(0.973 0.006 273.801);
--card-foreground: oklch(0.124 0.031 264.138);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.002 273.84);
--primary-foreground: oklch(0.395 0.006 273.697);
--secondary: oklch(0.909 0.002 93.889);
--secondary-foreground: oklch(0.404 0.006 94.013);
--accent: oklch(0.909 0.002 93.889);
--accent-foreground: oklch(0.404 0.006 94.013);
--destructive: oklch(0.431 0.161 31.474);
--destructive-foreground: oklch(0.903 0.048 28.294);
--ring: oklch(0.906 0.002 273.84);
--chart-1: oklch(0.906 0.002 273.84);
--chart-2: oklch(0.909 0.002 93.889);
--chart-3: oklch(0.909 0.002 93.889);
--chart-4: oklch(0.932 0.001 93.882);
--chart-5: oklch(0.905 0.004 273.815);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 273.846);
--muted: oklch(0.172 0.003 94.046);
--muted-foreground: oklch(0.788 0.02 94.119);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 273.846);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.906 0.002 273.84);
--primary-foreground: oklch(0.395 0.006 273.697);
--secondary: oklch(0.909 0.002 93.889);
--secondary-foreground: oklch(0.404 0.006 94.013);
--accent: oklch(0.909 0.002 93.889);
--accent-foreground: oklch(0.404 0.006 94.013);
--destructive: oklch(0.617 0.236 31.064);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.002 273.84);
--chart-1: oklch(0.906 0.002 273.84);
--chart-2: oklch(0.909 0.002 93.889);
--chart-3: oklch(0.909 0.002 93.889);
--chart-4: oklch(0.932 0.001 93.882);
--chart-5: oklch(0.905 0.004 273.815);
}