Tough for shadcn/ui

Tough is a shadcn/ui theme built around a deep red primary color (#260d11) with deep blue accents (#0d1126). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the deep red primary (#260d11) on a red-tinted background (#0a0506).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0a0506black
Foreground
#040101black
#faf5f6whitesmoke
Card
#fcf8f9snow
#0a0506black
Card foreground
#040101black
#faf5f6whitesmoke
Popover
#fcf8f9snow
#0a0506black
Popover foreground
#040101black
#faf5f6whitesmoke
Primary
#260d11black
#260d11black
Primary foreground
#d98c98palevioletred
#d98c98palevioletred
Secondary
#11260dblack
#11260dblack
Secondary foreground
#53bf40limegreen
#53bf40limegreen
Muted
#e2f0e0beige
#111f0fblack
Muted foreground
#5a5f59dimgray
#a1a6a0darkgray
Accent
#0d1126black
#0d1126black
Accent foreground
#8c98d9mediumpurple
#8c98d9mediumpurple
Destructive
#a70f01darkred
#fe2916orangered
Destructive foreground
#ffdedbmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#260d11black
#260d11black

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button7.10:1AAA
Secondary button6.79:1AA
Muted text5.53:1AA
Accent6.77:1AA
Destructive6.14:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button7.10:1AAA
Secondary button6.79:1AA
Muted text6.90:1AA
Accent6.77:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 6.703);
  --foreground: oklch(0.08 0.019 7.694);
  --muted: oklch(0.941 0.026 141.005);
  --muted-foreground: oklch(0.478 0.01 141.017);
  --popover: oklch(0.982 0.004 6.703);
  --popover-foreground: oklch(0.08 0.019 7.694);
  --card: oklch(0.982 0.004 6.703);
  --card-foreground: oklch(0.08 0.019 7.694);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.2 0.043 12.445);
  --primary-foreground: oklch(0.722 0.094 9.899);
  --secondary: oklch(0.244 0.053 140.733);
  --secondary-foreground: oklch(0.716 0.193 140.844);
  --accent: oklch(0.185 0.044 273.754);
  --accent-foreground: oklch(0.695 0.097 275.914);
  --destructive: oklch(0.463 0.183 30.326);
  --destructive-foreground: oklch(0.928 0.036 24.003);
  --ring: oklch(0.2 0.043 12.445);
  --chart-1: oklch(0.2 0.043 12.445);
  --chart-2: oklch(0.244 0.053 140.733);
  --chart-3: oklch(0.185 0.044 273.754);
  --chart-4: oklch(0.285 0.066 140.745);
  --chart-5: oklch(0.2 0.046 12.878);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.012 6.995);
  --foreground: oklch(0.974 0.005 6.733);
  --muted: oklch(0.221 0.036 140.756);
  --muted-foreground: oklch(0.72 0.009 141.036);
  --popover: oklch(0.125 0.012 6.995);
  --popover-foreground: oklch(0.974 0.005 6.733);
  --card: oklch(0.125 0.012 6.995);
  --card-foreground: oklch(0.974 0.005 6.733);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.2 0.043 12.445);
  --primary-foreground: oklch(0.722 0.094 9.899);
  --secondary: oklch(0.244 0.053 140.733);
  --secondary-foreground: oklch(0.716 0.193 140.844);
  --accent: oklch(0.185 0.044 273.754);
  --accent-foreground: oklch(0.695 0.097 275.914);
  --destructive: oklch(0.639 0.244 30.092);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.2 0.043 12.445);
  --chart-1: oklch(0.2 0.043 12.445);
  --chart-2: oklch(0.244 0.053 140.733);
  --chart-3: oklch(0.185 0.044 273.754);
  --chart-4: oklch(0.285 0.066 140.745);
  --chart-5: oklch(0.2 0.046 12.878);
}