Strange is a shadcn/ui theme built around an indigo primary color (#4c44a7) with muted light indigo accents (#b7b5cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#4c44a7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030212black | #f6f6f8whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030212black | #f6f6f8whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030212black | #f6f6f8whitesmoke |
| Primary | #4c44a7darkslateblue | #4c44a7darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d2d2dblightgrey | #292734darkslategray |
| Secondary foreground | #383644darkslategray | #c0bfcfsilver |
| Muted | #ebebeflavender | #101014black |
| Muted foreground | #434252darkslategray | #aeadbddarkgray |
| Accent | #b7b5cfsilver | #35324ddarkslategray |
| Accent foreground | #222031darkslategray | #d2d1e1lightgrey |
| Destructive | #c70a0afirebrick | #df0c0cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c44a7darkslateblue | #4c44a7darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.56:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.62:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 5.01:1 | AA |
Paste this into your globals.css to use Strange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.042 283.304);
--muted: oklch(0.941 0.006 290.122);
--muted-foreground: oklch(0.386 0.027 288.863);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.042 283.304);
--card: oklch(1 0 180);
--card-foreground: oklch(0.108 0.042 283.304);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.452 0.153 282.13);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.866 0.012 289.979);
--secondary-foreground: oklch(0.341 0.023 288.913);
--accent: oklch(0.783 0.036 289.358);
--accent-foreground: oklch(0.254 0.032 287.704);
--destructive: oklch(0.523 0.21 28.789);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.452 0.153 282.13);
--chart-1: oklch(0.452 0.153 282.13);
--chart-2: oklch(0.866 0.012 289.979);
--chart-3: oklch(0.783 0.036 289.358);
--chart-4: oklch(0.892 0.01 290.037);
--chart-5: oklch(0.446 0.163 281.266);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 290.188);
--muted: oklch(0.174 0.01 289.185);
--muted-foreground: oklch(0.754 0.023 289.662);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.003 290.188);
--card: oklch(0 0 0);
--card-foreground: oklch(0.975 0.003 290.188);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.452 0.153 282.13);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.281 0.023 288.611);
--secondary-foreground: oklch(0.811 0.022 289.733);
--accent: oklch(0.333 0.047 287.387);
--accent-foreground: oklch(0.866 0.022 289.763);
--destructive: oklch(0.57 0.23 28.845);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.452 0.153 282.13);
--chart-1: oklch(0.452 0.153 282.13);
--chart-2: oklch(0.281 0.023 288.611);
--chart-3: oklch(0.333 0.047 287.387);
--chart-4: oklch(0.309 0.027 288.546);
--chart-5: oklch(0.446 0.163 281.266);
}