Authorization is a shadcn/ui theme built around a blue primary color (#7380dd) with yellow accents (#ddd173). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#7380dd) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020308black | #fcfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020308black | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020308black | #fcfcfdwhite |
| Primary | #7380ddcornflowerblue | #7380ddcornflowerblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #ddd173burlywood | #ddd173burlywood |
| Secondary foreground | #191606black | #191606black |
| Muted | #edead4antiquewhite | #2b2812black |
| Muted foreground | #44433cdarkslategray | #c3c2bbsilver |
| Accent | #ddd173burlywood | #ddd173burlywood |
| Accent foreground | #191606black | #191606black |
| Destructive | #ad3210firebrick | #d73e14chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7380ddcornflowerblue | #7380ddcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 5.85:1 | AA |
| Secondary button | 11.59:1 | AAA |
| Muted text | 8.17:1 | AAA |
| Accent | 11.59:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 5.85:1 | AA |
| Secondary button | 11.59:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 11.59:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Authorization in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.019 273.498);
--muted: oklch(0.933 0.029 100.785);
--muted-foreground: oklch(0.38 0.011 100.768);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.019 273.498);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.019 273.498);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.631 0.14 275.939);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.851 0.116 101.828);
--secondary-foreground: oklch(0.2 0.03 102.11);
--accent: oklch(0.851 0.116 101.828);
--accent-foreground: oklch(0.2 0.03 102.11);
--destructive: oklch(0.5 0.164 35.06);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.631 0.14 275.939);
--chart-1: oklch(0.631 0.14 275.939);
--chart-2: oklch(0.851 0.116 101.828);
--chart-3: oklch(0.851 0.116 101.828);
--chart-4: oklch(0.863 0.107 101.771);
--chart-5: oklch(0.627 0.147 275.643);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 280.301);
--muted: oklch(0.274 0.036 101.807);
--muted-foreground: oklch(0.813 0.009 100.506);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 280.301);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 280.301);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.631 0.14 275.939);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.851 0.116 101.828);
--secondary-foreground: oklch(0.2 0.03 102.11);
--accent: oklch(0.851 0.116 101.828);
--accent-foreground: oklch(0.2 0.03 102.11);
--destructive: oklch(0.586 0.196 34.878);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.631 0.14 275.939);
--chart-1: oklch(0.631 0.14 275.939);
--chart-2: oklch(0.851 0.116 101.828);
--chart-3: oklch(0.851 0.116 101.828);
--chart-4: oklch(0.863 0.107 101.771);
--chart-5: oklch(0.627 0.147 275.643);
}