Unruly for shadcn/ui

Unruly is a shadcn/ui theme built around a muted deep cyan primary color (#233538) with muted deep red accents (#382723). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted deep cyan primary (#233538) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#010304black
Foreground
#010809black
#f5f9f9whitesmoke
Card
#fcfdfdwhite
#010304black
Card foreground
#010809black
#f5f9f9whitesmoke
Popover
#fcfdfdwhite
#010304black
Popover foreground
#010809black
#f5f9f9whitesmoke
Primary
#233538darkslategray
#233538darkslategray
Primary foreground
#bad0d4lightsteelblue
#bad0d4lightsteelblue
Secondary
#382723darkslategray
#382723darkslategray
Secondary foreground
#d4bebasilver
#d4bebasilver
Muted
#eee0ddantiquewhite
#221411black
Muted foreground
#544340darkslategray
#bfaeabdarkgray
Accent
#382723darkslategray
#382723darkslategray
Accent foreground
#d4bebasilver
#d4bebasilver
Destructive
#711404maroon
#e72a08orangered
Destructive foreground
#fcb7ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#233538darkslategray
#233538darkslategray

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.93:1AAA
Secondary button8.02:1AAA
Muted text7.23:1AAA
Accent8.02:1AAA
Destructive6.90:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.93:1AAA
Secondary button8.02:1AAA
Muted text8.40:1AAA
Accent8.02:1AAA
Destructive4.42: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.993 0.002 209.464);
  --foreground: oklch(0.123 0.016 205.437);
  --muted: oklch(0.916 0.016 29.535);
  --muted-foreground: oklch(0.4 0.023 29.785);
  --popover: oklch(0.993 0.002 209.464);
  --popover-foreground: oklch(0.123 0.016 205.437);
  --card: oklch(0.993 0.002 209.464);
  --card-foreground: oklch(0.123 0.016 205.437);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.316 0.024 209.638);
  --primary-foreground: oklch(0.842 0.024 209.43);
  --secondary: oklch(0.291 0.028 30.118);
  --secondary-foreground: oklch(0.818 0.026 29.607);
  --accent: oklch(0.291 0.028 30.118);
  --accent-foreground: oklch(0.818 0.026 29.607);
  --destructive: oklch(0.358 0.129 32.377);
  --destructive-foreground: oklch(0.841 0.082 30.132);
  --ring: oklch(0.316 0.024 209.638);
  --chart-1: oklch(0.316 0.024 209.638);
  --chart-2: oklch(0.291 0.028 30.118);
  --chart-3: oklch(0.291 0.028 30.118);
  --chart-4: oklch(0.32 0.032 30.152);
  --chart-5: oklch(0.318 0.027 209.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.008 206.784);
  --foreground: oklch(0.979 0.004 209.458);
  --muted: oklch(0.208 0.024 30.335);
  --muted-foreground: oklch(0.765 0.019 29.574);
  --popover: oklch(0.096 0.008 206.784);
  --popover-foreground: oklch(0.979 0.004 209.458);
  --card: oklch(0.096 0.008 206.784);
  --card-foreground: oklch(0.979 0.004 209.458);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.316 0.024 209.638);
  --primary-foreground: oklch(0.842 0.024 209.43);
  --secondary: oklch(0.291 0.028 30.118);
  --secondary-foreground: oklch(0.818 0.026 29.607);
  --accent: oklch(0.291 0.028 30.118);
  --accent-foreground: oklch(0.818 0.026 29.607);
  --destructive: oklch(0.598 0.225 31.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.024 209.638);
  --chart-1: oklch(0.316 0.024 209.638);
  --chart-2: oklch(0.291 0.028 30.118);
  --chart-3: oklch(0.291 0.028 30.118);
  --chart-4: oklch(0.32 0.032 30.152);
  --chart-5: oklch(0.318 0.027 209.722);
}