Ugly is a shadcn/ui theme built around a muted deep green primary color (#404a3f) with muted deep green accents (#3f4a44). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#404a3f) on a green-tinted background (#060f06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060f06black |
| Foreground | #041603black | #f9fbf8mintcream |
| Card | #ffffffwhite | #060f06black |
| Card foreground | #041603black | #f9fbf8mintcream |
| Popover | #ffffffwhite | #060f06black |
| Popover foreground | #041603black | #f9fbf8mintcream |
| Primary | #404a3fdarkslategray | #404a3fdarkslategray |
| Primary foreground | #dbe1dbgainsboro | #dbe1dbgainsboro |
| Secondary | #454a3fdarkslategray | #454a3fdarkslategray |
| Secondary foreground | #dee1dbgainsboro | #dee1dbgainsboro |
| Muted | #dce6d1gainsboro | #252e19darkslategray |
| Muted foreground | #535e45darkolivegreen | #afbaa1darkgray |
| Accent | #3f4a44darkslategray | #3f4a44darkslategray |
| Accent foreground | #dbe1degainsboro | #dbe1degainsboro |
| Destructive | #c53c16firebrick | #d84218chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #404a3fdarkslategray | #404a3fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.85:1 | AA |
| Muted text | 5.32:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 5.19:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 6.93:1 | AA |
| Secondary button | 6.85:1 | AA |
| Muted text | 6.98:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 4.47:1 | AA Large |
Paste this into your globals.css to use Ugly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.048 141.98);
--muted: oklch(0.911 0.029 126.847);
--muted-foreground: oklch(0.465 0.041 127.603);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.179 0.048 141.98);
--card: oklch(1 0 180);
--card-foreground: oklch(0.179 0.048 141.98);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.397 0.023 143.789);
--primary-foreground: oklch(0.903 0.009 144.072);
--secondary: oklch(0.402 0.019 127.05);
--secondary-foreground: oklch(0.905 0.008 126.536);
--accent: oklch(0.399 0.017 161.493);
--accent-foreground: oklch(0.903 0.007 162.428);
--destructive: oklch(0.554 0.18 35.183);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.397 0.023 143.789);
--chart-1: oklch(0.397 0.023 143.789);
--chart-2: oklch(0.402 0.019 127.05);
--chart-3: oklch(0.399 0.017 161.493);
--chart-4: oklch(0.432 0.021 127.06);
--chart-5: oklch(0.401 0.031 143.664);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.025 142.827);
--foreground: oklch(0.986 0.005 144.101);
--muted: oklch(0.286 0.038 128.306);
--muted-foreground: oklch(0.772 0.036 127.039);
--popover: oklch(0.154 0.025 142.827);
--popover-foreground: oklch(0.986 0.005 144.101);
--card: oklch(0.154 0.025 142.827);
--card-foreground: oklch(0.986 0.005 144.101);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.397 0.023 143.789);
--primary-foreground: oklch(0.903 0.009 144.072);
--secondary: oklch(0.402 0.019 127.05);
--secondary-foreground: oklch(0.905 0.008 126.536);
--accent: oklch(0.399 0.017 161.493);
--accent-foreground: oklch(0.903 0.007 162.428);
--destructive: oklch(0.591 0.193 35.12);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.397 0.023 143.789);
--chart-1: oklch(0.397 0.023 143.789);
--chart-2: oklch(0.402 0.019 127.05);
--chart-3: oklch(0.399 0.017 161.493);
--chart-4: oklch(0.432 0.021 127.06);
--chart-5: oklch(0.401 0.031 143.664);
}