Precious is a shadcn/ui theme built around a muted light red primary color (#f4f1f1) with muted light yellow accents (#f4f3f1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#f4f1f1) on a red-tinted background (#0c0503).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0503black |
| Foreground | #000000black | #fdfcfbsnow |
| Card | #ffffffwhite | #0c0503black |
| Card foreground | #000000black | #fdfcfbsnow |
| Popover | #ffffffwhite | #0c0503black |
| Popover foreground | #000000black | #fdfcfbsnow |
| Primary | #f4f1f1whitesmoke | #f4f1f1whitesmoke |
| Primary foreground | #625450dimgray | #625450dimgray |
| Secondary | #f4f1f2whitesmoke | #f4f1f2whitesmoke |
| Secondary foreground | #625056dimgray | #625056dimgray |
| Muted | #f4f0f2whitesmoke | #0f0b0cblack |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #f4f3f1whitesmoke | #f4f3f1whitesmoke |
| Accent foreground | #2a2822darkslategray | #2a2822darkslategray |
| Destructive | #9a0404darkred | #fa3838tomato |
| Destructive foreground | #fed2d2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f1f1whitesmoke | #f4f1f1whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 5.33:1 | AA |
| Accent | 13.25:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 7.13:1 | AAA |
| Accent | 13.25:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Precious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.004 355.739);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.961 0.002 32.661);
--primary-foreground: oklch(0.458 0.02 32.736);
--secondary: oklch(0.96 0.003 355.704);
--secondary-foreground: oklch(0.452 0.025 357.172);
--accent: oklch(0.963 0.002 86.017);
--accent-foreground: oklch(0.276 0.01 86.095);
--destructive: oklch(0.433 0.175 28.935);
--destructive-foreground: oklch(0.902 0.049 18.102);
--ring: oklch(0.961 0.002 32.661);
--chart-1: oklch(0.961 0.002 32.661);
--chart-2: oklch(0.96 0.003 355.704);
--chart-3: oklch(0.963 0.002 86.017);
--chart-4: oklch(0.984 0.001 355.65);
--chart-5: oklch(0.961 0.003 32.661);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.016 38.914);
--foreground: oklch(0.992 0.002 32.661);
--muted: oklch(0.155 0.007 356.812);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.126 0.016 38.914);
--popover-foreground: oklch(0.992 0.002 32.661);
--card: oklch(0.126 0.016 38.914);
--card-foreground: oklch(0.992 0.002 32.661);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.961 0.002 32.661);
--primary-foreground: oklch(0.458 0.02 32.736);
--secondary: oklch(0.96 0.003 355.704);
--secondary-foreground: oklch(0.452 0.025 357.172);
--accent: oklch(0.963 0.002 86.017);
--accent-foreground: oklch(0.276 0.01 86.095);
--destructive: oklch(0.644 0.229 26.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.961 0.002 32.661);
--chart-1: oklch(0.961 0.002 32.661);
--chart-2: oklch(0.96 0.003 355.704);
--chart-3: oklch(0.963 0.002 86.017);
--chart-4: oklch(0.984 0.001 355.65);
--chart-5: oklch(0.961 0.003 32.661);
}