Screamer for shadcn/ui

Screamer is a shadcn/ui theme built around a muted cyan primary color (#7ca2ab) with neutral gray accents (#cacdce). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted cyan primary (#7ca2ab) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030607black
Foreground
#000000black
#f8fbfbghostwhite
Card
#f7fcfdghostwhite
#05090ablack
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfdfewhite
#030607black
Popover foreground
#000000black
#f8fbfbghostwhite
Primary
#7ca2abcadetblue
#7ca2abcadetblue
Primary foreground
#000000black
#000000black
Secondary
#cacdcelightgrey
#262626darkslategray
Secondary foreground
#313435darkslategray
#bfbfbfsilver
Muted
#d7dee0gainsboro
#281f1fblack
Muted foreground
#505b5edimgray
#afa1a1darkgray
Accent
#cacdcelightgrey
#262626darkslategray
Accent foreground
#313435darkslategray
#bfbfbfsilver
Destructive
#6b2c0asaddlebrown
#ee8044coral
Destructive foreground
#f8c9b0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7ca2abcadetblue
#7ca2abcadetblue

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.24:1AAA
Primary button7.62:1AAA
Secondary button7.85:1AAA
Muted text5.13:1AA
Accent7.85:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.51:1AAA
Text on card19.60:1AAA
Primary button7.62:1AAA
Secondary button8.20:1AAA
Muted text6.43:1AA
Accent8.20:1AAA
Destructive7.77:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 214.324);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.008 214.341);
  --muted-foreground: oklch(0.462 0.015 214.45);
  --popover: oklch(0.993 0.003 214.324);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 214.33);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.688 0.043 214.748);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.846 0.003 214.326);
  --secondary-foreground: oklch(0.323 0.004 214.349);
  --accent: oklch(0.846 0.003 214.326);
  --accent-foreground: oklch(0.323 0.004 214.349);
  --destructive: oklch(0.378 0.1 44.443);
  --destructive-foreground: oklch(0.87 0.063 49.802);
  --ring: oklch(0.688 0.043 214.748);
  --chart-1: oklch(0.688 0.043 214.748);
  --chart-2: oklch(0.846 0.003 214.326);
  --chart-3: oklch(0.846 0.003 214.326);
  --chart-4: oklch(0.87 0.002 214.324);
  --chart-5: oklch(0.691 0.049 214.852);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.008 211.663);
  --foreground: oklch(0.986 0.003 214.324);
  --muted: oklch(0.251 0.013 18.073);
  --muted-foreground: oklch(0.722 0.016 17.534);
  --popover: oklch(0.119 0.008 211.663);
  --popover-foreground: oklch(0.986 0.003 214.324);
  --card: oklch(0.136 0.009 211.663);
  --card-foreground: oklch(0.993 0.001 214.321);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.688 0.043 214.748);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.27 0 180);
  --secondary-foreground: oklch(0.805 0 169.695);
  --accent: oklch(0.27 0 180);
  --accent-foreground: oklch(0.805 0 169.695);
  --destructive: oklch(0.711 0.154 46.991);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.688 0.043 214.748);
  --chart-1: oklch(0.688 0.043 214.748);
  --chart-2: oklch(0.27 0 180);
  --chart-3: oklch(0.27 0 180);
  --chart-4: oklch(0.301 0 189.462);
  --chart-5: oklch(0.691 0.049 214.852);
}