Rouge for shadcn/ui

Rouge is a shadcn/ui theme built around a muted blue primary color (#a7acb9) with deep blue accents (#304364). The light mode uses a blue-tinted background (#172030). Dark mode keeps the muted blue primary (#a7acb9) on a blue-tinted background (#172030).

Color palette

TokenLightDark
Background
#172030darkslategray
#172030darkslategray
Foreground
#bababasilver
#bababasilver
Card
#141c29black
#141c29black
Card foreground
#c7c7c7silver
#c7c7c7silver
Popover
#121926black
#121926black
Popover foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Primary
#a7acb9darkgray
#a7acb9darkgray
Primary foreground
#141619black
#141619black
Secondary
#3f3f40darkslategray
#3f3f40darkslategray
Secondary foreground
#d8d9d9gainsboro
#d8d9d9gainsboro
Muted
#282c33darkslategray
#282c33darkslategray
Muted foreground
#a4abb7darkgray
#a4abb7darkgray
Accent
#304364darkslategray
#304364darkslategray
Accent foreground
#d9e0edgainsboro
#d9e0edgainsboro
Destructive
#ed3c21orangered
#ed3c21orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#242d3ddarkslategray
#242d3ddarkslategray
Input
#2a3446darkslategray
#2a3446darkslategray
Ring
#a7acb9darkgray
#a7acb9darkgray

Contrast

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

Light mode
Text on background8.38:1AAA
Text on card10.13:1AAA
Primary button7.99:1AAA
Secondary button7.39:1AAA
Muted text6.02:1AA
Accent7.49:1AAA
Destructive3.97:1AA Large
Dark mode
Text on background8.38:1AAA
Text on card10.13:1AAA
Primary button7.99:1AAA
Secondary button7.39:1AAA
Muted text6.02:1AA
Accent7.49:1AAA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.244 0.033 261.043);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.294 0.014 261.432);
  --muted-foreground: oklch(0.739 0.02 261.486);
  --popover: oklch(0.214 0.027 261.094);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.225 0.029 261.076);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.297 0.031 261.203);
  --input: oklch(0.325 0.035 261.187);
  --primary: oklch(0.745 0.019 268.598);
  --primary-foreground: oklch(0.2 0.008 268.484);
  --secondary: oklch(0.369 0.002 268.76);
  --secondary-foreground: oklch(0.884 0.001 268.785);
  --accent: oklch(0.383 0.061 260.922);
  --accent-foreground: oklch(0.906 0.019 261.496);
  --destructive: oklch(0.623 0.216 31.65);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.019 268.598);
  --chart-1: oklch(0.745 0.019 268.598);
  --chart-2: oklch(0.369 0.002 268.76);
  --chart-3: oklch(0.383 0.061 260.922);
  --chart-4: oklch(0.398 0.002 268.76);
  --chart-5: oklch(0.742 0.024 268.536);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.244 0.033 261.043);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.294 0.014 261.432);
  --muted-foreground: oklch(0.739 0.02 261.486);
  --popover: oklch(0.214 0.027 261.094);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.225 0.029 261.076);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.297 0.031 261.203);
  --input: oklch(0.325 0.035 261.187);
  --primary: oklch(0.745 0.019 268.598);
  --primary-foreground: oklch(0.2 0.008 268.484);
  --secondary: oklch(0.369 0.002 268.76);
  --secondary-foreground: oklch(0.884 0.001 268.785);
  --accent: oklch(0.383 0.061 260.922);
  --accent-foreground: oklch(0.906 0.019 261.496);
  --destructive: oklch(0.623 0.216 31.65);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.019 268.598);
  --chart-1: oklch(0.745 0.019 268.598);
  --chart-2: oklch(0.369 0.002 268.76);
  --chart-3: oklch(0.383 0.061 260.922);
  --chart-4: oklch(0.398 0.002 268.76);
  --chart-5: oklch(0.742 0.024 268.536);
}