Ugly is a shadcn/ui theme built around a muted green primary color (#678047) with muted green accents (#4a8047). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted green primary (#678047) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #000000black |
| Foreground | #030401black | #fafcf8snow |
| Card | #f8fcf2floralwhite | #030303black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #f8fcf2floralwhite | #030303black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #678047darkolivegreen | #678047darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #807c47dimgray | #807c47dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f4f4f0whitesmoke | #0f0f0bblack |
| Muted foreground | #626150dimgray | #afad9ddarkgray |
| Accent | #4a8047darkolivegreen | #4a8047darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #66130amaroon | #d12715firebrick |
| Destructive foreground | #f7b3ablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #678047darkolivegreen | #678047darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 4.39:1 | AA Large |
| Secondary button | 4.27:1 | AA Large |
| Muted text | 5.70:1 | AA |
| Accent | 4.67:1 | AA |
| Destructive | 7.19:1 | AAA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 4.39:1 | AA Large |
| Secondary button | 4.27:1 | AA Large |
| Muted text | 8.51:1 | AAA |
| Accent | 4.67:1 | AA |
| Destructive | 5.23:1 | AA |
Paste this into your globals.css to use Ugly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.009 125.864);
--foreground: oklch(0.103 0.018 124.753);
--muted: oklch(0.967 0.005 103.2);
--muted-foreground: oklch(0.489 0.026 103.94);
--popover: oklch(0.986 0.014 125.927);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.014 125.927);
--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.567 0.087 128.082);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.578 0.074 104.908);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.104 142.597);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.335 0.117 30.399);
--destructive-foreground: oklch(0.828 0.08 26.073);
--ring: oklch(0.567 0.087 128.082);
--chart-1: oklch(0.567 0.087 128.082);
--chart-2: oklch(0.578 0.074 104.908);
--chart-3: oklch(0.548 0.104 142.597);
--chart-4: oklch(0.61 0.079 104.916);
--chart-5: oklch(0.574 0.095 128.315);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.005 125.803);
--muted: oklch(0.165 0.008 103.895);
--muted-foreground: oklch(0.745 0.023 103.617);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.994 0.002 125.771);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 125.771);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.567 0.087 128.082);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.578 0.074 104.908);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.548 0.104 142.597);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.556 0.206 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.567 0.087 128.082);
--chart-1: oklch(0.567 0.087 128.082);
--chart-2: oklch(0.578 0.074 104.908);
--chart-3: oklch(0.548 0.104 142.597);
--chart-4: oklch(0.61 0.079 104.916);
--chart-5: oklch(0.574 0.095 128.315);
}