Smug is a shadcn/ui theme built around a vivid deep green primary color (#044315) with vivid deep teal accents (#044335). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#044315) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a07black |
| Foreground | #030c05black | #f8fcf9mintcream |
| Card | #ffffffwhite | #050a07black |
| Card foreground | #030c05black | #f8fcf9mintcream |
| Popover | #ffffffwhite | #050a07black |
| Popover foreground | #030c05black | #f8fcf9mintcream |
| Primary | #044315darkgreen | #044315darkgreen |
| Primary foreground | #21f259springgreen | #21f259springgreen |
| Secondary | #134304darkgreen | #134304darkgreen |
| Secondary foreground | #52f221limegreen | #52f221limegreen |
| Muted | #e7f1e5beige | #111a0eblack |
| Muted foreground | #444e41darkslategray | #b4beb1silver |
| Accent | #044335darkslategray | #044335darkslategray |
| Accent foreground | #21f2c1turquoise | #21f2c1turquoise |
| Destructive | #9a1d04darkred | #f92f06orangered |
| Destructive foreground | #fedad2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #044315darkgreen | #044315darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 7.49:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 9.26:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Smug in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.024 153.688);
--muted: oklch(0.947 0.018 138.35);
--muted-foreground: oklch(0.41 0.025 138.398);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.024 153.688);
--card: oklch(1 0 180);
--card-foreground: oklch(0.142 0.024 153.688);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.336 0.097 146.881);
--primary-foreground: oklch(0.839 0.247 146.256);
--secondary: oklch(0.339 0.104 139.834);
--secondary-foreground: oklch(0.844 0.264 140.25);
--accent: oklch(0.344 0.065 171.579);
--accent-foreground: oklch(0.858 0.164 170.784);
--destructive: oklch(0.446 0.164 32.451);
--destructive-foreground: oklch(0.915 0.042 31.2);
--ring: oklch(0.336 0.097 146.881);
--chart-1: oklch(0.336 0.097 146.881);
--chart-2: oklch(0.339 0.104 139.834);
--chart-3: oklch(0.344 0.065 171.579);
--chart-4: oklch(0.385 0.12 140.081);
--chart-5: oklch(0.339 0.099 146.738);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.013 154.19);
--foreground: oklch(0.987 0.005 154.436);
--muted: oklch(0.206 0.026 138.519);
--muted-foreground: oklch(0.79 0.021 138.358);
--popover: oklch(0.137 0.013 154.19);
--popover-foreground: oklch(0.987 0.005 154.436);
--card: oklch(0.137 0.013 154.19);
--card-foreground: oklch(0.987 0.005 154.436);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.336 0.097 146.881);
--primary-foreground: oklch(0.839 0.247 146.256);
--secondary: oklch(0.339 0.104 139.834);
--secondary-foreground: oklch(0.844 0.264 140.25);
--accent: oklch(0.344 0.065 171.579);
--accent-foreground: oklch(0.858 0.164 170.784);
--destructive: oklch(0.632 0.238 31.903);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.336 0.097 146.881);
--chart-1: oklch(0.336 0.097 146.881);
--chart-2: oklch(0.339 0.104 139.834);
--chart-3: oklch(0.344 0.065 171.579);
--chart-4: oklch(0.385 0.12 140.081);
--chart-5: oklch(0.339 0.099 146.738);
}