Obstacle is a shadcn/ui theme built around a light green primary color (#b6f2bb) with light red accents (#f2bbb6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#b6f2bb) on a green-tinted background (#070e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070e07black |
| Foreground | #010902black | #ffffffwhite |
| Card | #fcfcfcsnow | #081109black |
| Card foreground | #010401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #081109black |
| Popover foreground | #010401black | #ffffffwhite |
| Primary | #b6f2bbpalegreen | #b6f2bbpalegreen |
| Primary foreground | #020d03black | #020d03black |
| Secondary | #bbb6f2lightsteelblue | #bbb6f2lightsteelblue |
| Secondary foreground | #191263midnightblue | #191263midnightblue |
| Muted | #d6d5e2gainsboro | #1e1d2ablack |
| Muted foreground | #47455edarkslategray | #a3a1badarkgray |
| Accent | #f2bbb6lightpink | #f2bbb6lightpink |
| Accent foreground | #631912maroon | #631912maroon |
| Destructive | #b03e11firebrick | #df4f16chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b6f2bbpalegreen | #b6f2bbpalegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 15.39:1 | AAA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 5.89:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 15.39:1 | AAA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Obstacle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.029 146.299);
--muted: oklch(0.876 0.019 289.846);
--muted-foreground: oklch(0.404 0.041 288.241);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.098 0.023 146.299);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.023 146.299);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.905 0.096 146.874);
--primary-foreground: oklch(0.142 0.032 146.34);
--secondary: oklch(0.8 0.084 288.157);
--secondary-foreground: oklch(0.263 0.134 275.697);
--accent: oklch(0.839 0.064 24.491);
--accent-foreground: oklch(0.336 0.108 29.17);
--destructive: oklch(0.521 0.157 38.876);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.905 0.096 146.874);
--chart-1: oklch(0.905 0.096 146.874);
--chart-2: oklch(0.8 0.084 288.157);
--chart-3: oklch(0.839 0.064 24.491);
--chart-4: oklch(0.836 0.069 288.64);
--chart-5: oklch(0.907 0.1 146.823);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.019 147.055);
--foreground: oklch(1 0 180);
--muted: oklch(0.238 0.026 288.085);
--muted-foreground: oklch(0.719 0.035 289.304);
--popover: oklch(0.166 0.022 146.732);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.166 0.022 146.732);
--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.905 0.096 146.874);
--primary-foreground: oklch(0.142 0.032 146.34);
--secondary: oklch(0.8 0.084 288.157);
--secondary-foreground: oklch(0.263 0.134 275.697);
--accent: oklch(0.839 0.064 24.491);
--accent-foreground: oklch(0.336 0.108 29.17);
--destructive: oklch(0.618 0.19 38.587);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.905 0.096 146.874);
--chart-1: oklch(0.905 0.096 146.874);
--chart-2: oklch(0.8 0.084 288.157);
--chart-3: oklch(0.839 0.064 24.491);
--chart-4: oklch(0.836 0.069 288.64);
--chart-5: oklch(0.907 0.1 146.823);
}