Obstacle is a shadcn/ui theme built around a vivid purple primary color (#e231f2) with vivid pink accents (#f231a1). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#e231f2) on a purple-tinted background (#0e060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0e060fblack |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #fcf7fdghostwhite | #120713black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fcf7fdghostwhite | #120713black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #e231f2magenta | #e231f2magenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8131f2blueviolet | #8131f2blueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dad5e1gainsboro | #231e2ablack |
| Muted foreground | #4f4d51darkslategray | #b0aeb2darkgray |
| Accent | #f231a1deeppink | #f231a1deeppink |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #940c00darkred | #ff2d19orangered |
| Destructive foreground | #ffccc7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e231f2magenta | #e231f2magenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 3.53:1 | AA Large |
| Secondary button | 5.74:1 | AA |
| Muted text | 5.81:1 | AA |
| Accent | 3.66:1 | AA Large |
| Destructive | 6.36:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 3.53:1 | AA Large |
| Secondary button | 5.74:1 | AA |
| Muted text | 7.42:1 | AAA |
| Accent | 3.66:1 | AA Large |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Obstacle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 323.156);
--foreground: oklch(0 0 0);
--muted: oklch(0.881 0.017 304.773);
--muted-foreground: oklch(0.424 0.005 304.868);
--popover: oklch(0.982 0.009 323.178);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.009 323.178);
--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.665 0.284 324.244);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.542 0.26 294.807);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.65 0.243 350.85);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.423 0.167 30.527);
--destructive-foreground: oklch(0.888 0.059 24.354);
--ring: oklch(0.665 0.284 324.244);
--chart-1: oklch(0.665 0.284 324.244);
--chart-2: oklch(0.542 0.26 294.807);
--chart-3: oklch(0.65 0.243 350.85);
--chart-4: oklch(0.566 0.248 296.479);
--chart-5: oklch(0.67 0.29 324.218);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.027 324.16);
--foreground: oklch(0.984 0.002 323.144);
--muted: oklch(0.245 0.024 303.691);
--muted-foreground: oklch(0.754 0.005 304.959);
--popover: oklch(0.151 0.031 324.048);
--popover-foreground: oklch(0.992 0.001 323.139);
--card: oklch(0.151 0.031 324.048);
--card-foreground: oklch(0.992 0.001 323.139);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.665 0.284 324.244);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.542 0.26 294.807);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.65 0.243 350.85);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.643 0.243 30.079);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.665 0.284 324.244);
--chart-1: oklch(0.665 0.284 324.244);
--chart-2: oklch(0.542 0.26 294.807);
--chart-3: oklch(0.65 0.243 350.85);
--chart-4: oklch(0.566 0.248 296.479);
--chart-5: oklch(0.67 0.29 324.218);
}