Sneaker for shadcn/ui

Sneaker is a shadcn/ui theme built around a vivid deep red primary color (#47010a) with vivid deep orange accents (#471a01). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep red primary (#47010a) on a red-tinted background (#0b0505).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0505black
Foreground
#140507black
#fdfcfcsnow
Card
#fcfcfcsnow
#0e0607black
Card foreground
#100406black
#ffffffwhite
Popover
#fcfcfcsnow
#0e0607black
Popover foreground
#100406black
#ffffffwhite
Primary
#47010amaroon
#47010amaroon
Primary foreground
#fe7c8dlightcoral
#fe7c8dlightcoral
Secondary
#47012dmaroon
#47012dmaroon
Secondary foreground
#fe7ccehotpink
#fe7ccehotpink
Muted
#f1e9eelinen
#160e13black
Muted foreground
#6d5062dimgray
#af92a4darkgray
Accent
#471a01maroon
#471a01maroon
Accent foreground
#feab7clightsalmon
#feab7clightsalmon
Destructive
#811b04maroon
#f84016orangered
Destructive foreground
#fdc6balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#47010amaroon
#47010amaroon

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.71:1AAA
Primary button6.66:1AA
Secondary button6.87:1AA
Muted text5.93:1AA
Accent7.99:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.02:1AAA
Primary button6.66:1AA
Secondary button6.87:1AA
Muted text6.76:1AA
Accent7.99:1AAA
Destructive3.66:1AA Large

CSS variables

Paste this into your globals.css to use Sneaker in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.028 10.864);
  --muted: oklch(0.942 0.011 338.973);
  --muted-foreground: oklch(0.468 0.046 340.72);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.025 9.757);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.025 9.757);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.252 0.1 21.55);
  --primary-foreground: oklch(0.739 0.159 13.457);
  --secondary: oklch(0.263 0.109 348.804);
  --secondary-foreground: oklch(0.759 0.183 343.53);
  --accent: oklch(0.283 0.077 47.044);
  --accent-foreground: oklch(0.812 0.116 50.576);
  --destructive: oklch(0.395 0.14 33.376);
  --destructive-foreground: oklch(0.872 0.065 32.878);
  --ring: oklch(0.252 0.1 21.55);
  --chart-1: oklch(0.252 0.1 21.55);
  --chart-2: oklch(0.263 0.109 348.804);
  --chart-3: oklch(0.283 0.077 47.044);
  --chart-4: oklch(0.299 0.124 349.494);
  --chart-5: oklch(0.253 0.102 21.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 8.413);
  --foreground: oklch(0.992 0.001 7.764);
  --muted: oklch(0.176 0.017 340.693);
  --muted-foreground: oklch(0.693 0.042 339.968);
  --popover: oklch(0.136 0.017 9.082);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.017 9.082);
  --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.252 0.1 21.55);
  --primary-foreground: oklch(0.739 0.159 13.457);
  --secondary: oklch(0.263 0.109 348.804);
  --secondary-foreground: oklch(0.759 0.183 343.53);
  --accent: oklch(0.283 0.077 47.044);
  --accent-foreground: oklch(0.812 0.116 50.576);
  --destructive: oklch(0.644 0.225 33.288);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.252 0.1 21.55);
  --chart-1: oklch(0.252 0.1 21.55);
  --chart-2: oklch(0.263 0.109 348.804);
  --chart-3: oklch(0.283 0.077 47.044);
  --chart-4: oklch(0.299 0.124 349.494);
  --chart-5: oklch(0.253 0.102 21.818);
}