Alias is a shadcn/ui theme built around a muted deep orange primary color (#2c2926) with muted deep green accents (#2b2c26). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#2c2926) on an orange-tinted background (#0a0805).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0805black |
| Foreground | #0c0803black | #ffffffwhite |
| Card | #fcfcfcsnow | #0d0b07black |
| Card foreground | #080602black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0805black |
| Popover foreground | #0c0803black | #ffffffwhite |
| Primary | #2c2926darkslategray | #2c2926darkslategray |
| Primary foreground | #c7c3bdsilver | #c7c3bdsilver |
| Secondary | #2c2626darkslategray | #2c2626darkslategray |
| Secondary foreground | #c7bebdsilver | #c7bebdsilver |
| Muted | #f3edeclinen | #130c0cblack |
| Muted foreground | #695654dimgray | #ab9896rosybrown |
| Accent | #2b2c26darkslategray | #2b2c26darkslategray |
| Accent foreground | #c6c7bdsilver | #c6c7bdsilver |
| Destructive | #a4400asaddlebrown | #f37b39coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c2926darkslategray | #2c2926darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 7.04:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 7.69:1 | AAA |
Paste this into your globals.css to use Alias in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.015 84.509);
--muted: oklch(0.95 0.007 25.052);
--muted-foreground: oklch(0.471 0.025 25.511);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.139 0.015 84.509);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.122 0.013 85.066);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.284 0.008 78.195);
--primary-foreground: oklch(0.818 0.009 78.274);
--secondary: oklch(0.276 0.009 25.284);
--secondary-foreground: oklch(0.808 0.01 25.094);
--accent: oklch(0.29 0.012 111.753);
--accent-foreground: oklch(0.825 0.013 111.319);
--destructive: oklch(0.501 0.145 42.573);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.284 0.008 78.195);
--chart-1: oklch(0.284 0.008 78.195);
--chart-2: oklch(0.276 0.009 25.284);
--chart-3: oklch(0.29 0.012 111.753);
--chart-4: oklch(0.306 0.01 25.299);
--chart-5: oklch(0.286 0.011 78.13);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.008 82.23);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.012 25.722);
--muted-foreground: oklch(0.697 0.022 25.283);
--popover: oklch(0.136 0.008 82.23);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.009 79.804);
--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.284 0.008 78.195);
--primary-foreground: oklch(0.818 0.009 78.274);
--secondary: oklch(0.276 0.009 25.284);
--secondary-foreground: oklch(0.808 0.01 25.094);
--accent: oklch(0.29 0.012 111.753);
--accent-foreground: oklch(0.825 0.013 111.319);
--destructive: oklch(0.71 0.167 46.174);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.284 0.008 78.195);
--chart-1: oklch(0.284 0.008 78.195);
--chart-2: oklch(0.276 0.009 25.284);
--chart-3: oklch(0.29 0.012 111.753);
--chart-4: oklch(0.306 0.01 25.299);
--chart-5: oklch(0.286 0.011 78.13);
}