Smiling Dormitory for shadcn/ui

Smiling Dormitory is a shadcn/ui theme built around a muted blue primary color (#6071a4) with muted blue accents (#484b61). The light mode uses a blue-tinted background (#272935). Dark mode keeps the muted blue primary (#6071a4) on a blue-tinted background (#272935).

Color palette

TokenLightDark
Background
#272935darkslategray
#272935darkslategray
Foreground
#bababasilver
#bababasilver
Card
#23252fdarkslategray
#23252fdarkslategray
Card foreground
#c7c7c7silver
#c7c7c7silver
Popover
#21222cdarkslategray
#21222cdarkslategray
Popover foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Primary
#6071a4slategray
#6071a4slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b4bacasilver
#b4bacasilver
Secondary foreground
#20232ddarkslategray
#20232ddarkslategray
Muted
#31333fdarkslategray
#31333fdarkslategray
Muted foreground
#afb2c0silver
#afb2c0silver
Accent
#484b61darkslategray
#484b61darkslategray
Accent foreground
#eaebf0lavender
#eaebf0lavender
Destructive
#d82613firebrick
#d82613firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#38393edarkslategray
#38393edarkslategray
Input
#3f4046darkslategray
#3f4046darkslategray
Ring
#6071a4slategray
#6071a4slategray

Contrast

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

Light mode
Text on background7.43:1AAA
Text on card9.06:1AAA
Primary button4.76:1AA
Secondary button8.07:1AAA
Muted text5.90:1AA
Accent7.17:1AAA
Destructive4.99:1AA
Dark mode
Text on background7.43:1AAA
Text on card9.06:1AAA
Primary button4.76:1AA
Secondary button8.07:1AAA
Muted text5.90:1AA
Accent7.17:1AAA
Destructive4.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.284 0.022 277.093);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.325 0.02 277.326);
  --muted-foreground: oklch(0.765 0.021 277.909);
  --popover: oklch(0.256 0.019 277.158);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.265 0.02 277.135);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.344 0.009 277.939);
  --input: oklch(0.373 0.01 277.93);
  --primary: oklch(0.557 0.082 269.531);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.789 0.024 271.106);
  --secondary-foreground: oklch(0.257 0.019 270.575);
  --accent: oklch(0.419 0.036 276.917);
  --accent-foreground: oklch(0.942 0.006 278.223);
  --destructive: oklch(0.569 0.213 30.515);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.557 0.082 269.531);
  --chart-1: oklch(0.557 0.082 269.531);
  --chart-2: oklch(0.789 0.024 271.106);
  --chart-3: oklch(0.419 0.036 276.917);
  --chart-4: oklch(0.815 0.021 271.157);
  --chart-5: oklch(0.552 0.091 269.25);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.284 0.022 277.093);
  --foreground: oklch(0.789 0 171.254);
  --muted: oklch(0.325 0.02 277.326);
  --muted-foreground: oklch(0.765 0.021 277.909);
  --popover: oklch(0.256 0.019 277.158);
  --popover-foreground: oklch(0.869 0 165.964);
  --card: oklch(0.265 0.02 277.135);
  --card-foreground: oklch(0.829 0 180);
  --border: oklch(0.344 0.009 277.939);
  --input: oklch(0.373 0.01 277.93);
  --primary: oklch(0.557 0.082 269.531);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.789 0.024 271.106);
  --secondary-foreground: oklch(0.257 0.019 270.575);
  --accent: oklch(0.419 0.036 276.917);
  --accent-foreground: oklch(0.942 0.006 278.223);
  --destructive: oklch(0.569 0.213 30.515);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.557 0.082 269.531);
  --chart-1: oklch(0.557 0.082 269.531);
  --chart-2: oklch(0.789 0.024 271.106);
  --chart-3: oklch(0.419 0.036 276.917);
  --chart-4: oklch(0.815 0.021 271.157);
  --chart-5: oklch(0.552 0.091 269.25);
}