Part is a shadcn/ui theme built around a vivid deep orange primary color (#7b4c0f) with vivid deep yellow accents (#737b0f). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid deep orange primary (#7b4c0f) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #070503black |
| Foreground | #000000black | #fbfaf9snow |
| Card | #fdfaf7snow | #0b0805black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fefdfbsnow | #070503black |
| Popover foreground | #000000black | #fbfaf9snow |
| Primary | #7b4c0fsaddlebrown | #7b4c0fsaddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7b160fmaroon | #7b160fmaroon |
| Secondary foreground | #f8c7c4pink | #f8c7c4pink |
| Muted | #e5cecdlightgrey | #321c1ablack |
| Muted foreground | #564d4ddarkslategray | #b2a9a9darkgray |
| Accent | #737b0folive | #737b0folive |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c52f11firebrick | #ee583atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b4c0fsaddlebrown | #7b4c0fsaddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.47:1 | AA |
| Accent | 4.61:1 | AA |
| Destructive | 5.53:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 4.61:1 | AA |
| Destructive | 6.08:1 | AA |
Paste this into your globals.css to use Part in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 74.938);
--foreground: oklch(0 0 0);
--muted: oklch(0.87 0.026 22.566);
--muted-foreground: oklch(0.43 0.012 22.553);
--popover: oklch(0.994 0.003 74.938);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 74.921);
--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.46 0.095 66.999);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.38 0.136 29.255);
--secondary-foreground: oklch(0.872 0.055 23.031);
--accent: oklch(0.557 0.12 113.834);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.541 0.19 32.715);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.46 0.095 66.999);
--chart-1: oklch(0.46 0.095 66.999);
--chart-2: oklch(0.38 0.136 29.255);
--chart-3: oklch(0.557 0.12 113.834);
--chart-4: oklch(0.408 0.148 29.325);
--chart-5: oklch(0.463 0.097 66.395);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.01 80.336);
--foreground: oklch(0.985 0.001 74.947);
--muted: oklch(0.255 0.037 24.362);
--muted-foreground: oklch(0.743 0.011 22.378);
--popover: oklch(0.119 0.01 80.336);
--popover-foreground: oklch(0.985 0.001 74.947);
--card: oklch(0.137 0.011 80.217);
--card-foreground: oklch(0.993 0.001 74.95);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.46 0.095 66.999);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.38 0.136 29.255);
--secondary-foreground: oklch(0.872 0.055 23.031);
--accent: oklch(0.557 0.12 113.834);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.655 0.191 33.202);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.46 0.095 66.999);
--chart-1: oklch(0.46 0.095 66.999);
--chart-2: oklch(0.38 0.136 29.255);
--chart-3: oklch(0.557 0.12 113.834);
--chart-4: oklch(0.408 0.148 29.325);
--chart-5: oklch(0.463 0.097 66.395);
}