Altar is a shadcn/ui theme built around a vivid green primary color (#88ef43) with muted light green accents (#e8eae6). The light mode uses a neutral background (#f9fcf7). Dark mode keeps the vivid green primary (#88ef43) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf7mintcream | #000000black |
| Foreground | #070c04black | #ffffffwhite |
| Card | #f7fbf4whitesmoke | #030303black |
| Card foreground | #050802black | #ffffffwhite |
| Popover | #f9fcf7mintcream | #000000black |
| Popover foreground | #070c04black | #ffffffwhite |
| Primary | #88ef43yellowgreen | #88ef43yellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #e8eae6linen | #2d3428darkslategray |
| Secondary foreground | #4d5747darkslategray | #c5cec0silver |
| Muted | #e4eeddbeige | #182211black |
| Muted foreground | #424342darkslategray | #bdbdbcsilver |
| Accent | #e8eae6linen | #2d3428darkslategray |
| Accent foreground | #4d5747darkslategray | #c5cec0silver |
| Destructive | #c9520dchocolate | #dd5a0echocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #88ef43yellowgreen | #88ef43yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 14.43:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 8.30:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 4.46:1 | AA Large |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 14.43:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 8.76:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Altar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 132.412);
--foreground: oklch(0.143 0.021 131.148);
--muted: oklch(0.937 0.025 132.559);
--muted-foreground: oklch(0.382 0.002 132.406);
--popover: oklch(0.989 0.007 132.412);
--popover-foreground: oklch(0.143 0.021 131.148);
--card: oklch(0.983 0.011 132.44);
--card-foreground: oklch(0.125 0.018 131.034);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.857 0.223 135.642);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.935 0.007 132.413);
--secondary-foreground: oklch(0.443 0.028 132.851);
--accent: oklch(0.935 0.007 132.413);
--accent-foreground: oklch(0.443 0.028 132.851);
--destructive: oklch(0.587 0.167 43.586);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.223 135.642);
--chart-1: oklch(0.857 0.223 135.642);
--chart-2: oklch(0.935 0.007 132.413);
--chart-3: oklch(0.935 0.007 132.413);
--chart-4: oklch(0.957 0.004 132.393);
--chart-5: oklch(0.864 0.229 135.778);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.034 133.608);
--muted-foreground: oklch(0.798 0.002 132.377);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.857 0.223 135.642);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.314 0.023 132.936);
--secondary-foreground: oklch(0.841 0.022 132.558);
--accent: oklch(0.314 0.023 132.936);
--accent-foreground: oklch(0.841 0.022 132.558);
--destructive: oklch(0.627 0.18 43.413);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.223 135.642);
--chart-1: oklch(0.857 0.223 135.642);
--chart-2: oklch(0.314 0.023 132.936);
--chart-3: oklch(0.314 0.023 132.936);
--chart-4: oklch(0.346 0.026 132.956);
--chart-5: oklch(0.864 0.229 135.778);
}