Screamer for shadcn/ui

Screamer is a shadcn/ui theme built around a vivid blue primary color (#135eae) with vivid indigo accents (#1613ae). The light mode uses a neutral background (#f7fafc). Dark mode keeps the vivid blue primary (#135eae) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fafcghostwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#f7fafcghostwhite
#000000black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f7fafcghostwhite
#000000black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#135eaedarkcyan
#135eaedarkcyan
Primary foreground
#f6fafeghostwhite
#f6fafeghostwhite
Secondary
#13acaelightseagreen
#13acaelightseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dee3e3gainsboro
#1c2121black
Muted foreground
#3b4444darkslategray
#bbc4c4silver
Accent
#1613aemediumblue
#1613aemediumblue
Accent foreground
#f6f6feghostwhite
#f6f6feghostwhite
Destructive
#b32914firebrick
#e8452cchocolate
Destructive foreground
#fefbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#135eaedarkcyan
#135eaedarkcyan

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.15:1AA
Secondary button2.78:1Fail
Muted text7.72:1AAA
Accent11.19:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button6.15:1AA
Secondary button2.78:1Fail
Muted text9.13:1AAA
Accent11.19:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 249.691);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.912 0.006 198.266);
  --muted-foreground: oklch(0.379 0.012 197.921);
  --popover: oklch(0.983 0.004 249.691);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 249.691);
  --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.485 0.145 254.546);
  --primary-foreground: oklch(0.983 0.007 249.717);
  --secondary: oklch(0.676 0.112 196.769);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.358 0.223 267.803);
  --accent-foreground: oklch(0.975 0.011 286.965);
  --destructive: oklch(0.503 0.177 31.626);
  --destructive-foreground: oklch(0.991 0.004 27.952);
  --ring: oklch(0.485 0.145 254.546);
  --chart-1: oklch(0.485 0.145 254.546);
  --chart-2: oklch(0.676 0.112 196.769);
  --chart-3: oklch(0.358 0.223 267.803);
  --chart-4: oklch(0.715 0.119 196.774);
  --chart-5: oklch(0.487 0.15 254.879);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 249.659);
  --muted: oklch(0.243 0.008 197.892);
  --muted-foreground: oklch(0.812 0.01 198.185);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 249.659);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 249.659);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.485 0.145 254.546);
  --primary-foreground: oklch(0.983 0.007 249.717);
  --secondary: oklch(0.676 0.112 196.769);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.358 0.223 267.803);
  --accent-foreground: oklch(0.975 0.011 286.965);
  --destructive: oklch(0.623 0.203 31.629);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.485 0.145 254.546);
  --chart-1: oklch(0.485 0.145 254.546);
  --chart-2: oklch(0.676 0.112 196.769);
  --chart-3: oklch(0.358 0.223 267.803);
  --chart-4: oklch(0.715 0.119 196.774);
  --chart-5: oklch(0.487 0.15 254.879);
}