Pad is a shadcn/ui theme built around a muted light pink primary color (#cdc1c7) with neutral gray accents (#d7d6d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#cdc1c7) on a neutral background (#070305).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070305black |
| Foreground | #12030bblack | #f8f6f7whitesmoke |
| Card | #ffffffwhite | #070305black |
| Card foreground | #12030bblack | #f8f6f7whitesmoke |
| Popover | #ffffffwhite | #070305black |
| Popover foreground | #12030bblack | #f8f6f7whitesmoke |
| Primary | #cdc1c7silver | #cdc1c7silver |
| Primary foreground | #32292edarkslategray | #32292edarkslategray |
| Secondary | #d7d6d6lightgrey | #191517black |
| Secondary foreground | #3e3d3ddarkslategray | #b7a9b1darkgray |
| Muted | #e7cfddgainsboro | #301825black |
| Muted foreground | #554950darkslategray | #b6aab1darkgray |
| Accent | #d7d6d6lightgrey | #191517black |
| Accent foreground | #3e3d3ddarkslategray | #b7a9b1darkgray |
| Destructive | #721b03maroon | #fa5e33tomato |
| Destructive foreground | #fdbcaalightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cdc1c7silver | #cdc1c7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 7.44:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 8.08:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.71:1 | AA |
Paste this into your globals.css to use Pad in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.038 345.23);
--muted: oklch(0.879 0.032 343.494);
--muted-foreground: oklch(0.42 0.02 343.761);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.038 345.23);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.038 345.23);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.823 0.015 343.063);
--primary-foreground: oklch(0.294 0.016 343.906);
--secondary: oklch(0.876 0.001 342.648);
--secondary-foreground: oklch(0.36 0.002 342.756);
--accent: oklch(0.876 0.001 342.648);
--accent-foreground: oklch(0.36 0.002 342.756);
--destructive: oklch(0.367 0.125 35.057);
--destructive-foreground: oklch(0.851 0.079 36.032);
--ring: oklch(0.823 0.015 343.063);
--chart-1: oklch(0.823 0.015 343.063);
--chart-2: oklch(0.876 0.001 342.648);
--chart-3: oklch(0.876 0.001 342.648);
--chart-4: oklch(0.9 0.001 342.642);
--chart-5: oklch(0.821 0.02 343.196);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.017 342.591);
--foreground: oklch(0.976 0.003 342.692);
--muted: oklch(0.246 0.044 346.698);
--muted-foreground: oklch(0.75 0.017 343.179);
--popover: oklch(0.108 0.017 342.591);
--popover-foreground: oklch(0.976 0.003 342.692);
--card: oklch(0.108 0.017 342.591);
--card-foreground: oklch(0.976 0.003 342.692);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.823 0.015 343.063);
--primary-foreground: oklch(0.294 0.016 343.906);
--secondary: oklch(0.201 0.008 343.559);
--secondary-foreground: oklch(0.749 0.02 343.249);
--accent: oklch(0.201 0.008 343.559);
--accent-foreground: oklch(0.749 0.02 343.249);
--destructive: oklch(0.68 0.199 35.951);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.823 0.015 343.063);
--chart-1: oklch(0.823 0.015 343.063);
--chart-2: oklch(0.201 0.008 343.559);
--chart-3: oklch(0.201 0.008 343.559);
--chart-4: oklch(0.233 0.01 343.657);
--chart-5: oklch(0.821 0.02 343.196);
}