Worse is a shadcn/ui theme built around an indigo primary color (#4648a4) with yellow accents (#a4a346). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#4648a4) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #060614black | #f5f5fawhitesmoke |
| Card | #ffffffwhite | #020203black |
| Card foreground | #060614black | #f5f5fawhitesmoke |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #060614black | #f5f5fawhitesmoke |
| Primary | #4648a4darkslateblue | #4648a4darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a4a346yellowgreen | #a4a346yellowgreen |
| Secondary foreground | #151509black | #151509black |
| Muted | #f0f0ealinen | #15150fblack |
| Muted foreground | #63634fdimgray | #b0af9cdarkgray |
| Accent | #a4a346yellowgreen | #a4a346yellowgreen |
| Accent foreground | #151509black | #151509black |
| Destructive | #af260efirebrick | #ed4426orangered |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4648a4darkslateblue | #4648a4darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 6.89:1 | AA |
| Muted text | 5.36:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 6.89:1 | AA |
| Muted text | 8.25:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Worse in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.03 280.49);
--muted: oklch(0.954 0.008 105.773);
--muted-foreground: oklch(0.493 0.03 106.633);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.03 280.49);
--card: oklch(1 0 180);
--card-foreground: oklch(0.132 0.03 280.49);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.453 0.145 278.137);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.697 0.115 108.146);
--secondary-foreground: oklch(0.193 0.022 107.486);
--accent: oklch(0.697 0.115 108.146);
--accent-foreground: oklch(0.193 0.022 107.486);
--destructive: oklch(0.492 0.176 32.11);
--destructive-foreground: oklch(0.972 0.012 29.513);
--ring: oklch(0.453 0.145 278.137);
--chart-1: oklch(0.453 0.145 278.137);
--chart-2: oklch(0.697 0.115 108.146);
--chart-3: oklch(0.697 0.115 108.146);
--chart-4: oklch(0.73 0.121 108.153);
--chart-5: oklch(0.446 0.156 277.308);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.009 283.252);
--foreground: oklch(0.972 0.006 285.506);
--muted: oklch(0.193 0.012 106.685);
--muted-foreground: oklch(0.75 0.027 106.239);
--popover: oklch(0.083 0.009 283.252);
--popover-foreground: oklch(0.972 0.006 285.506);
--card: oklch(0.083 0.009 283.252);
--card-foreground: oklch(0.972 0.006 285.506);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.453 0.145 278.137);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.697 0.115 108.146);
--secondary-foreground: oklch(0.193 0.022 107.486);
--accent: oklch(0.697 0.115 108.146);
--accent-foreground: oklch(0.193 0.022 107.486);
--destructive: oklch(0.631 0.211 32.356);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.453 0.145 278.137);
--chart-1: oklch(0.453 0.145 278.137);
--chart-2: oklch(0.697 0.115 108.146);
--chart-3: oklch(0.697 0.115 108.146);
--chart-4: oklch(0.73 0.121 108.153);
--chart-5: oklch(0.446 0.156 277.308);
}