Pendulum is a shadcn/ui theme built around a muted light indigo primary color (#d3d3df) with muted light green accents (#d3dfd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light indigo primary (#d3d3df) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #02020dblack | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #02020dblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #02020dblack | #ffffffwhite |
| Primary | #d3d3dflightgrey | #d3d3dflightgrey |
| Primary foreground | #36364adarkslategray | #36364adarkslategray |
| Secondary | #dfd3d3lightgrey | #dfd3d3lightgrey |
| Secondary foreground | #4a3636darkslategray | #4a3636darkslategray |
| Muted | #e8d4d4gainsboro | #2b1817black |
| Muted foreground | #4c4342darkslategray | #bdb3b3silver |
| Accent | #d3dfd3lightgrey | #d3dfd3lightgrey |
| Accent foreground | #364a36darkslategray | #364a36darkslategray |
| Destructive | #772808saddlebrown | #ee4f11orangered |
| Destructive foreground | #facab7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3d3dflightgrey | #d3d3dflightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 6.79:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 6.95:1 | AA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Pendulum in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.034 279.395);
--muted: oklch(0.887 0.022 18.746);
--muted-foreground: oklch(0.391 0.014 18.909);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.034 279.395);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.034 279.395);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.87 0.017 286.813);
--primary-foreground: oklch(0.34 0.036 285.111);
--secondary: oklch(0.876 0.013 18.597);
--secondary-foreground: oklch(0.355 0.029 19.732);
--accent: oklch(0.891 0.021 145.861);
--accent-foreground: oklch(0.385 0.042 145.11);
--destructive: oklch(0.392 0.118 38.946);
--destructive-foreground: oklch(0.877 0.06 42.662);
--ring: oklch(0.87 0.017 286.813);
--chart-1: oklch(0.87 0.017 286.813);
--chart-2: oklch(0.876 0.013 18.597);
--chart-3: oklch(0.891 0.021 145.861);
--chart-4: oklch(0.901 0.011 18.542);
--chart-5: oklch(0.867 0.02 286.743);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.233 0.032 20.823);
--muted-foreground: oklch(0.774 0.011 18.586);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.87 0.017 286.813);
--primary-foreground: oklch(0.34 0.036 285.111);
--secondary: oklch(0.876 0.013 18.597);
--secondary-foreground: oklch(0.355 0.029 19.732);
--accent: oklch(0.891 0.021 145.861);
--accent-foreground: oklch(0.385 0.042 145.11);
--destructive: oklch(0.643 0.205 37.835);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.87 0.017 286.813);
--chart-1: oklch(0.87 0.017 286.813);
--chart-2: oklch(0.876 0.013 18.597);
--chart-3: oklch(0.891 0.021 145.861);
--chart-4: oklch(0.901 0.011 18.542);
--chart-5: oklch(0.867 0.02 286.743);
}