Silly for shadcn/ui

Silly is a shadcn/ui theme built around a violet primary color (#ac65e2) with green accents (#9be265). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#ac65e2) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#ffffffwhite
#050307black
Foreground
#030104black
#fdfbfdsnow
Card
#ffffffwhite
#050307black
Card foreground
#030104black
#fdfbfdsnow
Popover
#ffffffwhite
#050307black
Popover foreground
#030104black
#fdfbfdsnow
Primary
#ac65e2mediumorchid
#ac65e2mediumorchid
Primary foreground
#000000black
#000000black
Secondary
#9be265lightgreen
#9be265lightgreen
Secondary foreground
#091103black
#091103black
Muted
#e2e9dcgainsboro
#1b2316black
Muted foreground
#42473edarkslategray
#bcc1b8silver
Accent
#9be265lightgreen
#9be265lightgreen
Accent foreground
#091103black
#091103black
Destructive
#961203darkred
#f01c05red
Destructive foreground
#fed2cdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ac65e2mediumorchid
#ac65e2mediumorchid

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button5.69:1AA
Secondary button12.27:1AAA
Muted text7.70:1AAA
Accent12.27:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button5.69:1AA
Secondary button12.27:1AAA
Muted text8.86:1AAA
Accent12.27:1AAA
Destructive4.30: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.08 0.021 313.22);
  --muted: oklch(0.926 0.019 131.264);
  --muted-foreground: oklch(0.39 0.017 131.471);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.08 0.021 313.22);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.08 0.021 313.22);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.189 308.112);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.838 0.173 133.487);
  --secondary-foreground: oklch(0.165 0.033 130.918);
  --accent: oklch(0.838 0.173 133.487);
  --accent-foreground: oklch(0.165 0.033 130.918);
  --destructive: oklch(0.43 0.166 30.657);
  --destructive-foreground: oklch(0.9 0.05 25.544);
  --ring: oklch(0.638 0.189 308.112);
  --chart-1: oklch(0.638 0.189 308.112);
  --chart-2: oklch(0.838 0.173 133.487);
  --chart-3: oklch(0.838 0.173 133.487);
  --chart-4: oklch(0.851 0.161 133.178);
  --chart-5: oklch(0.636 0.196 307.937);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.017 312.361);
  --foreground: oklch(0.991 0.003 311.059);
  --muted: oklch(0.242 0.026 132.103);
  --muted-foreground: oklch(0.805 0.014 131.239);
  --popover: oklch(0.106 0.017 312.361);
  --popover-foreground: oklch(0.991 0.003 311.059);
  --card: oklch(0.106 0.017 312.361);
  --card-foreground: oklch(0.991 0.003 311.059);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.638 0.189 308.112);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.838 0.173 133.487);
  --secondary-foreground: oklch(0.165 0.033 130.918);
  --accent: oklch(0.838 0.173 133.487);
  --accent-foreground: oklch(0.165 0.033 130.918);
  --destructive: oklch(0.607 0.239 30.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.189 308.112);
  --chart-1: oklch(0.638 0.189 308.112);
  --chart-2: oklch(0.838 0.173 133.487);
  --chart-3: oklch(0.838 0.173 133.487);
  --chart-4: oklch(0.851 0.161 133.178);
  --chart-5: oklch(0.636 0.196 307.937);
}