Worse is a shadcn/ui theme built around a near-white primary color (#f6fefc) with near-white accents (#fefcf6). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the near-white primary (#f6fefc) on a teal-tinted background (#060f0d).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #060f0dblack |
| Foreground | #061310black | #fcfdfdwhite |
| Card | #fcfdfdwhite | #060f0dblack |
| Card foreground | #061310black | #fcfdfdwhite |
| Popover | #fcfdfdwhite | #060f0dblack |
| Popover foreground | #061310black | #fcfdfdwhite |
| Primary | #f6fefcmintcream | #f6fefcmintcream |
| Primary foreground | #085442darkslategray | #085442darkslategray |
| Secondary | #fcf6feghostwhite | #fcf6feghostwhite |
| Secondary foreground | #8b11b0darkviolet | #8b11b0darkviolet |
| Muted | #e7dceagainsboro | #201523black |
| Muted foreground | #6a586fdimgray | #a290a7darkgray |
| Accent | #fefcf6snow | #fefcf6snow |
| Accent foreground | #544208saddlebrown | #544208saddlebrown |
| Destructive | #a71c06firebrick | #dd2408orangered |
| Destructive foreground | #fee5e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6fefcmintcream | #f6fefcmintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 8.69:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 4.88:1 | AA |
| Accent | 9.48:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 8.69:1 | AAA |
| Secondary button | 7.03:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 9.48:1 | AAA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Worse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 180.902);
--foreground: oklch(0.174 0.02 177.622);
--muted: oklch(0.907 0.022 318.306);
--muted-foreground: oklch(0.485 0.044 318.237);
--popover: oklch(0.994 0.002 180.902);
--popover-foreground: oklch(0.174 0.02 177.622);
--card: oklch(0.994 0.002 180.902);
--card-foreground: oklch(0.174 0.02 177.622);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.99 0.009 180.699);
--primary-foreground: oklch(0.397 0.074 171.602);
--secondary: oklch(0.98 0.013 318.317);
--secondary-foreground: oklch(0.48 0.225 315.66);
--accent: oklch(0.991 0.009 92.742);
--accent-foreground: oklch(0.387 0.074 90.211);
--destructive: oklch(0.47 0.177 31.356);
--destructive-foreground: oklch(0.942 0.028 28.108);
--ring: oklch(0.99 0.009 180.699);
--chart-1: oklch(0.99 0.009 180.699);
--chart-2: oklch(0.98 0.013 318.317);
--chart-3: oklch(0.991 0.009 92.742);
--chart-4: oklch(1.01 0.006 138.337);
--chart-5: oklch(0.991 0.009 180.689);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.015 179.019);
--foreground: oklch(0.994 0.002 180.908);
--muted: oklch(0.216 0.031 318.164);
--muted-foreground: oklch(0.676 0.04 318.27);
--popover: oklch(0.156 0.015 179.019);
--popover-foreground: oklch(0.994 0.002 180.908);
--card: oklch(0.156 0.015 179.019);
--card-foreground: oklch(0.994 0.002 180.908);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.99 0.009 180.699);
--primary-foreground: oklch(0.397 0.074 171.602);
--secondary: oklch(0.98 0.013 318.317);
--secondary-foreground: oklch(0.48 0.225 315.66);
--accent: oklch(0.991 0.009 92.742);
--accent-foreground: oklch(0.387 0.074 90.211);
--destructive: oklch(0.577 0.22 31.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.99 0.009 180.699);
--chart-1: oklch(0.99 0.009 180.699);
--chart-2: oklch(0.98 0.013 318.317);
--chart-3: oklch(0.991 0.009 92.742);
--chart-4: oklch(1.01 0.006 138.337);
--chart-5: oklch(0.991 0.009 180.689);
}