Inhibition is a shadcn/ui theme built around a muted light teal primary color (#e8edec) with muted light yellow accents (#edece8). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted light teal primary (#e8edec) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #000000black |
| Foreground | #010908black | #ffffffwhite |
| Card | #f6fdfdmintcream | #030303black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #fbfefewhite | #000000black |
| Popover foreground | #010908black | #ffffffwhite |
| Primary | #e8edeclavender | #e8edeclavender |
| Primary foreground | #485b59darkslategray | #485b59darkslategray |
| Secondary | #ece8edlavender | #ece8edlavender |
| Secondary foreground | #59485bdimgray | #59485bdimgray |
| Muted | #e6e0e6gainsboro | #1f191fblack |
| Muted foreground | #514153darkslategray | #bcacbesilver |
| Accent | #edece8linen | #edece8linen |
| Accent foreground | #22211bblack | #22211bblack |
| Destructive | #9b150ddarkred | #ec2d22crimson |
| Destructive foreground | #fce0demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8edeclavender | #e8edeclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 6.93:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 13.69:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 6.93:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 13.69:1 | AAA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Inhibition in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 188.822);
--foreground: oklch(0.127 0.017 188.148);
--muted: oklch(0.912 0.011 322.154);
--muted-foreground: oklch(0.399 0.036 322.405);
--popover: oklch(0.995 0.004 188.822);
--popover-foreground: oklch(0.127 0.017 188.148);
--card: oklch(0.99 0.007 188.732);
--card-foreground: oklch(0.101 0.014 188.148);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.942 0.005 188.777);
--primary-foreground: oklch(0.456 0.024 187.605);
--secondary: oklch(0.936 0.008 322.142);
--secondary-foreground: oklch(0.426 0.039 322.409);
--accent: oklch(0.944 0.006 100.424);
--accent-foreground: oklch(0.248 0.012 101.016);
--destructive: oklch(0.442 0.168 29.217);
--destructive-foreground: oklch(0.929 0.032 21.344);
--ring: oklch(0.942 0.005 188.777);
--chart-1: oklch(0.942 0.005 188.777);
--chart-2: oklch(0.936 0.008 322.142);
--chart-3: oklch(0.944 0.006 100.424);
--chart-4: oklch(0.96 0.005 322.13);
--chart-5: oklch(0.943 0.007 188.744);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.222 0.016 322.346);
--muted-foreground: oklch(0.764 0.03 322.247);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.942 0.005 188.777);
--primary-foreground: oklch(0.456 0.024 187.605);
--secondary: oklch(0.936 0.008 322.142);
--secondary-foreground: oklch(0.426 0.039 322.409);
--accent: oklch(0.944 0.006 100.424);
--accent-foreground: oklch(0.248 0.012 101.016);
--destructive: oklch(0.609 0.226 28.955);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.005 188.777);
--chart-1: oklch(0.942 0.005 188.777);
--chart-2: oklch(0.936 0.008 322.142);
--chart-3: oklch(0.944 0.006 100.424);
--chart-4: oklch(0.96 0.005 322.13);
--chart-5: oklch(0.943 0.007 188.744);
}