Authority is a shadcn/ui theme built around a muted deep green primary color (#1d2f21) with muted deep purple accents (#2f1d2c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#1d2f21) on a neutral background (#020803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020803black |
| Foreground | #031707black | #fcfdfcwhite |
| Card | #ffffffwhite | #020803black |
| Card foreground | #031707black | #fcfdfcwhite |
| Popover | #ffffffwhite | #020803black |
| Popover foreground | #031707black | #fcfdfcwhite |
| Primary | #1d2f21darkslategray | #1d2f21darkslategray |
| Primary foreground | #b1ceb6silver | #b1ceb6silver |
| Secondary | #2f1d2cdarkslategray | #2f1d2cdarkslategray |
| Secondary foreground | #ceb1c8silver | #ceb1c8silver |
| Muted | #eddeealavender | #21121eblack |
| Muted foreground | #584153darkslategray | #bea7b9silver |
| Accent | #2f1d2cdarkslategray | #2f1d2cdarkslategray |
| Accent foreground | #ceb1c8silver | #ceb1c8silver |
| Destructive | #b34100saddlebrown | #f55a00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d2f21darkslategray | #1d2f21darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 5.71:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.31:1 | AA Large |
Paste this into your globals.css to use Authority in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.18 0.043 149.128);
--muted: oklch(0.916 0.022 332.366);
--muted-foreground: oklch(0.407 0.043 333.48);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.18 0.043 149.128);
--card: oklch(1 0 180);
--card-foreground: oklch(0.18 0.043 149.128);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.285 0.035 149.992);
--primary-foreground: oklch(0.823 0.045 151.15);
--secondary: oklch(0.261 0.036 333.943);
--secondary-foreground: oklch(0.792 0.046 332.847);
--accent: oklch(0.261 0.036 333.943);
--accent-foreground: oklch(0.792 0.046 332.847);
--destructive: oklch(0.528 0.159 41.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.285 0.035 149.992);
--chart-1: oklch(0.285 0.035 149.992);
--chart-2: oklch(0.261 0.036 333.943);
--chart-3: oklch(0.261 0.036 333.943);
--chart-4: oklch(0.291 0.042 334.03);
--chart-5: oklch(0.288 0.039 149.734);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.022 151.084);
--foreground: oklch(0.993 0.002 151.974);
--muted: oklch(0.208 0.032 334.149);
--muted-foreground: oklch(0.754 0.037 332.709);
--popover: oklch(0.123 0.022 151.084);
--popover-foreground: oklch(0.993 0.002 151.974);
--card: oklch(0.123 0.022 151.084);
--card-foreground: oklch(0.993 0.002 151.974);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.285 0.035 149.992);
--primary-foreground: oklch(0.823 0.045 151.15);
--secondary: oklch(0.261 0.036 333.943);
--secondary-foreground: oklch(0.792 0.046 332.847);
--accent: oklch(0.261 0.036 333.943);
--accent-foreground: oklch(0.792 0.046 332.847);
--destructive: oklch(0.665 0.204 41.098);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.285 0.035 149.992);
--chart-1: oklch(0.285 0.035 149.992);
--chart-2: oklch(0.261 0.036 333.943);
--chart-3: oklch(0.261 0.036 333.943);
--chart-4: oklch(0.291 0.042 334.03);
--chart-5: oklch(0.288 0.039 149.734);
}