Warped is a shadcn/ui theme built around a muted deep green primary color (#171c12) with muted deep pink accents (#1c1217). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted deep green primary (#171c12) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #020401black |
| Foreground | #0a1202black | #ffffffwhite |
| Card | #f7faf5whitesmoke | #050802black |
| Card foreground | #070e02black | #ffffffwhite |
| Popover | #f7faf5whitesmoke | #050802black |
| Popover foreground | #070e02black | #ffffffwhite |
| Primary | #171c12black | #171c12black |
| Primary foreground | #afc29edarkgray | #afc29edarkgray |
| Secondary | #12171cblack | #12171cblack |
| Secondary foreground | #9eafc2darkgray | #9eafc2darkgray |
| Muted | #cfd8e3gainsboro | #1c2630darkslategray |
| Muted foreground | #58595adimgray | #a5a6a7darkgray |
| Accent | #1c1217black | #1c1217black |
| Accent foreground | #c29eafdarkgray | #c29eafdarkgray |
| Destructive | #d44811chocolate | #ef703etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #171c12black | #171c12black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.43:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 9.10:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 4.41:1 | AA Large |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 9.10:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 7.06:1 | AAA |
Paste this into your globals.css to use Warped in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 129.832);
--foreground: oklch(0.169 0.037 129.873);
--muted: oklch(0.879 0.018 251.609);
--muted-foreground: oklch(0.464 0.002 251.483);
--popover: oklch(0.981 0.007 129.856);
--popover-foreground: oklch(0.15 0.032 128.601);
--card: oklch(0.981 0.007 129.856);
--card-foreground: oklch(0.15 0.032 128.601);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.218 0.022 130.845);
--primary-foreground: oklch(0.79 0.054 130.5);
--secondary: oklch(0.2 0.014 251.935);
--secondary-foreground: oklch(0.746 0.034 251.784);
--accent: oklch(0.197 0.02 349.449);
--accent-foreground: oklch(0.737 0.049 348.609);
--destructive: oklch(0.593 0.185 38.254);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.218 0.022 130.845);
--chart-1: oklch(0.218 0.022 130.845);
--chart-2: oklch(0.2 0.014 251.935);
--chart-3: oklch(0.197 0.02 349.449);
--chart-4: oklch(0.232 0.018 251.983);
--chart-5: oklch(0.22 0.024 130.982);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.015 128.595);
--foreground: oklch(1 0 180);
--muted: oklch(0.263 0.024 252.09);
--muted-foreground: oklch(0.724 0.002 251.469);
--popover: oklch(0.126 0.019 128.595);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.019 128.595);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.218 0.022 130.845);
--primary-foreground: oklch(0.79 0.054 130.5);
--secondary: oklch(0.2 0.014 251.935);
--secondary-foreground: oklch(0.746 0.034 251.784);
--accent: oklch(0.197 0.02 349.449);
--accent-foreground: oklch(0.737 0.049 348.609);
--destructive: oklch(0.689 0.17 40.973);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.218 0.022 130.845);
--chart-1: oklch(0.218 0.022 130.845);
--chart-2: oklch(0.2 0.014 251.935);
--chart-3: oklch(0.197 0.02 349.449);
--chart-4: oklch(0.232 0.018 251.983);
--chart-5: oklch(0.22 0.024 130.982);
}