Craftsman is a shadcn/ui theme built around a pink primary color (#b43c64) with teal accents (#3cb48c). The light mode uses a neutral background (#ffffff). Dark mode keeps the pink primary (#b43c64) on a pink-tinted background (#100408).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100408black |
| Foreground | #040102black | #ffffffwhite |
| Card | #fcfcfcsnow | #14060ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #14060ablack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #b43c64indianred | #b43c64indianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3cb48cmediumseagreen | #3cb48cmediumseagreen |
| Secondary foreground | #091b15black | #091b15black |
| Muted | #e3f2edlavender | #0d1c17black |
| Muted foreground | #494b4adarkslategray | #b4b6b5silver |
| Accent | #3cb48cmediumseagreen | #3cb48cmediumseagreen |
| Accent foreground | #091b15black | #091b15black |
| Destructive | #bc1010firebrick | #d81313crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b43c64indianred | #b43c64indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 5.57:1 | AA |
| Secondary button | 6.85:1 | AA |
| Muted text | 7.60:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 5.57:1 | AA |
| Secondary button | 6.85:1 | AA |
| Muted text | 8.64:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 5.22:1 | AA |
Paste this into your globals.css to use Craftsman in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.014 354.264);
--muted: oklch(0.948 0.016 174.077);
--muted-foreground: oklch(0.41 0.002 174.438);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.537 0.158 3.651);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.692 0.122 166.883);
--secondary-foreground: oklch(0.203 0.027 169.739);
--accent: oklch(0.692 0.122 166.883);
--accent-foreground: oklch(0.203 0.027 169.739);
--destructive: oklch(0.504 0.199 28.414);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.537 0.158 3.651);
--chart-1: oklch(0.537 0.158 3.651);
--chart-2: oklch(0.692 0.122 166.883);
--chart-3: oklch(0.692 0.122 166.883);
--chart-4: oklch(0.725 0.128 166.836);
--chart-5: oklch(0.539 0.166 4.298);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.025 355.998);
--foreground: oklch(1 0 180);
--muted: oklch(0.21 0.022 170.957);
--muted-foreground: oklch(0.774 0.002 174.52);
--popover: oklch(0.147 0.029 357.971);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.029 357.971);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.537 0.158 3.651);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.692 0.122 166.883);
--secondary-foreground: oklch(0.203 0.027 169.739);
--accent: oklch(0.692 0.122 166.883);
--accent-foreground: oklch(0.203 0.027 169.739);
--destructive: oklch(0.559 0.222 28.506);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.537 0.158 3.651);
--chart-1: oklch(0.537 0.158 3.651);
--chart-2: oklch(0.692 0.122 166.883);
--chart-3: oklch(0.692 0.122 166.883);
--chart-4: oklch(0.725 0.128 166.836);
--chart-5: oklch(0.539 0.166 4.298);
}