Rude for shadcn/ui

Rude is a shadcn/ui theme built around a muted indigo primary color (#6b67a2) with muted green accents (#67a26b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#6b67a2) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#000000black
#fcfbfdsnow
Card
#fcfcfcsnow
#030307black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030307black
Popover foreground
#000000black
#ffffffwhite
Primary
#6b67a2slategray
#6b67a2slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a26b67indianred
#a26b67indianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8cbc9lightgrey
#361917black
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#67a26bmediumseagreen
#67a26bmediumseagreen
Accent foreground
#000000black
#000000black
Destructive
#ce3009firebrick
#e13509orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6b67a2slategray
#6b67a2slategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.12:1AA
Secondary button4.33:1AA Large
Muted text6.63:1AA
Accent6.95:1AA
Destructive5.19:1AA
Dark mode
Text on background20.16:1AAA
Text on card20.60:1AAA
Primary button5.12:1AA
Secondary button4.33:1AA Large
Muted text8.56:1AAA
Accent6.95:1AA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.867 0.032 22.667);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.543 0.091 286.009);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.585 0.071 23.963);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.657 0.101 145.859);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.557 0.199 33.426);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.543 0.091 286.009);
  --chart-1: oklch(0.543 0.091 286.009);
  --chart-2: oklch(0.585 0.071 23.963);
  --chart-3: oklch(0.657 0.101 145.859);
  --chart-4: oklch(0.612 0.066 23.719);
  --chart-5: oklch(0.535 0.102 285.44);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.013 286.984);
  --foreground: oklch(0.99 0.003 289.427);
  --muted: oklch(0.253 0.046 25.106);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.1 0.017 286.984);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.1 0.017 286.984);
  --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.543 0.091 286.009);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.585 0.071 23.963);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.657 0.101 145.859);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.595 0.213 33.336);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.543 0.091 286.009);
  --chart-1: oklch(0.543 0.091 286.009);
  --chart-2: oklch(0.585 0.071 23.963);
  --chart-3: oklch(0.657 0.101 145.859);
  --chart-4: oklch(0.612 0.066 23.719);
  --chart-5: oklch(0.535 0.102 285.44);
}