Impediment is a shadcn/ui theme built around a light green primary color (#bbe9a5) with light green accents (#a5e9b0). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the light green primary (#bbe9a5) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #040703black |
| Foreground | #040901black | #fcfdfcwhite |
| Card | #f9fdf7mintcream | #040703black |
| Card foreground | #040901black | #fcfdfcwhite |
| Popover | #f9fdf7mintcream | #040703black |
| Popover foreground | #040901black | #fcfdfcwhite |
| Primary | #bbe9a5palegreen | #bbe9a5palegreen |
| Primary foreground | #254a12darkgreen | #254a12darkgreen |
| Secondary | #dee9a5palegoldenrod | #dee9a5palegoldenrod |
| Secondary foreground | #414a12darkolivegreen | #414a12darkolivegreen |
| Muted | #f4f5efwhitesmoke | #0f100ablack |
| Muted foreground | #686963dimgray | #9b9c96darkgray |
| Accent | #a5e9b0palegreen | #a5e9b0palegreen |
| Accent foreground | #124a1bdarkgreen | #124a1bdarkgreen |
| Destructive | #903b09saddlebrown | #f0620fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbe9a5palegreen | #bbe9a5palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.05:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 7.49:1 | AAA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.41:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use Impediment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.01 134.876);
--foreground: oklch(0.128 0.028 132.723);
--muted: oklch(0.968 0.007 114.21);
--muted-foreground: oklch(0.518 0.01 114.407);
--popover: oklch(0.99 0.01 134.876);
--popover-foreground: oklch(0.128 0.028 132.723);
--card: oklch(0.99 0.01 134.876);
--card-foreground: oklch(0.128 0.028 132.723);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.885 0.103 135.475);
--primary-foreground: oklch(0.368 0.094 137.055);
--secondary: oklch(0.91 0.089 115.903);
--secondary-foreground: oklch(0.388 0.078 118.406);
--accent: oklch(0.874 0.104 149.032);
--accent-foreground: oklch(0.361 0.095 146.004);
--destructive: oklch(0.461 0.128 44.327);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.103 135.475);
--chart-1: oklch(0.885 0.103 135.475);
--chart-2: oklch(0.91 0.089 115.903);
--chart-3: oklch(0.874 0.104 149.032);
--chart-4: oklch(0.922 0.077 115.633);
--chart-5: oklch(0.888 0.107 135.51);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.014 133.729);
--foreground: oklch(0.993 0.001 134.834);
--muted: oklch(0.168 0.011 115.326);
--muted-foreground: oklch(0.69 0.009 114.305);
--popover: oklch(0.122 0.014 133.729);
--popover-foreground: oklch(0.993 0.001 134.834);
--card: oklch(0.122 0.014 133.729);
--card-foreground: oklch(0.993 0.001 134.834);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.885 0.103 135.475);
--primary-foreground: oklch(0.368 0.094 137.055);
--secondary: oklch(0.91 0.089 115.903);
--secondary-foreground: oklch(0.388 0.078 118.406);
--accent: oklch(0.874 0.104 149.032);
--accent-foreground: oklch(0.361 0.095 146.004);
--destructive: oklch(0.667 0.192 43.265);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.885 0.103 135.475);
--chart-1: oklch(0.885 0.103 135.475);
--chart-2: oklch(0.91 0.089 115.903);
--chart-3: oklch(0.874 0.104 149.032);
--chart-4: oklch(0.922 0.077 115.633);
--chart-5: oklch(0.888 0.107 135.51);
}