Unruly for shadcn/ui

Unruly is a shadcn/ui theme built around a vivid deep teal primary color (#067474) with vivid deep red accents (#740606). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid deep teal primary (#067474) on a teal-tinted background (#060e0e).

Color palette

TokenLightDark
Background
#fbfefewhite
#060e0eblack
Foreground
#051414black
#ffffffwhite
Card
#fbfefewhite
#060e0eblack
Card foreground
#051414black
#ffffffwhite
Popover
#fbfefewhite
#060e0eblack
Popover foreground
#051414black
#ffffffwhite
Primary
#067474teal
#067474teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#740606maroon
#740606maroon
Secondary foreground
#fbb1b1lightpink
#fbb1b1lightpink
Muted
#f4ebeblinen
#140b0bblack
Muted foreground
#544040darkslategray
#bfababdarkgray
Accent
#740606maroon
#740606maroon
Accent foreground
#fbb1b1lightpink
#fbb1b1lightpink
Destructive
#9d2501firebrick
#fe5725tomato
Destructive foreground
#ffdcd1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#067474teal
#067474teal

Contrast

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

Light mode
Text on background18.50:1AAA
Text on card18.50:1AAA
Primary button5.56:1AA
Secondary button6.77:1AA
Muted text8.21:1AAA
Accent6.77:1AA
Destructive6.05:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button5.56:1AA
Secondary button6.77:1AA
Muted text8.91:1AAA
Accent6.77:1AA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 197.119);
  --foreground: oklch(0.179 0.022 195.394);
  --muted: oklch(0.947 0.01 17.338);
  --muted-foreground: oklch(0.392 0.029 18.465);
  --popover: oklch(0.994 0.002 197.119);
  --popover-foreground: oklch(0.179 0.022 195.394);
  --card: oklch(0.994 0.002 197.119);
  --card-foreground: oklch(0.179 0.022 195.394);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.508 0.085 194.8);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.355 0.14 28.416);
  --secondary-foreground: oklch(0.831 0.086 19.055);
  --accent: oklch(0.355 0.14 28.416);
  --accent-foreground: oklch(0.831 0.086 19.055);
  --destructive: oklch(0.459 0.161 34.84);
  --destructive-foreground: oklch(0.92 0.042 37.603);
  --ring: oklch(0.508 0.085 194.8);
  --chart-1: oklch(0.508 0.085 194.8);
  --chart-2: oklch(0.355 0.14 28.416);
  --chart-3: oklch(0.355 0.14 28.416);
  --chart-4: oklch(0.386 0.153 28.514);
  --chart-5: oklch(0.513 0.087 194.79);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.014 195.829);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.161 0.017 19.067);
  --muted-foreground: oklch(0.758 0.024 17.695);
  --popover: oklch(0.157 0.014 195.829);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.014 195.829);
  --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.508 0.085 194.8);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.355 0.14 28.416);
  --secondary-foreground: oklch(0.831 0.086 19.055);
  --accent: oklch(0.355 0.14 28.416);
  --accent-foreground: oklch(0.831 0.086 19.055);
  --destructive: oklch(0.678 0.211 36.33);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.508 0.085 194.8);
  --chart-1: oklch(0.508 0.085 194.8);
  --chart-2: oklch(0.355 0.14 28.416);
  --chart-3: oklch(0.355 0.14 28.416);
  --chart-4: oklch(0.386 0.153 28.514);
  --chart-5: oklch(0.513 0.087 194.79);
}