Screening for shadcn/ui

Screening is a shadcn/ui theme built around an indigo primary color (#181d8c) with violet accents (#4c188c). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#181d8c) on an indigo-tinted background (#06060f).

Color palette

TokenLightDark
Background
#ffffffwhite
#06060fblack
Foreground
#050510black
#ffffffwhite
Card
#fcfcfcsnow
#070713black
Card foreground
#04040cblack
#ffffffwhite
Popover
#fcfcfcsnow
#070713black
Popover foreground
#04040cblack
#ffffffwhite
Primary
#181d8cmidnightblue
#181d8cmidnightblue
Primary foreground
#dcdef9lavender
#dcdef9lavender
Secondary
#18578cteal
#18578cteal
Secondary foreground
#dcecf9lavender
#dcecf9lavender
Muted
#d9e1e8gainsboro
#171f26black
Muted foreground
#5f676ddimgray
#929aa0darkgray
Accent
#4c188cindigo
#4c188cindigo
Accent foreground
#e9dcf9lavender
#e9dcf9lavender
Destructive
#a32205firebrick
#f95834tomato
Destructive foreground
#fee3dcmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#181d8cmidnightblue
#181d8cmidnightblue

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card19.99:1AAA
Primary button9.94:1AAA
Secondary button6.23:1AA
Muted text4.35:1AA Large
Accent8.88:1AAA
Destructive6.16:1AA
Dark mode
Text on background20.19:1AAA
Text on card19.99:1AAA
Primary button9.94:1AAA
Secondary button6.23:1AA
Muted text5.81:1AA
Accent8.88:1AAA
Destructive6.47:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.026 278.781);
  --muted: oklch(0.906 0.013 242.385);
  --muted-foreground: oklch(0.508 0.014 242.562);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.112 0.022 278.84);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.112 0.022 278.84);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.326 0.175 269.507);
  --primary-foreground: oklch(0.907 0.037 283.229);
  --secondary: oklch(0.446 0.106 248.078);
  --secondary-foreground: oklch(0.935 0.025 242.542);
  --accent: oklch(0.365 0.173 297.025);
  --accent-foreground: oklch(0.914 0.041 305.852);
  --destructive: oklch(0.467 0.169 32.971);
  --destructive-foreground: oklch(0.935 0.031 32.704);
  --ring: oklch(0.326 0.175 269.507);
  --chart-1: oklch(0.326 0.175 269.507);
  --chart-2: oklch(0.446 0.106 248.078);
  --chart-3: oklch(0.365 0.173 297.025);
  --chart-4: oklch(0.475 0.114 248.195);
  --chart-5: oklch(0.325 0.181 268.784);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.021 279.917);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.018 243.276);
  --muted-foreground: oklch(0.681 0.013 242.448);
  --popover: oklch(0.138 0.025 279.852);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.025 279.852);
  --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.326 0.175 269.507);
  --primary-foreground: oklch(0.907 0.037 283.229);
  --secondary: oklch(0.446 0.106 248.078);
  --secondary-foreground: oklch(0.935 0.025 242.542);
  --accent: oklch(0.365 0.173 297.025);
  --accent-foreground: oklch(0.914 0.041 305.852);
  --destructive: oklch(0.672 0.203 34.083);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.326 0.175 269.507);
  --chart-1: oklch(0.326 0.175 269.507);
  --chart-2: oklch(0.446 0.106 248.078);
  --chart-3: oklch(0.365 0.173 297.025);
  --chart-4: oklch(0.475 0.114 248.195);
  --chart-5: oklch(0.325 0.181 268.784);
}