Periodical is a shadcn/ui theme built around a deep teal primary color (#0a2e1f) with deep pink accents (#2e0a19). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the deep teal primary (#0a2e1f) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #010403black |
| Foreground | #030c08black | #ffffffwhite |
| Card | #f5faf8mintcream | #030705black |
| Card foreground | #020806black | #ffffffwhite |
| Popover | #f5faf8mintcream | #030705black |
| Popover foreground | #020806black | #ffffffwhite |
| Primary | #0a2e1fblack | #0a2e1fblack |
| Primary foreground | #33d18fmediumseagreen | #33d18fmediumseagreen |
| Secondary | #2e0a19black | #2e0a19black |
| Secondary foreground | #e486adpalevioletred | #e486adpalevioletred |
| Muted | #e2d9ddgainsboro | #261d20black |
| Muted foreground | #634b55dimgray | #b49ca6darkgray |
| Accent | #2e0a19black | #2e0a19black |
| Accent foreground | #e486adpalevioletred | #e486adpalevioletred |
| Destructive | #ae200afirebrick | #de290dorangered |
| Destructive foreground | #feeeecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a2e1fblack | #0a2e1fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.07:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 4.75:1 | AA |
Paste this into your globals.css to use Periodical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 169.552);
--foreground: oklch(0.143 0.018 169.48);
--muted: oklch(0.894 0.011 350.025);
--muted-foreground: oklch(0.44 0.036 351.858);
--popover: oklch(0.98 0.006 169.491);
--popover-foreground: oklch(0.124 0.016 169.935);
--card: oklch(0.98 0.006 169.491);
--card-foreground: oklch(0.124 0.016 169.935);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.27 0.049 162.232);
--primary-foreground: oklch(0.765 0.159 160.126);
--secondary: oklch(0.214 0.061 357.724);
--secondary-foreground: oklch(0.731 0.122 354.071);
--accent: oklch(0.214 0.061 357.724);
--accent-foreground: oklch(0.731 0.122 354.071);
--destructive: oklch(0.485 0.179 31.421);
--destructive-foreground: oklch(0.961 0.017 28.033);
--ring: oklch(0.27 0.049 162.232);
--chart-1: oklch(0.27 0.049 162.232);
--chart-2: oklch(0.214 0.061 357.724);
--chart-3: oklch(0.214 0.061 357.724);
--chart-4: oklch(0.245 0.074 358.421);
--chart-5: oklch(0.272 0.051 161.893);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.01 169.891);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.016 351.453);
--muted-foreground: oklch(0.718 0.032 350.874);
--popover: oklch(0.123 0.013 169.891);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.013 169.891);
--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.27 0.049 162.232);
--primary-foreground: oklch(0.765 0.159 160.126);
--secondary: oklch(0.214 0.061 357.724);
--secondary-foreground: oklch(0.731 0.122 354.071);
--accent: oklch(0.214 0.061 357.724);
--accent-foreground: oklch(0.731 0.122 354.071);
--destructive: oklch(0.58 0.217 31.321);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.27 0.049 162.232);
--chart-1: oklch(0.27 0.049 162.232);
--chart-2: oklch(0.214 0.061 357.724);
--chart-3: oklch(0.214 0.061 357.724);
--chart-4: oklch(0.245 0.074 358.421);
--chart-5: oklch(0.272 0.051 161.893);
}