Strange is a shadcn/ui theme built around a muted green primary color (#597d5c) with muted teal accents (#597d6e). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the muted green primary (#597d5c) on a neutral background (#030703).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #030703black |
| Foreground | #010501black | #ffffffwhite |
| Card | #f3fcf4honeydew | #040b05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f3fcf4honeydew | #040b05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #597d5cdimgray | #597d5cdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #687d59dimgray | #687d59dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfe7dagainsboro | #1e2518black |
| Muted foreground | #626b5bdimgray | #9aa494darkgray |
| Accent | #597d6edimgray | #597d6edimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a72b0cfirebrick | #e53b10orangered |
| Destructive foreground | #fdece7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #597d5cdimgray | #597d5cdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 4.63:1 | AA |
| Secondary button | 4.48:1 | AA Large |
| Muted text | 4.38:1 | AA Large |
| Accent | 4.56:1 | AA |
| Destructive | 6.13:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 4.63:1 | AA |
| Secondary button | 4.48:1 | AA Large |
| Muted text | 6.10:1 | AA |
| Accent | 4.56:1 | AA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Strange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 147.967);
--foreground: oklch(0.099 0.025 146.175);
--muted: oklch(0.918 0.018 131.886);
--muted-foreground: oklch(0.516 0.027 132.162);
--popover: oklch(0.981 0.014 147.917);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.014 147.917);
--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.554 0.066 146.717);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.06 132.662);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.559 0.048 166.974);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.482 0.165 34.017);
--destructive-foreground: oklch(0.955 0.02 34.297);
--ring: oklch(0.554 0.066 146.717);
--chart-1: oklch(0.554 0.066 146.717);
--chart-2: oklch(0.564 0.06 132.662);
--chart-3: oklch(0.559 0.048 166.974);
--chart-4: oklch(0.592 0.063 132.669);
--chart-5: oklch(0.559 0.077 146.487);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.018 147.026);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.025 132.579);
--muted-foreground: oklch(0.705 0.025 132.018);
--popover: oklch(0.138 0.02 147.012);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.02 147.012);
--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.554 0.066 146.717);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.564 0.06 132.662);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.559 0.048 166.974);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.607 0.212 33.75);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.554 0.066 146.717);
--chart-1: oklch(0.554 0.066 146.717);
--chart-2: oklch(0.564 0.06 132.662);
--chart-3: oklch(0.559 0.048 166.974);
--chart-4: oklch(0.592 0.063 132.669);
--chart-5: oklch(0.559 0.077 146.487);
}