Authorized is a shadcn/ui theme built around a teal primary color (#2f936e) with muted light teal accents (#d0dcd8). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#2f936e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #010403black | #ffffffwhite |
| Card | #fbfefdwhite | #000000black |
| Card foreground | #010403black | #ffffffwhite |
| Popover | #fbfefdwhite | #000000black |
| Popover foreground | #010403black | #ffffffwhite |
| Primary | #2f936eseagreen | #2f936eseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e4e7e6gainsboro | #171717black |
| Secondary foreground | #47524edarkslategray | #afb1b0darkgray |
| Muted | #e0ebe7gainsboro | #141f1bblack |
| Muted foreground | #4b625adimgray | #9db4abdarkgray |
| Accent | #d0dcd8lightgrey | #29322fdarkslategray |
| Accent foreground | #344640darkslategray | #c1cdc8silver |
| Destructive | #b32205firebrick | #f92f06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f936eseagreen | #2f936eseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 3.79:1 | AA Large |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.37:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 3.79:1 | AA Large |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Authorized in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 172.454);
--foreground: oklch(0.098 0.011 172.821);
--muted: oklch(0.93 0.012 172.199);
--muted-foreground: oklch(0.475 0.03 170.577);
--popover: oklch(0.995 0.004 172.454);
--popover-foreground: oklch(0.098 0.011 172.821);
--card: oklch(0.995 0.004 172.454);
--card-foreground: oklch(0.098 0.011 172.821);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.596 0.109 164.625);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.926 0.004 172.443);
--secondary-foreground: oklch(0.427 0.015 171.515);
--accent: oklch(0.885 0.014 172.093);
--accent-foreground: oklch(0.378 0.026 170.397);
--destructive: oklch(0.497 0.184 32.244);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.109 164.625);
--chart-1: oklch(0.596 0.109 164.625);
--chart-2: oklch(0.926 0.004 172.443);
--chart-3: oklch(0.885 0.014 172.093);
--chart-4: oklch(0.948 0.003 172.485);
--chart-5: oklch(0.604 0.113 164.187);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.226 0.016 170.273);
--muted-foreground: oklch(0.749 0.028 171.468);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.596 0.109 164.625);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.205 0.001 172.463);
--secondary-foreground: oklch(0.758 0.002 172.5);
--accent: oklch(0.309 0.014 171.204);
--accent-foreground: oklch(0.837 0.013 172.102);
--destructive: oklch(0.632 0.238 31.903);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.109 164.625);
--chart-1: oklch(0.596 0.109 164.625);
--chart-2: oklch(0.205 0.001 172.463);
--chart-3: oklch(0.309 0.014 171.204);
--chart-4: oklch(0.238 0.001 172.452);
--chart-5: oklch(0.604 0.113 164.187);
}