Rug for shadcn/ui

Rug is a shadcn/ui theme built around a vivid red primary color (#b61631) with vivid orange accents (#b64b16). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#b61631) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#fefbfbsnow
#070304black
Foreground
#120205black
#fdfcfcsnow
Card
#fefbfbsnow
#070304black
Card foreground
#120205black
#fdfcfcsnow
Popover
#fefbfbsnow
#070304black
Popover foreground
#120205black
#fdfcfcsnow
Primary
#b61631firebrick
#b61631firebrick
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b61681mediumvioletred
#b61681mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4ebf1whitesmoke
#140b11black
Muted foreground
#644a5bdimgray
#b59baddarkgray
Accent
#b64b16sienna
#b64b16sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b83f0ffirebrick
#e74f13orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b61631firebrick
#b61631firebrick

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button6.68:1AA
Secondary button6.15:1AA
Muted text6.74:1AA
Accent5.23:1AA
Destructive5.59:1AA
Dark mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button6.68:1AA
Secondary button6.15:1AA
Muted text7.61:1AAA
Accent5.23:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 5.53);
  --foreground: oklch(0.129 0.036 8.071);
  --muted: oklch(0.949 0.013 337.543);
  --muted-foreground: oklch(0.442 0.044 339.157);
  --popover: oklch(0.99 0.003 5.53);
  --popover-foreground: oklch(0.129 0.036 8.071);
  --card: oklch(0.99 0.003 5.53);
  --card-foreground: oklch(0.129 0.036 8.071);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.498 0.189 20.472);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.522 0.208 346.776);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.547 0.151 42.851);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.534 0.165 38.447);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.498 0.189 20.472);
  --chart-1: oklch(0.498 0.189 20.472);
  --chart-2: oklch(0.522 0.208 346.776);
  --chart-3: oklch(0.547 0.151 42.851);
  --chart-4: oklch(0.55 0.22 346.856);
  --chart-5: oklch(0.502 0.193 21.124);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.014 5.894);
  --foreground: oklch(0.992 0.001 5.484);
  --muted: oklch(0.164 0.02 339.624);
  --muted-foreground: oklch(0.719 0.039 338.318);
  --popover: oklch(0.107 0.014 5.894);
  --popover-foreground: oklch(0.992 0.001 5.484);
  --card: oklch(0.107 0.014 5.894);
  --card-foreground: oklch(0.992 0.001 5.484);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.498 0.189 20.472);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.522 0.208 346.776);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.547 0.151 42.851);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.631 0.198 38.147);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.498 0.189 20.472);
  --chart-1: oklch(0.498 0.189 20.472);
  --chart-2: oklch(0.522 0.208 346.776);
  --chart-3: oklch(0.547 0.151 42.851);
  --chart-4: oklch(0.55 0.22 346.856);
  --chart-5: oklch(0.502 0.193 21.124);
}