Scornful for shadcn/ui

Scornful is a shadcn/ui theme built around a near-black primary color (#050a08) with neutral gray accents (#dee3e1). The light mode uses a neutral background (#fbfefd). Dark mode keeps the near-black primary (#050a08) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#fbfefdwhite
#040b09black
Foreground
#020806black
#f6f9f8whitesmoke
Card
#f7fdfbmintcream
#050f0cblack
Card foreground
#010403black
#f9fbfamintcream
Popover
#f7fdfbmintcream
#050f0cblack
Popover foreground
#010403black
#f9fbfamintcream
Primary
#050a08black
#050a08black
Primary foreground
#82bfa9darkseagreen
#82bfa9darkseagreen
Secondary
#dee3e1gainsboro
#1a2320black
Secondary foreground
#424c49darkslategray
#adc2basilver
Muted
#d0e2dbgainsboro
#1d2f29darkslategray
Muted foreground
#4d5c56darkslategray
#a3b2addarkgray
Accent
#dee3e1gainsboro
#1a2320black
Accent foreground
#424c49darkslategray
#adc2basilver
Destructive
#8d0c07darkred
#da120bred
Destructive foreground
#fccbcapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050a08black
#050a08black

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.94:1AAA
Primary button9.46:1AAA
Secondary button6.83:1AA
Muted text5.21:1AA
Accent6.83:1AA
Destructive6.67:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.68:1AAA
Primary button9.46:1AAA
Secondary button8.56:1AAA
Muted text6.38:1AA
Accent8.56:1AAA
Destructive5.15:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 172.487);
  --foreground: oklch(0.125 0.016 172.852);
  --muted: oklch(0.896 0.021 171.891);
  --muted-foreground: oklch(0.459 0.021 171.194);
  --popover: oklch(0.988 0.006 172.398);
  --popover-foreground: oklch(0.099 0.013 172.852);
  --card: oklch(0.988 0.006 172.398);
  --card-foreground: oklch(0.099 0.013 172.852);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.138 0.01 172.735);
  --primary-foreground: oklch(0.756 0.07 169.498);
  --secondary: oklch(0.911 0.005 172.413);
  --secondary-foreground: oklch(0.408 0.014 171.527);
  --accent: oklch(0.911 0.005 172.413);
  --accent-foreground: oklch(0.408 0.014 171.527);
  --destructive: oklch(0.408 0.16 29.098);
  --destructive-foreground: oklch(0.885 0.056 20.566);
  --ring: oklch(0.138 0.01 172.735);
  --chart-1: oklch(0.138 0.01 172.735);
  --chart-2: oklch(0.911 0.005 172.413);
  --chart-3: oklch(0.911 0.005 172.413);
  --chart-4: oklch(0.933 0.004 172.458);
  --chart-5: oklch(0.139 0.011 172.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.015 172.547);
  --foreground: oklch(0.979 0.004 172.47);
  --muted: oklch(0.288 0.026 169.578);
  --muted-foreground: oklch(0.751 0.019 171.84);
  --popover: oklch(0.157 0.018 170.429);
  --popover-foreground: oklch(0.986 0.002 172.505);
  --card: oklch(0.157 0.018 170.429);
  --card-foreground: oklch(0.986 0.002 172.505);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.138 0.01 172.735);
  --primary-foreground: oklch(0.756 0.07 169.498);
  --secondary: oklch(0.247 0.015 170.737);
  --secondary-foreground: oklch(0.796 0.026 171.604);
  --accent: oklch(0.247 0.015 170.737);
  --accent-foreground: oklch(0.796 0.026 171.604);
  --destructive: oklch(0.563 0.224 29.226);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.138 0.01 172.735);
  --chart-1: oklch(0.138 0.01 172.735);
  --chart-2: oklch(0.247 0.015 170.737);
  --chart-3: oklch(0.247 0.015 170.737);
  --chart-4: oklch(0.281 0.018 170.615);
  --chart-5: oklch(0.139 0.011 172.747);
}