Unruly for shadcn/ui

Unruly is a shadcn/ui theme built around a light red primary color (#fbe4e6) with light indigo accents (#e4e6fb). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the light red primary (#fbe4e6) on a red-tinted background (#0a0506).

Color palette

TokenLightDark
Background
#fdf6f7snow
#0a0506black
Foreground
#100405black
#ffffffwhite
Card
#fdf2f3lavenderblush
#0e0707black
Card foreground
#0c0304black
#ffffffwhite
Popover
#fdf2f3lavenderblush
#0e0707black
Popover foreground
#0c0304black
#ffffffwhite
Primary
#fbe4e6mistyrose
#fbe4e6mistyrose
Primary foreground
#981621brown
#981621brown
Secondary
#e6fbe4honeydew
#e6fbe4honeydew
Secondary foreground
#0d3e09darkgreen
#0d3e09darkgreen
Muted
#ebf6eahoneydew
#0a1509black
Muted foreground
#50544fdarkslategray
#abb0abdarkgray
Accent
#e4e6fblavender
#e4e6fblavender
Accent foreground
#162198midnightblue
#162198midnightblue
Destructive
#e62a00orangered
#ff4419orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbe4e6mistyrose
#fbe4e6mistyrose

Contrast

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

Light mode
Text on background18.96:1AAA
Text on card18.59:1AAA
Primary button7.02:1AAA
Secondary button11.29:1AAA
Muted text6.92:1AA
Accent9.99:1AAA
Destructive4.48:1AA Large
Dark mode
Text on background20.23:1AAA
Text on card19.98:1AAA
Primary button7.02:1AAA
Secondary button11.29:1AAA
Muted text8.46:1AAA
Accent9.99:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 11.421);
  --foreground: oklch(0.132 0.026 14.02);
  --muted: oklch(0.961 0.019 143.042);
  --muted-foreground: oklch(0.44 0.01 143.031);
  --popover: oklch(0.97 0.012 11.511);
  --popover-foreground: oklch(0.118 0.023 13.358);
  --card: oklch(0.97 0.012 11.511);
  --card-foreground: oklch(0.118 0.023 13.358);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.939 0.025 11.839);
  --primary-foreground: oklch(0.438 0.163 23.914);
  --secondary: oklch(0.967 0.037 142.952);
  --secondary-foreground: oklch(0.321 0.096 141.918);
  --accent: oklch(0.93 0.028 281.689);
  --accent-foreground: oklch(0.344 0.188 268.088);
  --destructive: oklch(0.595 0.224 32.24);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.025 11.839);
  --chart-1: oklch(0.939 0.025 11.839);
  --chart-2: oklch(0.967 0.037 142.952);
  --chart-3: oklch(0.93 0.028 281.689);
  --chart-4: oklch(0.983 0.019 143.046);
  --chart-5: oklch(0.938 0.026 11.864);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 12.096);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.028 142.387);
  --muted-foreground: oklch(0.752 0.009 143.081);
  --popover: oklch(0.138 0.013 12.478);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.013 12.478);
  --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.939 0.025 11.839);
  --primary-foreground: oklch(0.438 0.163 23.914);
  --secondary: oklch(0.967 0.037 142.952);
  --secondary-foreground: oklch(0.321 0.096 141.918);
  --accent: oklch(0.93 0.028 281.689);
  --accent-foreground: oklch(0.344 0.188 268.088);
  --destructive: oklch(0.66 0.229 33.373);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.025 11.839);
  --chart-1: oklch(0.939 0.025 11.839);
  --chart-2: oklch(0.967 0.037 142.952);
  --chart-3: oklch(0.93 0.028 281.689);
  --chart-4: oklch(0.983 0.019 143.046);
  --chart-5: oklch(0.938 0.026 11.864);
}