Silly for shadcn/ui

Silly is a shadcn/ui theme built around a neutral gray primary color (#9e9a9b) with neutral gray accents (#e4e2e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#9e9a9b) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0407black
Foreground
#090105black
#fbf9fasnow
Card
#fcfcfcsnow
#0f060ablack
Card foreground
#050102black
#fdfcfcsnow
Popover
#fcfcfcsnow
#0f060ablack
Popover foreground
#050102black
#fdfcfcsnow
Primary
#9e9a9bdarkgray
#9e9a9bdarkgray
Primary foreground
#030203black
#030203black
Secondary
#e4e2e3gainsboro
#1a1919black
Secondary foreground
#4b484adarkslategray
#b3b2b2darkgray
Muted
#efdce5mistyrose
#231019black
Muted foreground
#656163dimgray
#9e9a9bdarkgray
Accent
#e4e2e3gainsboro
#1a1919black
Accent foreground
#4b484adarkslategray
#b3b2b2darkgray
Destructive
#861e09darkred
#e6330forangered
Destructive foreground
#fbcec5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9e9a9bdarkgray
#9e9a9bdarkgray

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.31:1AAA
Primary button7.41:1AAA
Secondary button7.01:1AAA
Muted text4.65:1AA
Accent7.01:1AAA
Destructive6.69:1AA
Dark mode
Text on background19.33:1AAA
Text on card19.54:1AAA
Primary button7.41:1AAA
Secondary button8.28:1AAA
Muted text6.51:1AA
Accent8.28:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.031 347.335);
  --muted: oklch(0.912 0.024 348.505);
  --muted-foreground: oklch(0.498 0.006 348.126);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.08 0.024 347.335);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.08 0.024 347.335);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.689 0.005 348.022);
  --primary-foreground: oklch(0.092 0 347.803);
  --secondary: oklch(0.915 0.001 347.854);
  --secondary-foreground: oklch(0.407 0.004 348.113);
  --accent: oklch(0.915 0.001 347.854);
  --accent-foreground: oklch(0.407 0.004 348.113);
  --destructive: oklch(0.408 0.143 32.77);
  --destructive-foreground: oklch(0.889 0.052 31.276);
  --ring: oklch(0.689 0.005 348.022);
  --chart-1: oklch(0.689 0.005 348.022);
  --chart-2: oklch(0.915 0.001 347.854);
  --chart-3: oklch(0.915 0.001 347.854);
  --chart-4: oklch(0.938 0.001 347.842);
  --chart-5: oklch(0.685 0.013 348.337);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.017 347.666);
  --foreground: oklch(0.984 0.002 347.881);
  --muted: oklch(0.204 0.035 352.136);
  --muted-foreground: oklch(0.689 0.005 348.022);
  --popover: oklch(0.137 0.019 349.19);
  --popover-foreground: oklch(0.992 0.001 347.846);
  --card: oklch(0.137 0.019 349.19);
  --card-foreground: oklch(0.992 0.001 347.846);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.689 0.005 348.022);
  --primary-foreground: oklch(0.092 0 347.803);
  --secondary: oklch(0.215 0.001 347.928);
  --secondary-foreground: oklch(0.764 0.002 347.883);
  --accent: oklch(0.215 0.001 347.928);
  --accent-foreground: oklch(0.764 0.002 347.883);
  --destructive: oklch(0.602 0.219 32.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.005 348.022);
  --chart-1: oklch(0.689 0.005 348.022);
  --chart-2: oklch(0.215 0.001 347.928);
  --chart-3: oklch(0.215 0.001 347.928);
  --chart-4: oklch(0.248 0.001 347.938);
  --chart-5: oklch(0.685 0.013 348.337);
}