Old Pink is a shadcn/ui theme built around a light violet primary color (#ddc8ee) with muted light violet accents (#cfc8d5). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#ddc8ee) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #050307black |
| Foreground | #030104black | #ffffffwhite |
| Card | #faf8fcghostwhite | #050307black |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #faf8fcghostwhite | #050307black |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #ddc8eethistle | #ddc8eethistle |
| Primary foreground | #451f65indigo | #451f65indigo |
| Secondary | #cfc8d5lightgrey | #271f2ddarkslategray |
| Secondary foreground | #362e3ddarkslategray | #c0b4cbsilver |
| Muted | #dcd4e2gainsboro | #241d2bdarkslategray |
| Muted foreground | #48454adarkslategray | #b8b5basilver |
| Accent | #cfc8d5lightgrey | #271f2ddarkslategray |
| Accent foreground | #362e3ddarkslategray | #c0b4cbsilver |
| Destructive | #9b2203darkred | #fa4a1eorangered |
| Destructive foreground | #fedbd2bisque | #ffffffwhite |
| Border | #e8e7e9lavender | #242325darkslategray |
| Input | #e8e7e9lavender | #242325darkslategray |
| Ring | #ddc8eethistle | #ddc8eethistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Old Pink in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 309.735);
--foreground: oklch(0.08 0.02 311.666);
--muted: oklch(0.881 0.021 309.549);
--muted-foreground: oklch(0.394 0.01 309.526);
--popover: oklch(0.982 0.005 309.735);
--popover-foreground: oklch(0.08 0.02 311.666);
--card: oklch(0.982 0.005 309.735);
--card-foreground: oklch(0.08 0.02 311.666);
--border: oklch(0.93 0.002 309.764);
--input: oklch(0.93 0.002 309.764);
--primary: oklch(0.862 0.056 309.145);
--primary-foreground: oklch(0.331 0.12 305.261);
--secondary: oklch(0.842 0.02 309.547);
--secondary-foreground: oklch(0.316 0.028 308.895);
--accent: oklch(0.842 0.02 309.547);
--accent-foreground: oklch(0.316 0.028 308.895);
--destructive: oklch(0.451 0.161 33.618);
--destructive-foreground: oklch(0.918 0.041 34.323);
--ring: oklch(0.862 0.056 309.145);
--chart-1: oklch(0.862 0.056 309.145);
--chart-2: oklch(0.842 0.02 309.547);
--chart-3: oklch(0.842 0.02 309.547);
--chart-4: oklch(0.867 0.017 309.592);
--chart-5: oklch(0.861 0.059 309.107);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.014 310.83);
--foreground: oklch(1 0 180);
--muted: oklch(0.244 0.029 308.612);
--muted-foreground: oklch(0.776 0.009 309.674);
--popover: oklch(0.107 0.014 310.83);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.014 310.83);
--card-foreground: oklch(1 0 180);
--border: oklch(0.257 0.004 309.619);
--input: oklch(0.257 0.004 309.619);
--primary: oklch(0.862 0.056 309.145);
--primary-foreground: oklch(0.331 0.12 305.261);
--secondary: oklch(0.255 0.027 308.716);
--secondary-foreground: oklch(0.787 0.035 309.349);
--accent: oklch(0.255 0.027 308.716);
--accent-foreground: oklch(0.787 0.035 309.349);
--destructive: oklch(0.658 0.219 34.333);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.056 309.145);
--chart-1: oklch(0.862 0.056 309.145);
--chart-2: oklch(0.255 0.027 308.716);
--chart-3: oklch(0.255 0.027 308.716);
--chart-4: oklch(0.284 0.032 308.662);
--chart-5: oklch(0.861 0.059 309.107);
}