Pendulum is a shadcn/ui theme built around a muted purple primary color (#b695c1) with muted teal accents (#95c1b6). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted purple primary (#b695c1) on a purple-tinted background (#0a040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #0a040cblack |
| Foreground | #000000black | #fbf8fcghostwhite |
| Card | #f9f3fbghostwhite | #0d0510black |
| Card foreground | #000000black | #fdfbfdsnow |
| Popover | #fbf7fdghostwhite | #0a040cblack |
| Popover foreground | #000000black | #fbf8fcghostwhite |
| Primary | #b695c1darkgray | #b695c1darkgray |
| Primary foreground | #140d16black | #140d16black |
| Secondary | #c1b695tan | #c1b695tan |
| Secondary foreground | #16140dblack | #16140dblack |
| Muted | #efeadcantiquewhite | #231e10black |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #95c1b6darkgray | #95c1b6darkgray |
| Accent foreground | #0d1614black | #0d1614black |
| Destructive | #c13e06firebrick | #f96c2ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b695c1darkgray | #b695c1darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 9.09:1 | AAA |
| Muted text | 8.62:1 | AAA |
| Accent | 9.24:1 | AAA |
| Destructive | 5.30:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 9.09:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 9.24:1 | AAA |
| Destructive | 7.18:1 | AAA |
Paste this into your globals.css to use Pendulum in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 317.749);
--foreground: oklch(0 0 0);
--muted: oklch(0.937 0.019 91.575);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.981 0.008 317.749);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.972 0.012 317.742);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.714 0.072 317.593);
--primary-foreground: oklch(0.174 0.022 317.547);
--secondary: oklch(0.776 0.046 91.787);
--secondary-foreground: oklch(0.192 0.014 91.812);
--accent: oklch(0.776 0.049 177.922);
--accent-foreground: oklch(0.192 0.015 177.487);
--destructive: oklch(0.548 0.176 38.174);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.714 0.072 317.593);
--chart-1: oklch(0.714 0.072 317.593);
--chart-2: oklch(0.776 0.046 91.787);
--chart-3: oklch(0.776 0.049 177.922);
--chart-4: oklch(0.797 0.042 91.763);
--chart-5: oklch(0.712 0.081 317.57);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.026 319.35);
--foreground: oklch(0.982 0.006 317.753);
--muted: oklch(0.236 0.025 91.734);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.121 0.026 319.35);
--popover-foreground: oklch(0.982 0.006 317.753);
--card: oklch(0.134 0.03 318.326);
--card-foreground: oklch(0.991 0.003 317.758);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.714 0.072 317.593);
--primary-foreground: oklch(0.174 0.022 317.547);
--secondary: oklch(0.776 0.046 91.787);
--secondary-foreground: oklch(0.192 0.014 91.812);
--accent: oklch(0.776 0.049 177.922);
--accent-foreground: oklch(0.192 0.015 177.487);
--destructive: oklch(0.695 0.187 41.334);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.714 0.072 317.593);
--chart-1: oklch(0.714 0.072 317.593);
--chart-2: oklch(0.776 0.046 91.787);
--chart-3: oklch(0.776 0.049 177.922);
--chart-4: oklch(0.797 0.042 91.763);
--chart-5: oklch(0.712 0.081 317.57);
}