Crafty for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button7.19:1AAA
Secondary button7.04:1AAA
Muted text5.58:1AA
Accent7.61:1AAA
Destructive4.33:1AA Large
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button7.19:1AAA
Secondary button7.04:1AAA
Muted text6.83:1AA
Accent7.61:1AAA
Destructive3.42:1AA Large

CSS variables

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);
}