Observatory is a shadcn/ui theme built around a vivid deep green primary color (#025a0a) with vivid deep purple accents (#5a0252). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#025a0a) on a green-tinted background (#070e07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070e07black |
| Foreground | #020803black | #f8fcf8mintcream |
| Card | #ffffffwhite | #070e07black |
| Card foreground | #020803black | #f8fcf8mintcream |
| Popover | #ffffffwhite | #070e07black |
| Popover foreground | #020803black | #f8fcf8mintcream |
| Primary | #025a0adarkgreen | #025a0adarkgreen |
| Primary foreground | #2efa3flimegreen | #2efa3flimegreen |
| Secondary | #5a0252indigo | #5a0252indigo |
| Secondary foreground | #fc92f3violet | #fc92f3violet |
| Muted | #f1eff1whitesmoke | #100e10black |
| Muted foreground | #473846darkslategray | #c7b8c6silver |
| Accent | #5a0252indigo | #5a0252indigo |
| Accent foreground | #fc92f3violet | #fc92f3violet |
| Destructive | #c03207firebrick | #ec3e09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #025a0adarkgreen | #025a0adarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 6.74:1 | AA |
| Muted text | 9.52:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 5.67:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 6.74:1 | AA |
| Muted text | 10.14:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Observatory in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.023 146.713);
--muted: oklch(0.953 0.003 328.102);
--muted-foreground: oklch(0.363 0.031 328.929);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.023 146.713);
--card: oklch(1 0 180);
--card-foreground: oklch(0.122 0.023 146.713);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.405 0.132 143.347);
--primary-foreground: oklch(0.858 0.269 143.563);
--secondary: oklch(0.323 0.143 332.543);
--secondary-foreground: oklch(0.803 0.175 330.133);
--accent: oklch(0.323 0.143 332.543);
--accent-foreground: oklch(0.803 0.175 330.133);
--destructive: oklch(0.534 0.184 34.83);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.405 0.132 143.347);
--chart-1: oklch(0.405 0.132 143.347);
--chart-2: oklch(0.323 0.143 332.543);
--chart-3: oklch(0.323 0.143 332.543);
--chart-4: oklch(0.36 0.159 332.629);
--chart-5: oklch(0.409 0.135 143.316);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.018 147.084);
--foreground: oklch(0.986 0.006 148.005);
--muted: oklch(0.168 0.005 328.39);
--muted-foreground: oklch(0.798 0.026 328.397);
--popover: oklch(0.152 0.018 147.084);
--popover-foreground: oklch(0.986 0.006 148.005);
--card: oklch(0.152 0.018 147.084);
--card-foreground: oklch(0.986 0.006 148.005);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.405 0.132 143.347);
--primary-foreground: oklch(0.858 0.269 143.563);
--secondary: oklch(0.323 0.143 332.543);
--secondary-foreground: oklch(0.803 0.175 330.133);
--accent: oklch(0.323 0.143 332.543);
--accent-foreground: oklch(0.803 0.175 330.133);
--destructive: oklch(0.622 0.217 34.554);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.405 0.132 143.347);
--chart-1: oklch(0.405 0.132 143.347);
--chart-2: oklch(0.323 0.143 332.543);
--chart-3: oklch(0.323 0.143 332.543);
--chart-4: oklch(0.36 0.159 332.629);
--chart-5: oklch(0.409 0.135 143.316);
}