Authorisation is a shadcn/ui theme built around a light blue primary color (#b0d1e8) with light green accents (#d1e8b0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#b0d1e8) on a blue-tinted background (#05080b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05080bblack |
| Foreground | #020608black | #fcfdfdwhite |
| Card | #ffffffwhite | #05080bblack |
| Card foreground | #020608black | #fcfdfdwhite |
| Popover | #ffffffwhite | #05080bblack |
| Popover foreground | #020608black | #fcfdfdwhite |
| Primary | #b0d1e8lightblue | #b0d1e8lightblue |
| Primary foreground | #17384fdarkslategray | #17384fdarkslategray |
| Secondary | #e8b0d1plum | #e8b0d1plum |
| Secondary foreground | #4f1738darkslategray | #4f1738darkslategray |
| Muted | #e1d1dagainsboro | #2e1e28darkslategray |
| Muted foreground | #513e49darkslategray | #c1aeb9silver |
| Accent | #d1e8b0palegoldenrod | #d1e8b0palegoldenrod |
| Accent foreground | #384f17darkolivegreen | #384f17darkolivegreen |
| Destructive | #8e180bdarkred | #ef4b39tomato |
| Destructive foreground | #fbd4d0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b0d1e8lightblue | #b0d1e8lightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Authorisation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.114 0.013 230.568);
--muted: oklch(0.876 0.022 341.582);
--muted-foreground: oklch(0.388 0.031 342.78);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.013 230.568);
--card: oklch(1 0 180);
--card-foreground: oklch(0.114 0.013 230.568);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.843 0.048 239.232);
--primary-foreground: oklch(0.327 0.057 242.348);
--secondary: oklch(0.818 0.078 343.102);
--secondary-foreground: oklch(0.307 0.093 347.946);
--accent: oklch(0.9 0.078 126.3);
--accent-foreground: oklch(0.395 0.086 129.047);
--destructive: oklch(0.418 0.154 30.515);
--destructive-foreground: oklch(0.902 0.044 25.466);
--ring: oklch(0.843 0.048 239.232);
--chart-1: oklch(0.843 0.048 239.232);
--chart-2: oklch(0.818 0.078 343.102);
--chart-3: oklch(0.9 0.078 126.3);
--chart-4: oklch(0.845 0.065 342.731);
--chart-5: oklch(0.843 0.05 239.285);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.01 233.339);
--foreground: oklch(0.992 0.001 238.372);
--muted: oklch(0.26 0.03 343.503);
--muted-foreground: oklch(0.771 0.026 341.78);
--popover: oklch(0.131 0.01 233.339);
--popover-foreground: oklch(0.992 0.001 238.372);
--card: oklch(0.131 0.01 233.339);
--card-foreground: oklch(0.992 0.001 238.372);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.843 0.048 239.232);
--primary-foreground: oklch(0.327 0.057 242.348);
--secondary: oklch(0.818 0.078 343.102);
--secondary-foreground: oklch(0.307 0.093 347.946);
--accent: oklch(0.9 0.078 126.3);
--accent-foreground: oklch(0.395 0.086 129.047);
--destructive: oklch(0.642 0.203 29.929);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.843 0.048 239.232);
--chart-1: oklch(0.843 0.048 239.232);
--chart-2: oklch(0.818 0.078 343.102);
--chart-3: oklch(0.9 0.078 126.3);
--chart-4: oklch(0.845 0.065 342.731);
--chart-5: oklch(0.843 0.05 239.285);
}