Calendar is a shadcn/ui theme built around a green primary color (#3ca437) with red accents (#a4373c). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#3ca437) on a neutral background (#030802).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #030802black |
| Foreground | #061405black | #f6f9f6whitesmoke |
| Card | #f7fdf7mintcream | #040c04black |
| Card foreground | #051004black | #f9fbf9mintcream |
| Popover | #fbfefbwhite | #030802black |
| Popover foreground | #061405black | #f6f9f6whitesmoke |
| Primary | #3ca437forestgreen | #3ca437forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #373ca4darkslateblue | #373ca4darkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4e5eclavender | #13131bblack |
| Muted foreground | #3a3b45darkslategray | #babac5silver |
| Accent | #a4373cbrown | #a4373cbrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6b1c0amaroon | #ea441forangered |
| Destructive foreground | #f8bdb0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3ca437forestgreen | #3ca437forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 3.18:1 | AA Large |
| Secondary button | 8.92:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 6.56:1 | AA |
| Destructive | 7.17:1 | AAA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 3.18:1 | AA Large |
| Secondary button | 8.92:1 | AAA |
| Muted text | 9.58:1 | AAA |
| Accent | 6.56:1 | AA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Calendar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 144.103);
--foreground: oklch(0.174 0.038 142.466);
--muted: oklch(0.922 0.01 283.782);
--muted-foreground: oklch(0.354 0.019 283.008);
--popover: oklch(0.994 0.005 144.103);
--popover-foreground: oklch(0.174 0.038 142.466);
--card: oklch(0.988 0.009 144.075);
--card-foreground: oklch(0.158 0.033 142.407);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.637 0.176 142.44);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.42 0.165 274.492);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.497 0.144 21.287);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.355 0.116 33.826);
--destructive-foreground: oklch(0.848 0.071 32.927);
--ring: oklch(0.637 0.176 142.44);
--chart-1: oklch(0.637 0.176 142.44);
--chart-2: oklch(0.42 0.165 274.492);
--chart-3: oklch(0.497 0.144 21.287);
--chart-4: oklch(0.44 0.174 274.391);
--chart-5: oklch(0.645 0.184 142.399);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.021 142.593);
--foreground: oklch(0.979 0.005 144.1);
--muted: oklch(0.192 0.015 282.524);
--muted-foreground: oklch(0.792 0.015 283.632);
--popover: oklch(0.122 0.021 142.593);
--popover-foreground: oklch(0.979 0.005 144.1);
--card: oklch(0.14 0.025 142.599);
--card-foreground: oklch(0.986 0.003 144.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.637 0.176 142.44);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.42 0.165 274.492);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.497 0.144 21.287);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.208 33.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.637 0.176 142.44);
--chart-1: oklch(0.637 0.176 142.44);
--chart-2: oklch(0.42 0.165 274.492);
--chart-3: oklch(0.497 0.144 21.287);
--chart-4: oklch(0.44 0.174 274.391);
--chart-5: oklch(0.645 0.184 142.399);
}