Periodic is a shadcn/ui theme built around a light blue primary color (#cadce7) with light green accents (#dce7ca). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the light blue primary (#cadce7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #020608black | #f5f8fawhitesmoke |
| Card | #f6fbfdghostwhite | #030303black |
| Card foreground | #010304black | #f8fafbghostwhite |
| Popover | #f6fbfdghostwhite | #030303black |
| Popover foreground | #010304black | #f8fafbghostwhite |
| Primary | #cadce7gainsboro | #cadce7gainsboro |
| Primary foreground | #284558darkslategray | #284558darkslategray |
| Secondary | #e7cadcthistle | #e7cadcthistle |
| Secondary foreground | #582845darkslategray | #582845darkslategray |
| Muted | #efecedwhitesmoke | #131012black |
| Muted foreground | #5b575adimgray | #a8a4a6darkgray |
| Accent | #dce7cagainsboro | #dce7cagainsboro |
| Accent foreground | #455828darkolivegreen | #455828darkolivegreen |
| Destructive | #620404maroon | #f51919red |
| Destructive foreground | #fb9d9dlightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cadce7gainsboro | #cadce7gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 6.10:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Periodic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 236.477);
--foreground: oklch(0.115 0.013 228.635);
--muted: oklch(0.945 0.004 340.336);
--muted-foreground: oklch(0.463 0.006 340.511);
--popover: oklch(0.985 0.006 236.521);
--popover-foreground: oklch(0.091 0.011 228.635);
--card: oklch(0.985 0.006 236.521);
--card-foreground: oklch(0.091 0.011 228.635);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.884 0.025 236.85);
--primary-foreground: oklch(0.375 0.048 239.067);
--secondary: oklch(0.869 0.04 341.243);
--secondary-foreground: oklch(0.352 0.081 345.133);
--accent: oklch(0.912 0.041 124.993);
--accent-foreground: oklch(0.432 0.076 127.327);
--destructive: oklch(0.315 0.124 28.447);
--destructive-foreground: oklch(0.791 0.112 19.881);
--ring: oklch(0.884 0.025 236.85);
--chart-1: oklch(0.884 0.025 236.85);
--chart-2: oklch(0.869 0.04 341.243);
--chart-3: oklch(0.912 0.041 124.993);
--chart-4: oklch(0.895 0.032 341.016);
--chart-5: oklch(0.884 0.027 236.884);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.977 0.004 236.493);
--muted: oklch(0.179 0.007 341.042);
--muted-foreground: oklch(0.722 0.005 340.393);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.985 0.003 236.474);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.003 236.474);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.884 0.025 236.85);
--primary-foreground: oklch(0.375 0.048 239.067);
--secondary: oklch(0.869 0.04 341.243);
--secondary-foreground: oklch(0.352 0.081 345.133);
--accent: oklch(0.912 0.041 124.993);
--accent-foreground: oklch(0.432 0.076 127.327);
--destructive: oklch(0.617 0.244 28.419);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.025 236.85);
--chart-1: oklch(0.884 0.025 236.85);
--chart-2: oklch(0.869 0.04 341.243);
--chart-3: oklch(0.912 0.041 124.993);
--chart-4: oklch(0.895 0.032 341.016);
--chart-5: oklch(0.884 0.027 236.884);
}