Inhibition is a shadcn/ui theme built around a green primary color (#54ca2f) with green accents (#2fca59). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#54ca2f) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #020302black |
| Foreground | #081504black | #fcfdfcwhite |
| Card | #f9fcf8mintcream | #040703black |
| Card foreground | #071103black | #ffffffwhite |
| Popover | #f9fcf8mintcream | #040703black |
| Popover foreground | #071103black | #ffffffwhite |
| Primary | #54ca2flimegreen | #54ca2flimegreen |
| Primary foreground | #0f2509black | #0f2509black |
| Secondary | #a1ca2fyellowgreen | #a1ca2fyellowgreen |
| Secondary foreground | #1e2509black | #1e2509black |
| Muted | #f3f4f1whitesmoke | #0d0e0bblack |
| Muted foreground | #656660dimgray | #9d9f99darkgray |
| Accent | #2fca59mediumseagreen | #2fca59mediumseagreen |
| Accent foreground | #092510black | #092510black |
| Destructive | #920902darkred | #fb1004red |
| Destructive foreground | #fecac8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #54ca2flimegreen | #54ca2flimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.42:1 | AAA |
| Text on card | 18.58:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Inhibition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 138.333);
--foreground: oklch(0.179 0.04 137.566);
--muted: oklch(0.964 0.003 118.629);
--muted-foreground: oklch(0.508 0.009 118.891);
--popover: oklch(0.987 0.005 138.336);
--popover-foreground: oklch(0.162 0.035 136.962);
--card: oklch(0.987 0.005 138.336);
--card-foreground: oklch(0.162 0.035 136.962);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.744 0.216 139.669);
--primary-foreground: oklch(0.239 0.057 138.992);
--secondary: oklch(0.783 0.179 123.959);
--secondary-foreground: oklch(0.25 0.048 122.466);
--accent: oklch(0.738 0.2 147.508);
--accent-foreground: oklch(0.237 0.052 149.477);
--destructive: oklch(0.418 0.166 29.811);
--destructive-foreground: oklch(0.885 0.059 21.838);
--ring: oklch(0.744 0.216 139.669);
--chart-1: oklch(0.744 0.216 139.669);
--chart-2: oklch(0.783 0.179 123.959);
--chart-3: oklch(0.738 0.2 147.508);
--chart-4: oklch(0.803 0.178 123.623);
--chart-5: oklch(0.753 0.223 139.785);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.011 137.19);
--foreground: oklch(0.993 0.002 138.332);
--muted: oklch(0.162 0.005 119.145);
--muted-foreground: oklch(0.698 0.009 118.785);
--popover: oklch(0.121 0.014 137.19);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.014 137.19);
--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.744 0.216 139.669);
--primary-foreground: oklch(0.239 0.057 138.992);
--secondary: oklch(0.783 0.179 123.959);
--secondary-foreground: oklch(0.25 0.048 122.466);
--accent: oklch(0.738 0.2 147.508);
--accent-foreground: oklch(0.237 0.052 149.477);
--destructive: oklch(0.624 0.252 29.562);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.744 0.216 139.669);
--chart-1: oklch(0.744 0.216 139.669);
--chart-2: oklch(0.783 0.179 123.959);
--chart-3: oklch(0.738 0.2 147.508);
--chart-4: oklch(0.803 0.178 123.623);
--chart-5: oklch(0.753 0.223 139.785);
}