Astrolabe is a shadcn/ui theme built around a light teal primary color (#cbebe7) with light red accents (#ebcbd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#cbebe7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #031614black | #f5faf9mintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #031614black | #f5faf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #031614black | #f5faf9mintcream |
| Primary | #cbebe7gainsboro | #cbebe7gainsboro |
| Primary foreground | #081614black | #081614black |
| Secondary | #ebcbd0pink | #ebcbd0pink |
| Secondary foreground | #60242csaddlebrown | #60242csaddlebrown |
| Muted | #e9e2e3gainsboro | #1d1617black |
| Muted foreground | #48373adarkslategray | #c8b7b9silver |
| Accent | #ebcbd0pink | #ebcbd0pink |
| Accent foreground | #60242csaddlebrown | #60242csaddlebrown |
| Destructive | #6d2508maroon | #f06c38tomato |
| Destructive foreground | #f9c3aelightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cbebe7gainsboro | #cbebe7gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.60:1 | AAA |
| Text on card | 18.60:1 | AAA |
| Primary button | 14.64:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 14.64:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 9.28:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.90:1 | AA |
Paste this into your globals.css to use Astrolabe in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.183 0.027 184.142);
--muted: oklch(0.918 0.008 7.973);
--muted-foreground: oklch(0.358 0.024 9.369);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.183 0.027 184.142);
--card: oklch(1 0 180);
--card-foreground: oklch(0.183 0.027 184.142);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.917 0.034 186.814);
--primary-foreground: oklch(0.188 0.02 184.852);
--secondary: oklch(0.871 0.037 8.769);
--secondary-foreground: oklch(0.352 0.087 14.605);
--accent: oklch(0.871 0.037 8.769);
--accent-foreground: oklch(0.352 0.087 14.605);
--destructive: oklch(0.37 0.109 39.225);
--destructive-foreground: oklch(0.861 0.068 42.612);
--ring: oklch(0.917 0.034 186.814);
--chart-1: oklch(0.917 0.034 186.814);
--chart-2: oklch(0.871 0.037 8.769);
--chart-3: oklch(0.871 0.037 8.769);
--chart-4: oklch(0.899 0.028 8.516);
--chart-5: oklch(0.919 0.036 186.754);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.006 187.609);
--muted: oklch(0.209 0.013 9.211);
--muted-foreground: oklch(0.794 0.019 8.336);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.006 187.609);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.006 187.609);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.917 0.034 186.814);
--primary-foreground: oklch(0.188 0.02 184.852);
--secondary: oklch(0.871 0.037 8.769);
--secondary-foreground: oklch(0.352 0.087 14.605);
--accent: oklch(0.871 0.037 8.769);
--accent-foreground: oklch(0.352 0.087 14.605);
--destructive: oklch(0.684 0.176 40.703);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.917 0.034 186.814);
--chart-1: oklch(0.917 0.034 186.814);
--chart-2: oklch(0.871 0.037 8.769);
--chart-3: oklch(0.871 0.037 8.769);
--chart-4: oklch(0.899 0.028 8.516);
--chart-5: oklch(0.919 0.036 186.754);
}