Alpha is a shadcn/ui theme built around a vivid deep cyan primary color (#032e3f) with vivid deep blue accents (#03103f). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid deep cyan primary (#032e3f) on a cyan-tinted background (#070c0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #070c0eblack |
| Foreground | #020608black | #f5f8fawhitesmoke |
| Card | #fbfdfewhite | #070c0eblack |
| Card foreground | #020608black | #f5f8fawhitesmoke |
| Popover | #fbfdfewhite | #070c0eblack |
| Popover foreground | #020608black | #f5f8fawhitesmoke |
| Primary | #032e3fdarkslategray | #032e3fdarkslategray |
| Primary foreground | #1ab6f4deepskyblue | #1ab6f4deepskyblue |
| Secondary | #033f32darkslategray | #033f32darkslategray |
| Secondary foreground | #1af4c5turquoise | #1af4c5turquoise |
| Muted | #f1f4f3whitesmoke | #0b0e0eblack |
| Muted foreground | #536a65dimgray | #95aca7darkgray |
| Accent | #03103fmidnightblue | #03103fmidnightblue |
| Accent foreground | #7b97f9cornflowerblue | #7b97f9cornflowerblue |
| Destructive | #ad0401darkred | #f90501red |
| Destructive foreground | #ffe1e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #032e3fdarkslategray | #032e3fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 6.14:1 | AA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Alpha in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 223.152);
--foreground: oklch(0.118 0.012 217.643);
--muted: oklch(0.964 0.003 181.978);
--muted-foreground: oklch(0.503 0.028 180.422);
--popover: oklch(0.993 0.002 223.152);
--popover-foreground: oklch(0.118 0.012 217.643);
--card: oklch(0.993 0.002 223.152);
--card-foreground: oklch(0.118 0.012 217.643);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.284 0.054 230.327);
--primary-foreground: oklch(0.732 0.146 232.665);
--secondary: oklch(0.33 0.062 173.058);
--secondary-foreground: oklch(0.863 0.165 171.689);
--accent: oklch(0.202 0.092 264.744);
--accent-foreground: oklch(0.698 0.147 270.542);
--destructive: oklch(0.47 0.191 29.392);
--destructive-foreground: oklch(0.934 0.033 18.921);
--ring: oklch(0.284 0.054 230.327);
--chart-1: oklch(0.284 0.054 230.327);
--chart-2: oklch(0.33 0.062 173.058);
--chart-3: oklch(0.202 0.092 264.744);
--chart-4: oklch(0.378 0.071 172.481);
--chart-5: oklch(0.285 0.056 230.575);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.01 222.373);
--foreground: oklch(0.978 0.004 223.169);
--muted: oklch(0.161 0.005 181.229);
--muted-foreground: oklch(0.725 0.026 181.034);
--popover: oklch(0.148 0.01 222.373);
--popover-foreground: oklch(0.978 0.004 223.169);
--card: oklch(0.148 0.01 222.373);
--card-foreground: oklch(0.978 0.004 223.169);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.284 0.054 230.327);
--primary-foreground: oklch(0.732 0.146 232.665);
--secondary: oklch(0.33 0.062 173.058);
--secondary-foreground: oklch(0.863 0.165 171.689);
--accent: oklch(0.202 0.092 264.744);
--accent-foreground: oklch(0.698 0.147 270.542);
--destructive: oklch(0.617 0.252 29.334);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.284 0.054 230.327);
--chart-1: oklch(0.284 0.054 230.327);
--chart-2: oklch(0.33 0.062 173.058);
--chart-3: oklch(0.202 0.092 264.744);
--chart-4: oklch(0.378 0.071 172.481);
--chart-5: oklch(0.285 0.056 230.575);
}