Astrologer is a shadcn/ui theme built around a green primary color (#83b752) with green accents (#52b754). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the green primary (#83b752) on a green-tinted background (#080c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #080c03black |
| Foreground | #0d1306black | #fafbf9snow |
| Card | #fcfdfbsnow | #080c03black |
| Card foreground | #0d1306black | #fafbf9snow |
| Popover | #fcfdfbsnow | #080c03black |
| Popover foreground | #0d1306black | #fafbf9snow |
| Primary | #83b752yellowgreen | #83b752yellowgreen |
| Primary foreground | #1e2b12black | #1e2b12black |
| Secondary | #b5b752darkkhaki | #b5b752darkkhaki |
| Secondary foreground | #2b2b12black | #2b2b12black |
| Muted | #e3e4d3gainsboro | #2c2c1bdarkslategray |
| Muted foreground | #4c4c48darkslategray | #b7b7b3silver |
| Accent | #52b754mediumseagreen | #52b754mediumseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #622109maroon | #eb5c28chocolate |
| Destructive foreground | #f7bca6lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #83b752yellowgreen | #83b752yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.56:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 6.67:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 7.30:1 | AAA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 7.04:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Astrologer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 129.155);
--foreground: oklch(0.176 0.028 130.408);
--muted: oklch(0.913 0.022 107.602);
--muted-foreground: oklch(0.416 0.007 107.484);
--popover: oklch(0.994 0.003 129.155);
--popover-foreground: oklch(0.176 0.028 130.408);
--card: oklch(0.994 0.003 129.155);
--card-foreground: oklch(0.176 0.028 130.408);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.72 0.143 131.796);
--primary-foreground: oklch(0.27 0.047 131.31);
--secondary: oklch(0.757 0.124 109.896);
--secondary-foreground: oklch(0.282 0.041 109.602);
--accent: oklch(0.696 0.166 143.819);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.344 0.1 38.592);
--destructive-foreground: oklch(0.843 0.075 40.879);
--ring: oklch(0.72 0.143 131.796);
--chart-1: oklch(0.72 0.143 131.796);
--chart-2: oklch(0.757 0.124 109.896);
--chart-3: oklch(0.696 0.166 143.819);
--chart-4: oklch(0.772 0.118 109.724);
--chart-5: oklch(0.729 0.151 131.998);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.023 128.133);
--foreground: oklch(0.986 0.002 129.144);
--muted: oklch(0.287 0.028 108.849);
--muted-foreground: oklch(0.779 0.006 107.314);
--popover: oklch(0.145 0.023 128.133);
--popover-foreground: oklch(0.986 0.002 129.144);
--card: oklch(0.145 0.023 128.133);
--card-foreground: oklch(0.986 0.002 129.144);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.72 0.143 131.796);
--primary-foreground: oklch(0.27 0.047 131.31);
--secondary: oklch(0.757 0.124 109.896);
--secondary-foreground: oklch(0.282 0.041 109.602);
--accent: oklch(0.696 0.166 143.819);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.654 0.188 38.764);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.72 0.143 131.796);
--chart-1: oklch(0.72 0.143 131.796);
--chart-2: oklch(0.757 0.124 109.896);
--chart-3: oklch(0.696 0.166 143.819);
--chart-4: oklch(0.772 0.118 109.724);
--chart-5: oklch(0.729 0.151 131.998);
}