Precious is a shadcn/ui theme built around an orange primary color (#d7b5a8) with violet accents (#b5a8d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#d7b5a8) on an orange-tinted background (#0f0806).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0806black |
| Foreground | #040201black | #faf6f5whitesmoke |
| Card | #ffffffwhite | #0f0806black |
| Card foreground | #040201black | #faf6f5whitesmoke |
| Popover | #ffffffwhite | #0f0806black |
| Popover foreground | #040201black | #faf6f5whitesmoke |
| Primary | #d7b5a8tan | #d7b5a8tan |
| Primary foreground | #342018black | #342018black |
| Secondary | #a8d7b5silver | #a8d7b5silver |
| Secondary foreground | #183420darkslategray | #183420darkslategray |
| Muted | #ebefecwhitesmoke | #101411black |
| Muted foreground | #474847darkslategray | #b7b8b7silver |
| Accent | #b5a8d7lightsteelblue | #b5a8d7lightsteelblue |
| Accent foreground | #201834midnightblue | #201834midnightblue |
| Destructive | #b2340afirebrick | #f36435tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7b5a8tan | #d7b5a8tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 18.48:1 | AAA |
| Text on card | 18.48:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 9.33:1 | AAA |
| Accent | 7.66:1 | AAA |
| Destructive | 6.70:1 | AA |
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.089 0.015 54.774);
--muted: oklch(0.949 0.007 155.063);
--muted-foreground: oklch(0.4 0.003 155.075);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.089 0.015 54.774);
--card: oklch(1 0 180);
--card-foreground: oklch(0.089 0.015 54.774);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.799 0.044 42.736);
--primary-foreground: oklch(0.268 0.035 42.367);
--secondary: oklch(0.836 0.068 153.589);
--secondary-foreground: oklch(0.298 0.051 151.445);
--accent: oklch(0.758 0.068 297.735);
--accent-foreground: oklch(0.235 0.054 295.002);
--destructive: oklch(0.512 0.169 36.14);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.799 0.044 42.736);
--chart-1: oklch(0.799 0.044 42.736);
--chart-2: oklch(0.836 0.068 153.589);
--chart-3: oklch(0.758 0.068 297.735);
--chart-4: oklch(0.856 0.06 153.833);
--chart-5: oklch(0.799 0.047 42.712);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.013 46.837);
--foreground: oklch(0.976 0.004 43.093);
--muted: oklch(0.186 0.01 154.178);
--muted-foreground: oklch(0.782 0.002 155.141);
--popover: oklch(0.144 0.013 46.837);
--popover-foreground: oklch(0.976 0.004 43.093);
--card: oklch(0.144 0.013 46.837);
--card-foreground: oklch(0.976 0.004 43.093);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.799 0.044 42.736);
--primary-foreground: oklch(0.268 0.035 42.367);
--secondary: oklch(0.836 0.068 153.589);
--secondary-foreground: oklch(0.298 0.051 151.445);
--accent: oklch(0.758 0.068 297.735);
--accent-foreground: oklch(0.235 0.054 295.002);
--destructive: oklch(0.678 0.186 38.16);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.799 0.044 42.736);
--chart-1: oklch(0.799 0.044 42.736);
--chart-2: oklch(0.836 0.068 153.589);
--chart-3: oklch(0.758 0.068 297.735);
--chart-4: oklch(0.856 0.06 153.833);
--chart-5: oklch(0.799 0.047 42.712);
}