Permission is a shadcn/ui theme built around a muted green primary color (#4d895f) with neutral gray accents (#cccccc). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted green primary (#4d895f) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030704black |
| Foreground | #010502black | #ffffffwhite |
| Card | #f8fcf9mintcream | #050b06black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #050b06black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #4d895fseagreen | #4d895fseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cccccclightgrey | #2c352fdarkslategray |
| Secondary foreground | #333333darkslategray | #c4cfc7silver |
| Muted | #f0eaealinen | #0f1511black |
| Muted foreground | #625050dimgray | #9dafa2darkgray |
| Accent | #cccccclightgrey | #2c352fdarkslategray |
| Accent foreground | #333333darkslategray | #c4cfc7silver |
| Destructive | #853005saddlebrown | #f76922chocolate |
| Destructive foreground | #fdd4bfpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d895fseagreen | #4d895fseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 4.14:1 | AA Large |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 4.14:1 | AA Large |
| Secondary button | 7.88:1 | AAA |
| Muted text | 8.02:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.98:1 | AA |
Paste this into your globals.css to use Permission in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 155.806);
--foreground: oklch(0.1 0.021 155.211);
--muted: oklch(0.943 0.006 17.259);
--muted-foreground: oklch(0.451 0.024 18.076);
--popover: oklch(0.987 0.007 155.742);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.007 155.742);
--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.578 0.09 152.342);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.845 0 164.055);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(0.845 0 164.055);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.427 0.127 41.405);
--destructive-foreground: oklch(0.898 0.054 48.097);
--ring: oklch(0.578 0.09 152.342);
--chart-1: oklch(0.578 0.09 152.342);
--chart-2: oklch(0.845 0 164.055);
--chart-3: oklch(0.845 0 164.055);
--chart-4: oklch(0.869 0 165.964);
--chart-5: oklch(0.584 0.099 151.974);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.014 155.52);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.011 154.668);
--muted-foreground: oklch(0.735 0.027 155.16);
--popover: oklch(0.139 0.016 155.489);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.016 155.489);
--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.578 0.09 152.342);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.319 0.018 154.761);
--secondary-foreground: oklch(0.844 0.016 155.515);
--accent: oklch(0.319 0.018 154.761);
--accent-foreground: oklch(0.844 0.016 155.515);
--destructive: oklch(0.688 0.191 42.745);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.578 0.09 152.342);
--chart-1: oklch(0.578 0.09 152.342);
--chart-2: oklch(0.319 0.018 154.761);
--chart-3: oklch(0.319 0.018 154.761);
--chart-4: oklch(0.35 0.02 154.726);
--chart-5: oklch(0.584 0.099 151.974);
}