Strange is a shadcn/ui theme built around a deep blue primary color (#101c28) with deep indigo accents (#101028). The light mode uses a neutral background (#f8fafc). Dark mode keeps the deep blue primary (#101c28) on a neutral background (#020304).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #020304black |
| Foreground | #04080cblack | #f9fafbghostwhite |
| Card | #f8fafcghostwhite | #020304black |
| Card foreground | #04080cblack | #f9fafbghostwhite |
| Popover | #f8fafcghostwhite | #020304black |
| Popover foreground | #04080cblack | #f9fafbghostwhite |
| Primary | #101c28black | #101c28black |
| Primary foreground | #95b6d6lightsteelblue | #95b6d6lightsteelblue |
| Secondary | #102828black | #102828black |
| Secondary foreground | #4bb9b7mediumturquoise | #4bb9b7mediumturquoise |
| Muted | #e4ececlavender | #131b1bblack |
| Muted foreground | #566161dimgray | #9ea9a9darkgray |
| Accent | #101028black | #101028black |
| Accent foreground | #9596d6mediumpurple | #9596d6mediumpurple |
| Destructive | #d11e15firebrick | #e82117crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #101c28black | #101c28black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 5.34:1 | AA |
| Accent | 6.75:1 | AA |
| Destructive | 5.37:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 6.75:1 | AA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Strange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 246.01);
--foreground: oklch(0.129 0.014 238.966);
--muted: oklch(0.937 0.009 195.81);
--muted-foreground: oklch(0.484 0.014 195.489);
--popover: oklch(0.984 0.004 246.01);
--popover-foreground: oklch(0.129 0.014 238.966);
--card: oklch(0.984 0.004 246.01);
--card-foreground: oklch(0.129 0.014 238.966);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.223 0.03 247.668);
--primary-foreground: oklch(0.763 0.058 246.851);
--secondary: oklch(0.259 0.031 193.987);
--secondary-foreground: oklch(0.723 0.099 193.65);
--accent: oklch(0.189 0.048 279.971);
--accent-foreground: oklch(0.695 0.093 282.941);
--destructive: oklch(0.551 0.211 29.266);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.223 0.03 247.668);
--chart-1: oklch(0.223 0.03 247.668);
--chart-2: oklch(0.259 0.031 193.987);
--chart-3: oklch(0.189 0.048 279.971);
--chart-4: oklch(0.299 0.037 193.893);
--chart-5: oklch(0.223 0.031 247.818);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.007 240.372);
--foreground: oklch(0.984 0.001 245.982);
--muted: oklch(0.214 0.012 195.014);
--muted-foreground: oklch(0.725 0.012 195.676);
--popover: oklch(0.09 0.007 240.372);
--popover-foreground: oklch(0.984 0.001 245.982);
--card: oklch(0.09 0.007 240.372);
--card-foreground: oklch(0.984 0.001 245.982);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.223 0.03 247.668);
--primary-foreground: oklch(0.763 0.058 246.851);
--secondary: oklch(0.259 0.031 193.987);
--secondary-foreground: oklch(0.723 0.099 193.65);
--accent: oklch(0.189 0.048 279.971);
--accent-foreground: oklch(0.695 0.093 282.941);
--destructive: oklch(0.596 0.229 29.3);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.223 0.03 247.668);
--chart-1: oklch(0.223 0.03 247.668);
--chart-2: oklch(0.259 0.031 193.987);
--chart-3: oklch(0.189 0.048 279.971);
--chart-4: oklch(0.299 0.037 193.893);
--chart-5: oklch(0.223 0.031 247.818);
}