Pence is a shadcn/ui theme built around a deep pink primary color (#2a0915) with deep blue accents (#09152a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#2a0915) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080204black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080204black | #ffffffwhite |
| Primary | #2a0915black | #2a0915black |
| Primary foreground | #e481a5palevioletred | #e481a5palevioletred |
| Secondary | #152a09black | #152a09black |
| Secondary foreground | #69d22dyellowgreen | #69d22dyellowgreen |
| Muted | #e3e4e2gainsboro | #1c1d1bblack |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #09152ablack | #09152ablack |
| Accent foreground | #81a5e4cornflowerblue | #81a5e4cornflowerblue |
| Destructive | #e01c06red | #f9230borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2a0915black | #2a0915black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.29:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.95:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 8.50:1 | AAA |
| Accent | 7.31:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Pence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.105 0.021 352.149);
--muted: oklch(0.918 0.004 133.634);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.105 0.021 352.149);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.017 352.149);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.202 0.057 0.831);
--primary-foreground: oklch(0.721 0.129 357.433);
--secondary: oklch(0.259 0.061 135.88);
--secondary-foreground: oklch(0.772 0.217 137.019);
--accent: oklch(0.198 0.046 260.577);
--accent-foreground: oklch(0.721 0.101 261.023);
--destructive: oklch(0.577 0.226 30.347);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.202 0.057 0.831);
--chart-1: oklch(0.202 0.057 0.831);
--chart-2: oklch(0.259 0.061 135.88);
--chart-3: oklch(0.198 0.046 260.577);
--chart-4: oklch(0.303 0.076 136.138);
--chart-5: oklch(0.203 0.059 1.218);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.23 0.006 133.769);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.202 0.057 0.831);
--primary-foreground: oklch(0.721 0.129 357.433);
--secondary: oklch(0.259 0.061 135.88);
--secondary-foreground: oklch(0.772 0.217 137.019);
--accent: oklch(0.198 0.046 260.577);
--accent-foreground: oklch(0.721 0.101 261.023);
--destructive: oklch(0.626 0.243 30.381);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.202 0.057 0.831);
--chart-1: oklch(0.202 0.057 0.831);
--chart-2: oklch(0.259 0.061 135.88);
--chart-3: oklch(0.198 0.046 260.577);
--chart-4: oklch(0.303 0.076 136.138);
--chart-5: oklch(0.203 0.059 1.218);
}