Crafty is a shadcn/ui theme built around a vivid light orange primary color (#f9cfb8) with vivid light violet accents (#cfb8f9). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid light orange primary (#f9cfb8) on an orange-tinted background (#0c0603).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf9f7snow | #0c0603black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fcf6f3floralwhite | #100804black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf6f3floralwhite | #100804black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f9cfb8peachpuff | #f9cfb8peachpuff |
| Primary foreground | #762f0asaddlebrown | #762f0asaddlebrown |
| Secondary | #b8f9cfpaleturquoise | #b8f9cfpaleturquoise |
| Secondary foreground | #021809black | #021809black |
| Muted | #e9edealinen | #121614black |
| Muted foreground | #45544adarkslategray | #abbab0darkgray |
| Accent | #cfb8f9thistle | #cfb8f9thistle |
| Accent foreground | #2f0a76midnightblue | #2f0a76midnightblue |
| Destructive | #6f1902maroon | #f63804orangered |
| Destructive foreground | #feb8a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9cfb8peachpuff | #f9cfb8peachpuff |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 15.41:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 15.41:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Crafty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.005 50.597);
--foreground: oklch(0 0 0);
--muted: oklch(0.941 0.006 157.86);
--muted-foreground: oklch(0.43 0.025 156.692);
--popover: oklch(0.977 0.007 50.566);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.977 0.007 50.566);
--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.885 0.057 49.899);
--primary-foreground: oklch(0.401 0.109 43.945);
--secondary: oklch(0.928 0.087 155.825);
--secondary-foreground: oklch(0.184 0.042 154.076);
--accent: oklch(0.825 0.093 300.419);
--accent-foreground: oklch(0.297 0.16 287.542);
--destructive: oklch(0.358 0.123 35.17);
--destructive-foreground: oklch(0.842 0.086 36.059);
--ring: oklch(0.885 0.057 49.899);
--chart-1: oklch(0.885 0.057 49.899);
--chart-2: oklch(0.928 0.087 155.825);
--chart-3: oklch(0.825 0.093 300.419);
--chart-4: oklch(0.941 0.07 156.314);
--chart-5: oklch(0.885 0.059 49.873);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.015 58.797);
--foreground: oklch(0.992 0.001 50.644);
--muted: oklch(0.197 0.008 157.079);
--muted-foreground: oklch(0.775 0.022 157.378);
--popover: oklch(0.146 0.018 56.088);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.146 0.018 56.088);
--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.885 0.057 49.899);
--primary-foreground: oklch(0.401 0.109 43.945);
--secondary: oklch(0.928 0.087 155.825);
--secondary-foreground: oklch(0.184 0.042 154.076);
--accent: oklch(0.825 0.093 300.419);
--accent-foreground: oklch(0.297 0.16 287.542);
--destructive: oklch(0.635 0.23 33.455);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.057 49.899);
--chart-1: oklch(0.885 0.057 49.899);
--chart-2: oklch(0.928 0.087 155.825);
--chart-3: oklch(0.825 0.093 300.419);
--chart-4: oklch(0.941 0.07 156.314);
--chart-5: oklch(0.885 0.059 49.873);
}