Periodic is a shadcn/ui theme built around a muted light green primary color (#cedecf) with muted light purple accents (#decede). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#cedecf) on a neutral background (#020803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020803black |
| Foreground | #031604black | #f8fcf8mintcream |
| Card | #fcfcfcsnow | #040c04black |
| Card foreground | #031203black | #fbfdfbsnow |
| Popover | #ffffffwhite | #020803black |
| Popover foreground | #031604black | #f8fcf8mintcream |
| Primary | #cedecflightgrey | #cedecflightgrey |
| Primary foreground | #324932darkslategray | #324932darkslategray |
| Secondary | #decedegainsboro | #decedegainsboro |
| Secondary foreground | #493248darkslategray | #493248darkslategray |
| Muted | #e2d5e2gainsboro | #2a1d2adarkslategray |
| Muted foreground | #5f4f5edimgray | #b0a0b0darkgray |
| Accent | #decedegainsboro | #decedegainsboro |
| Accent foreground | #493248darkslategray | #493248darkslategray |
| Destructive | #621d04maroon | #f54c0forangered |
| Destructive foreground | #fbb69dlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cedecflightgrey | #cedecflightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.74:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 5.35:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Periodic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.178 0.048 143.666);
--muted: oklch(0.886 0.023 326.263);
--muted-foreground: oklch(0.448 0.032 326.606);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.178 0.048 143.666);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.161 0.042 143.772);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.885 0.026 145.807);
--primary-foreground: oklch(0.378 0.048 144.948);
--secondary: oklch(0.87 0.027 326.298);
--secondary-foreground: oklch(0.352 0.05 327.121);
--accent: oklch(0.87 0.027 326.298);
--accent-foreground: oklch(0.352 0.05 327.121);
--destructive: oklch(0.338 0.105 38.203);
--destructive-foreground: oklch(0.835 0.088 40.836);
--ring: oklch(0.885 0.026 145.807);
--chart-1: oklch(0.885 0.026 145.807);
--chart-2: oklch(0.87 0.027 326.298);
--chart-3: oklch(0.87 0.027 326.298);
--chart-4: oklch(0.895 0.022 326.246);
--chart-5: oklch(0.886 0.031 145.768);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.022 144.616);
--foreground: oklch(0.987 0.007 145.999);
--muted: oklch(0.253 0.032 327.004);
--muted-foreground: oklch(0.726 0.028 326.361);
--popover: oklch(0.121 0.022 144.616);
--popover-foreground: oklch(0.987 0.007 145.999);
--card: oklch(0.139 0.025 144.605);
--card-foreground: oklch(0.993 0.003 146.027);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.885 0.026 145.807);
--primary-foreground: oklch(0.378 0.048 144.948);
--secondary: oklch(0.87 0.027 326.298);
--secondary-foreground: oklch(0.352 0.05 327.121);
--accent: oklch(0.87 0.027 326.298);
--accent-foreground: oklch(0.352 0.05 327.121);
--destructive: oklch(0.651 0.214 36.686);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.026 145.807);
--chart-1: oklch(0.885 0.026 145.807);
--chart-2: oklch(0.87 0.027 326.298);
--chart-3: oklch(0.87 0.027 326.298);
--chart-4: oklch(0.895 0.022 326.246);
--chart-5: oklch(0.886 0.031 145.768);
}