Asterisk is a shadcn/ui theme built around a blue primary color (#174887) with muted light blue accents (#d0d5dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#174887) on a blue-tinted background (#050a0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a0fblack |
| Foreground | #010509black | #fcfcfdwhite |
| Card | #ffffffwhite | #050a0fblack |
| Card foreground | #010509black | #fcfcfdwhite |
| Popover | #ffffffwhite | #050a0fblack |
| Popover foreground | #010509black | #fcfcfdwhite |
| Primary | #174887darkslateblue | #174887darkslateblue |
| Primary foreground | #d8e6f8lavender | #d8e6f8lavender |
| Secondary | #d0d5ddlightgrey | #1f2123black |
| Secondary foreground | #333c47darkslategray | #b7babesilver |
| Muted | #d8dbdfgainsboro | #202327darkslategray |
| Muted foreground | #566271dimgray | #8e9aa9darkgray |
| Accent | #d0d5ddlightgrey | #1f2123black |
| Accent foreground | #333c47darkslategray | #b7babesilver |
| Destructive | #e31902red | #fd2e17orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #174887darkslateblue | #174887darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 7.59:1 | AAA |
| Destructive | 4.76:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 7.20:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 8.28:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Asterisk in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.017 244.21);
--muted: oklch(0.89 0.006 254.993);
--muted-foreground: oklch(0.49 0.029 255.199);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.017 244.21);
--card: oklch(1 0 180);
--card-foreground: oklch(0.108 0.017 244.21);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.405 0.118 256.817);
--primary-foreground: oklch(0.92 0.029 255.104);
--secondary: oklch(0.872 0.012 255.025);
--secondary-foreground: oklch(0.352 0.022 255.21);
--accent: oklch(0.872 0.012 255.025);
--accent-foreground: oklch(0.352 0.022 255.21);
--destructive: oklch(0.582 0.23 30.327);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.405 0.118 256.817);
--chart-1: oklch(0.405 0.118 256.817);
--chart-2: oklch(0.872 0.012 255.025);
--chart-3: oklch(0.872 0.012 255.025);
--chart-4: oklch(0.896 0.01 255.01);
--chart-5: oklch(0.405 0.123 257.007);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.015 251.041);
--foreground: oklch(0.992 0.001 254.961);
--muted: oklch(0.256 0.009 255.114);
--muted-foreground: oklch(0.681 0.027 255.133);
--popover: oklch(0.14 0.015 251.041);
--popover-foreground: oklch(0.992 0.001 254.961);
--card: oklch(0.14 0.015 251.041);
--card-foreground: oklch(0.992 0.001 254.961);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.405 0.118 256.817);
--primary-foreground: oklch(0.92 0.029 255.104);
--secondary: oklch(0.247 0.004 255.04);
--secondary-foreground: oklch(0.787 0.006 254.998);
--accent: oklch(0.247 0.004 255.04);
--accent-foreground: oklch(0.787 0.006 254.998);
--destructive: oklch(0.64 0.241 30.51);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.405 0.118 256.817);
--chart-1: oklch(0.405 0.118 256.817);
--chart-2: oklch(0.247 0.004 255.04);
--chart-3: oklch(0.247 0.004 255.04);
--chart-4: oklch(0.278 0.005 255.044);
--chart-5: oklch(0.405 0.123 257.007);
}