Strange is a shadcn/ui theme built around a deep green primary color (#4a4f12) with muted light green accents (#d7d9c4). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep green primary (#4a4f12) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #000000black |
| Foreground | #070802black | #ffffffwhite |
| Card | #fcfcf8snow | #030303black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fcfcf8snow | #030303black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #4a4f12darkolivegreen | #4a4f12darkolivegreen |
| Primary foreground | #e6eba8palegoldenrod | #e6eba8palegoldenrod |
| Secondary | #ebebe5linen | #212121black |
| Secondary foreground | #1f2018black | #bbbbb9silver |
| Muted | #dfe0d1gainsboro | #2d2e1fdarkslategray |
| Muted foreground | #686864dimgray | #9b9b97darkgray |
| Accent | #d7d9c4lightgrey | #3d3e32darkslategray |
| Accent foreground | #3f412adarkslategray | #d5d6cdlightgrey |
| Destructive | #8e2c0bsaddlebrown | #f0693dtomato |
| Destructive foreground | #fbdbd0bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a4f12darkolivegreen | #4a4f12darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 13.72:1 | AAA |
| Muted text | 4.20:1 | AA Large |
| Accent | 7.29:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 4.95:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Strange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 110.296);
--foreground: oklch(0.13 0.017 111.695);
--muted: oklch(0.903 0.021 110.669);
--muted-foreground: oklch(0.516 0.006 110.475);
--popover: oklch(0.989 0.005 110.346);
--popover-foreground: oklch(0.103 0.014 111.695);
--card: oklch(0.989 0.005 110.346);
--card-foreground: oklch(0.103 0.014 111.695);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.082 114.146);
--primary-foreground: oklch(0.92 0.087 111.972);
--secondary: oklch(0.938 0.008 110.405);
--secondary-foreground: oklch(0.239 0.013 111.283);
--accent: oklch(0.878 0.027 110.826);
--accent-foreground: oklch(0.366 0.036 112.061);
--destructive: oklch(0.438 0.139 36.759);
--destructive-foreground: oklch(0.914 0.04 39.303);
--ring: oklch(0.41 0.082 114.146);
--chart-1: oklch(0.41 0.082 114.146);
--chart-2: oklch(0.938 0.008 110.405);
--chart-3: oklch(0.878 0.027 110.826);
--chart-4: oklch(0.959 0.005 110.35);
--chart-5: oklch(0.415 0.084 114.256);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.295 0.026 111.879);
--muted-foreground: oklch(0.688 0.006 110.406);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.41 0.082 114.146);
--primary-foreground: oklch(0.92 0.087 111.972);
--secondary: oklch(0.249 0.001 110.339);
--secondary-foreground: oklch(0.791 0.002 110.292);
--accent: oklch(0.358 0.019 111.21);
--accent-foreground: oklch(0.872 0.012 110.513);
--destructive: oklch(0.682 0.177 38.458);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.41 0.082 114.146);
--chart-1: oklch(0.41 0.082 114.146);
--chart-2: oklch(0.249 0.001 110.339);
--chart-3: oklch(0.358 0.019 111.21);
--chart-4: oklch(0.281 0.001 110.345);
--chart-5: oklch(0.415 0.084 114.256);
}