Moon is a shadcn/ui theme built around a light teal primary color (#cae2da) with light pink accents (#e2cad3). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the light teal primary (#cae2da) on a teal-tinted background (#040c09).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #040c09black |
| Foreground | #05150fblack | #f7f8f8whitesmoke |
| Card | #f4fbf8mintcream | #05100cblack |
| Card foreground | #04110cblack | #f9fafaghostwhite |
| Popover | #f4fbf8mintcream | #05100cblack |
| Popover foreground | #04110cblack | #f9fafaghostwhite |
| Primary | #cae2dalightgrey | #cae2dalightgrey |
| Primary foreground | #2b5043darkslategray | #2b5043darkslategray |
| Secondary | #e2cad3thistle | #e2cad3thistle |
| Secondary foreground | #502b38darkslategray | #502b38darkslategray |
| Muted | #e9d3dbgainsboro | #2c161eblack |
| Muted foreground | #5f585bdimgray | #a7a0a2darkgray |
| Accent | #e2cad3thistle | #e2cad3thistle |
| Accent foreground | #502b38darkslategray | #502b38darkslategray |
| Destructive | #680303maroon | #e50606red |
| Destructive foreground | #fda1a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cae2dalightgrey | #cae2dalightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.12:1 | AAA |
| Text on card | 18.30:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Moon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 173.421);
--foreground: oklch(0.178 0.026 169.339);
--muted: oklch(0.887 0.026 354.411);
--muted-foreground: oklch(0.469 0.01 354.199);
--popover: oklch(0.982 0.008 173.343);
--popover-foreground: oklch(0.161 0.023 170.857);
--card: oklch(0.982 0.008 173.343);
--card-foreground: oklch(0.161 0.023 170.857);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.894 0.028 172.617);
--primary-foreground: oklch(0.398 0.048 169.273);
--secondary: oklch(0.862 0.03 354.543);
--secondary-foreground: oklch(0.34 0.057 358.161);
--accent: oklch(0.862 0.03 354.543);
--accent-foreground: oklch(0.34 0.057 358.161);
--destructive: oklch(0.328 0.132 28.771);
--destructive-foreground: oklch(0.8 0.11 19.777);
--ring: oklch(0.894 0.028 172.617);
--chart-1: oklch(0.894 0.028 172.617);
--chart-2: oklch(0.862 0.03 354.543);
--chart-3: oklch(0.862 0.03 354.543);
--chart-4: oklch(0.888 0.024 354.334);
--chart-5: oklch(0.895 0.031 172.521);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.016 173.434);
--foreground: oklch(0.978 0.002 173.521);
--muted: oklch(0.235 0.037 357.918);
--muted-foreground: oklch(0.711 0.009 353.946);
--popover: oklch(0.158 0.019 171.249);
--popover-foreground: oklch(0.985 0.001 173.539);
--card: oklch(0.158 0.019 171.249);
--card-foreground: oklch(0.985 0.001 173.539);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.894 0.028 172.617);
--primary-foreground: oklch(0.398 0.048 169.273);
--secondary: oklch(0.862 0.03 354.543);
--secondary-foreground: oklch(0.34 0.057 358.161);
--accent: oklch(0.862 0.03 354.543);
--accent-foreground: oklch(0.34 0.057 358.161);
--destructive: oklch(0.58 0.236 29.049);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.894 0.028 172.617);
--chart-1: oklch(0.894 0.028 172.617);
--chart-2: oklch(0.862 0.03 354.543);
--chart-3: oklch(0.862 0.03 354.543);
--chart-4: oklch(0.888 0.024 354.334);
--chart-5: oklch(0.895 0.031 172.521);
}