Crafty is a shadcn/ui theme built around a vivid light red primary color (#f5a098) with vivid light orange accents (#f5cf98). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid light red primary (#f5a098) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #0b0504black |
| Foreground | #100605black | #ffffffwhite |
| Card | #fcf8f8snow | #0b0504black |
| Card foreground | #100605black | #ffffffwhite |
| Popover | #fcf8f8snow | #0b0504black |
| Popover foreground | #100605black | #ffffffwhite |
| Primary | #f5a098lightsalmon | #f5a098lightsalmon |
| Primary foreground | #540e08maroon | #540e08maroon |
| Secondary | #f598bflightpink | #f598bflightpink |
| Secondary foreground | #540828maroon | #540828maroon |
| Muted | #f7eef1whitesmoke | #11080cblack |
| Muted foreground | #6b5b62dimgray | #a4949adarkgray |
| Accent | #f5cf98khaki | #f5cf98khaki |
| Accent foreground | #543408saddlebrown | #543408saddlebrown |
| Destructive | #d0500bchocolate | #ed5b0corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5a098lightsalmon | #f5a098lightsalmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.96:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 5.58:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 4.33:1 | AA Large |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Crafty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 23.626);
--foreground: oklch(0.136 0.021 27.828);
--muted: oklch(0.956 0.011 350.002);
--muted-foreground: oklch(0.491 0.023 350.938);
--popover: oklch(0.982 0.005 23.626);
--popover-foreground: oklch(0.136 0.021 27.828);
--card: oklch(0.982 0.005 23.626);
--card-foreground: oklch(0.136 0.021 27.828);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.789 0.103 25.333);
--primary-foreground: oklch(0.293 0.102 29.808);
--secondary: oklch(0.787 0.12 353.687);
--secondary-foreground: oklch(0.295 0.109 2.627);
--accent: oklch(0.874 0.082 75.66);
--accent-foreground: oklch(0.356 0.072 69.294);
--destructive: oklch(0.595 0.176 41.912);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.103 25.333);
--chart-1: oklch(0.789 0.103 25.333);
--chart-2: oklch(0.787 0.12 353.687);
--chart-3: oklch(0.874 0.082 75.66);
--chart-4: oklch(0.814 0.103 353.002);
--chart-5: oklch(0.788 0.107 25.418);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 26.965);
--foreground: oklch(1 0 180);
--muted: oklch(0.15 0.019 352.495);
--muted-foreground: oklch(0.681 0.021 350.517);
--popover: oklch(0.124 0.014 26.965);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.014 26.965);
--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.789 0.103 25.333);
--primary-foreground: oklch(0.293 0.102 29.808);
--secondary: oklch(0.787 0.12 353.687);
--secondary-foreground: oklch(0.295 0.109 2.627);
--accent: oklch(0.874 0.082 75.66);
--accent-foreground: oklch(0.356 0.072 69.294);
--destructive: oklch(0.655 0.195 41.676);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.103 25.333);
--chart-1: oklch(0.789 0.103 25.333);
--chart-2: oklch(0.787 0.12 353.687);
--chart-3: oklch(0.874 0.082 75.66);
--chart-4: oklch(0.814 0.103 353.002);
--chart-5: oklch(0.788 0.107 25.418);
}