Unruly for shadcn/ui

Unruly is a shadcn/ui theme built around a deep teal primary color (#11643d) with deep pink accents (#641138). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#11643d) on a teal-tinted background (#040b08).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040b08black
Foreground
#04150dblack
#f6f9f7whitesmoke
Card
#fbfefdwhite
#040b08black
Card foreground
#04150dblack
#f6f9f7whitesmoke
Popover
#fbfefdwhite
#040b08black
Popover foreground
#04150dblack
#f6f9f7whitesmoke
Primary
#11643ddarkslategray
#11643ddarkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#641138maroon
#641138maroon
Secondary foreground
#f2b5d2pink
#f2b5d2pink
Muted
#efecedwhitesmoke
#131012black
Muted foreground
#6f5d65dimgray
#a29098rosybrown
Accent
#641138maroon
#641138maroon
Accent foreground
#f2b5d2pink
#f2b5d2pink
Destructive
#ce2e12firebrick
#d32f12firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#11643ddarkslategray
#11643ddarkslategray

Contrast

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

Light mode
Text on background18.46:1AAA
Text on card18.46:1AAA
Primary button7.17:1AAA
Secondary button7.32:1AAA
Muted text5.20:1AA
Accent7.32:1AAA
Destructive5.19:1AA
Dark mode
Text on background18.71:1AAA
Text on card18.71:1AAA
Primary button7.17:1AAA
Secondary button7.32:1AAA
Muted text6.26:1AA
Accent7.32:1AAA
Destructive5.00: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.003 166.829);
  --foreground: oklch(0.179 0.03 162.566);
  --muted: oklch(0.945 0.004 347.008);
  --muted-foreground: oklch(0.499 0.027 348.313);
  --popover: oklch(0.994 0.003 166.829);
  --popover-foreground: oklch(0.179 0.03 162.566);
  --card: oklch(0.994 0.003 166.829);
  --card-foreground: oklch(0.179 0.03 162.566);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.447 0.099 157.047);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.34 0.12 357.82);
  --secondary-foreground: oklch(0.837 0.08 349.335);
  --accent: oklch(0.34 0.12 357.82);
  --accent-foreground: oklch(0.837 0.08 349.335);
  --destructive: oklch(0.557 0.2 32.08);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.099 157.047);
  --chart-1: oklch(0.447 0.099 157.047);
  --chart-2: oklch(0.34 0.12 357.82);
  --chart-3: oklch(0.34 0.12 357.82);
  --chart-4: oklch(0.37 0.132 358.104);
  --chart-5: oklch(0.452 0.102 156.672);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.017 166.865);
  --foreground: oklch(0.979 0.004 166.798);
  --muted: oklch(0.179 0.005 347.703);
  --muted-foreground: oklch(0.672 0.025 347.884);
  --popover: oklch(0.141 0.017 166.865);
  --popover-foreground: oklch(0.979 0.004 166.798);
  --card: oklch(0.141 0.017 166.865);
  --card-foreground: oklch(0.979 0.004 166.798);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.447 0.099 157.047);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.34 0.12 357.82);
  --secondary-foreground: oklch(0.837 0.08 349.335);
  --accent: oklch(0.34 0.12 357.82);
  --accent-foreground: oklch(0.837 0.08 349.335);
  --destructive: oklch(0.566 0.203 32.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.099 157.047);
  --chart-1: oklch(0.447 0.099 157.047);
  --chart-2: oklch(0.34 0.12 357.82);
  --chart-3: oklch(0.34 0.12 357.82);
  --chart-4: oklch(0.37 0.132 358.104);
  --chart-5: oklch(0.452 0.102 156.672);
}