Strange is a shadcn/ui theme built around a cyan primary color (#2d747c) with green accents (#747c2d). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the cyan primary (#2d747c) on a cyan-tinted background (#040a0b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfdghostwhite | #040a0bblack |
| Foreground | #020809black | #f9fbfbghostwhite |
| Card | #f7fcfdghostwhite | #040a0bblack |
| Card foreground | #020809black | #f9fbfbghostwhite |
| Popover | #f7fcfdghostwhite | #040a0bblack |
| Popover foreground | #020809black | #f9fbfbghostwhite |
| Primary | #2d747cseagreen | #2d747cseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7c2d74rebeccapurple | #7c2d74rebeccapurple |
| Secondary foreground | #f6e5f4lavenderblush | #f6e5f4lavenderblush |
| Muted | #eed8eclavender | #271125black |
| Muted foreground | #513d4fdarkslategray | #c2aec0silver |
| Accent | #747c2dolivedrab | #747c2dolivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ca4807chocolate | #f76922chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d747cseagreen | #2d747cseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 5.40:1 | AA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 4.52:1 | AA |
| Destructive | 4.73:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 5.40:1 | AA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 4.52:1 | AA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Strange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 204.95);
--foreground: oklch(0.125 0.016 201.829);
--muted: oklch(0.906 0.036 329.028);
--muted-foreground: oklch(0.39 0.04 329.666);
--popover: oklch(0.988 0.005 204.95);
--popover-foreground: oklch(0.125 0.016 201.829);
--card: oklch(0.988 0.005 204.95);
--card-foreground: oklch(0.125 0.016 201.829);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.517 0.071 205.367);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.438 0.141 331.825);
--secondary-foreground: oklch(0.939 0.027 328.905);
--accent: oklch(0.562 0.103 114.575);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.575 0.176 40.316);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.517 0.071 205.367);
--chart-1: oklch(0.517 0.071 205.367);
--chart-2: oklch(0.438 0.141 331.825);
--chart-3: oklch(0.562 0.103 114.575);
--chart-4: oklch(0.465 0.151 331.855);
--chart-5: oklch(0.523 0.074 205.501);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.012 203.024);
--foreground: oklch(0.986 0.002 204.971);
--muted: oklch(0.219 0.05 330.894);
--muted-foreground: oklch(0.772 0.034 329.065);
--popover: oklch(0.139 0.012 203.024);
--popover-foreground: oklch(0.986 0.002 204.971);
--card: oklch(0.139 0.012 203.024);
--card-foreground: oklch(0.986 0.002 204.971);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.517 0.071 205.367);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.438 0.141 331.825);
--secondary-foreground: oklch(0.939 0.027 328.905);
--accent: oklch(0.562 0.103 114.575);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.688 0.191 42.745);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.517 0.071 205.367);
--chart-1: oklch(0.517 0.071 205.367);
--chart-2: oklch(0.438 0.141 331.825);
--chart-3: oklch(0.562 0.103 114.575);
--chart-4: oklch(0.465 0.151 331.855);
--chart-5: oklch(0.523 0.074 205.501);
}