Distortion is a shadcn/ui theme built around a muted green primary color (#b5c0ba) with muted teal accents (#b5c0bf). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the muted green primary (#b5c0ba) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #020805black |
| Foreground | #031109black | #fcfdfcwhite |
| Card | #f7fdfamintcream | #020805black |
| Card foreground | #031109black | #fcfdfcwhite |
| Popover | #f7fdfamintcream | #020805black |
| Popover foreground | #031109black | #fcfdfcwhite |
| Primary | #b5c0basilver | #b5c0basilver |
| Primary foreground | #1e2421black | #1e2421black |
| Secondary | #b5c0b5silver | #b5c0b5silver |
| Secondary foreground | #1f241eblack | #1f241eblack |
| Muted | #dce0dcgainsboro | #1f231fblack |
| Muted foreground | #587057dimgray | #90a88fdarkseagreen |
| Accent | #b5c0bfsilver | #b5c0bfsilver |
| Accent foreground | #1e2424black | #1e2424black |
| Destructive | #b9410efirebrick | #f0723dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b5c0basilver | #b5c0basilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.74:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 8.40:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 4.06:1 | AA Large |
| Accent | 8.41:1 | AAA |
| Destructive | 5.48:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.40:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 8.41:1 | AAA |
| Destructive | 7.21:1 | AAA |
Paste this into your globals.css to use Distortion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 162.403);
--foreground: oklch(0.162 0.028 160.327);
--muted: oklch(0.902 0.007 144.087);
--muted-foreground: oklch(0.519 0.049 143.554);
--popover: oklch(0.989 0.009 162.403);
--popover-foreground: oklch(0.162 0.028 160.327);
--card: oklch(0.989 0.009 162.403);
--card-foreground: oklch(0.162 0.028 160.327);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.796 0.015 162.153);
--primary-foreground: oklch(0.253 0.009 161.667);
--secondary: oklch(0.795 0.019 143.988);
--secondary-foreground: oklch(0.252 0.012 143.841);
--accent: oklch(0.798 0.012 193.305);
--accent-foreground: oklch(0.254 0.008 193.009);
--destructive: oklch(0.539 0.164 39.347);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.796 0.015 162.153);
--chart-1: oklch(0.796 0.015 162.153);
--chart-2: oklch(0.795 0.019 143.988);
--chart-3: oklch(0.798 0.012 193.305);
--chart-4: oklch(0.819 0.017 144.009);
--chart-5: oklch(0.799 0.02 161.978);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.017 162.645);
--foreground: oklch(0.993 0.002 162.579);
--muted: oklch(0.251 0.009 143.913);
--muted-foreground: oklch(0.707 0.046 143.74);
--popover: oklch(0.123 0.017 162.645);
--popover-foreground: oklch(0.993 0.002 162.579);
--card: oklch(0.123 0.017 162.645);
--card-foreground: oklch(0.993 0.002 162.579);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.796 0.015 162.153);
--primary-foreground: oklch(0.253 0.009 161.667);
--secondary: oklch(0.795 0.019 143.988);
--secondary-foreground: oklch(0.252 0.012 143.841);
--accent: oklch(0.798 0.012 193.305);
--accent-foreground: oklch(0.254 0.008 193.009);
--destructive: oklch(0.694 0.169 42.221);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.796 0.015 162.153);
--chart-1: oklch(0.796 0.015 162.153);
--chart-2: oklch(0.795 0.019 143.988);
--chart-3: oklch(0.798 0.012 193.305);
--chart-4: oklch(0.819 0.017 144.009);
--chart-5: oklch(0.799 0.02 161.978);
}