Tusk for shadcn/ui

Tusk is a shadcn/ui theme built around a vivid red primary color (#ea0628) with muted red accents (#c3b6b8). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid red primary (#ea0628) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040102black
Foreground
#0c0305black
#fbf9f9snow
Card
#fcf8f8snow
#040102black
Card foreground
#0c0305black
#fbf9f9snow
Popover
#fcf8f8snow
#040102black
Popover foreground
#0c0305black
#fbf9f9snow
Primary
#ea0628crimson
#ea0628crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d2d0d0lightgrey
#221b1cblack
Secondary foreground
#3a3637darkslategray
#bfb0b2silver
Muted
#f1eaeblinen
#150e0fblack
Muted foreground
#5f4f51dimgray
#b0a0a3darkgray
Accent
#c3b6b8silver
#442c30darkslategray
Accent foreground
#272021black
#dbc7cathistle
Destructive
#5e1508maroon
#eb3d1eorangered
Destructive foreground
#f7aea1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ea0628crimson
#ea0628crimson

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button4.62:1AA
Secondary button7.75:1AAA
Muted text6.47:1AA
Accent8.15:1AAA
Destructive7.26:1AAA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button4.62:1AA
Secondary button8.09:1AAA
Muted text7.60:1AAA
Accent7.88:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 6.711);
  --foreground: oklch(0.119 0.022 7.577);
  --muted: oklch(0.942 0.008 6.805);
  --muted-foreground: oklch(0.444 0.021 7.783);
  --popover: oklch(0.982 0.005 6.711);
  --popover-foreground: oklch(0.119 0.022 7.577);
  --card: oklch(0.982 0.005 6.711);
  --card-foreground: oklch(0.119 0.022 7.577);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.591 0.238 24.969);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.859 0.003 6.686);
  --secondary-foreground: oklch(0.338 0.005 6.951);
  --accent: oklch(0.788 0.015 7.083);
  --accent-foreground: oklch(0.253 0.011 7.692);
  --destructive: oklch(0.32 0.107 32.398);
  --destructive-foreground: oklch(0.817 0.088 30.235);
  --ring: oklch(0.591 0.238 24.969);
  --chart-1: oklch(0.591 0.238 24.969);
  --chart-2: oklch(0.859 0.003 6.686);
  --chart-3: oklch(0.788 0.015 7.083);
  --chart-4: oklch(0.883 0.003 6.668);
  --chart-5: oklch(0.597 0.242 25.423);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 7.363);
  --foreground: oklch(0.984 0.002 6.643);
  --muted: oklch(0.175 0.012 8.351);
  --muted-foreground: oklch(0.721 0.019 7.237);
  --popover: oklch(0.083 0.014 7.363);
  --popover-foreground: oklch(0.984 0.002 6.643);
  --card: oklch(0.083 0.014 7.363);
  --card-foreground: oklch(0.984 0.002 6.643);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.591 0.238 24.969);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.231 0.011 7.75);
  --secondary-foreground: oklch(0.77 0.018 7.19);
  --accent: oklch(0.324 0.035 9.33);
  --accent-foreground: oklch(0.848 0.022 7.244);
  --destructive: oklch(0.62 0.215 32.256);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.591 0.238 24.969);
  --chart-1: oklch(0.591 0.238 24.969);
  --chart-2: oklch(0.231 0.011 7.75);
  --chart-3: oklch(0.324 0.035 9.33);
  --chart-4: oklch(0.262 0.013 7.832);
  --chart-5: oklch(0.597 0.242 25.423);
}