Scornful for shadcn/ui

Scornful is a shadcn/ui theme built around a vivid light blue primary color (#bdd6ff) with vivid light green accents (#d6ffbd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#bdd6ff) on a blue-tinted background (#05090f).

Color palette

TokenLightDark
Background
#ffffffwhite
#05090fblack
Foreground
#040910black
#fcfcfdwhite
Card
#fcfcfcsnow
#070b13black
Card foreground
#03070cblack
#ffffffwhite
Popover
#fcfcfcsnow
#070b13black
Popover foreground
#03070cblack
#ffffffwhite
Primary
#bdd6fflightblue
#bdd6fflightblue
Primary foreground
#00358amidnightblue
#00358amidnightblue
Secondary
#ffbdd6pink
#ffbdd6pink
Secondary foreground
#8a0035brown
#8a0035brown
Muted
#f6eff1whitesmoke
#10090cblack
Muted foreground
#4a4547darkslategray
#bab5b7silver
Accent
#d6ffbdpalegoldenrod
#d6ffbdpalegoldenrod
Accent foreground
#0e2400black
#0e2400black
Destructive
#b6420cfirebrick
#f05a14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdd6fflightblue
#bdd6fflightblue

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.76:1AAA
Primary button7.58:1AAA
Secondary button6.32:1AA
Muted text8.28:1AAA
Accent14.86:1AAA
Destructive5.57:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.67:1AAA
Primary button7.58:1AAA
Secondary button6.32:1AA
Muted text9.71:1AAA
Accent14.86:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.018 254.513);
  --muted: oklch(0.958 0.008 351.834);
  --muted-foreground: oklch(0.395 0.008 352.196);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.124 0.015 252.19);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.015 252.19);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.871 0.063 259.871);
  --primary-foreground: oklch(0.359 0.151 260.482);
  --secondary: oklch(0.865 0.082 354.165);
  --secondary-foreground: oklch(0.404 0.162 9.77);
  --accent: oklch(0.955 0.096 133.741);
  --accent-foreground: oklch(0.232 0.068 134.941);
  --destructive: oklch(0.534 0.161 40.171);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.063 259.871);
  --chart-1: oklch(0.871 0.063 259.871);
  --chart-2: oklch(0.865 0.082 354.165);
  --chart-3: oklch(0.955 0.096 133.741);
  --chart-4: oklch(0.895 0.063 353.5);
  --chart-5: oklch(0.87 0.065 259.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.015 255.489);
  --foreground: oklch(0.992 0.001 259.935);
  --muted: oklch(0.152 0.013 353.879);
  --muted-foreground: oklch(0.778 0.007 351.852);
  --popover: oklch(0.15 0.018 258.029);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.15 0.018 258.029);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.871 0.063 259.871);
  --primary-foreground: oklch(0.359 0.151 260.482);
  --secondary: oklch(0.865 0.082 354.165);
  --secondary-foreground: oklch(0.404 0.162 9.77);
  --accent: oklch(0.955 0.096 133.741);
  --accent-foreground: oklch(0.232 0.068 134.941);
  --destructive: oklch(0.658 0.198 40.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.063 259.871);
  --chart-1: oklch(0.871 0.063 259.871);
  --chart-2: oklch(0.865 0.082 354.165);
  --chart-3: oklch(0.955 0.096 133.741);
  --chart-4: oklch(0.895 0.063 353.5);
  --chart-5: oklch(0.87 0.065 259.865);
}