Scope for shadcn/ui

Scope is a shadcn/ui theme built around a cyan primary color (#387c8a) with muted light cyan accents (#cbd1d2). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the cyan primary (#387c8a) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#020304black
Foreground
#020708black
#fcfdfdwhite
Card
#f3fafbaliceblue
#030607black
Card foreground
#010404black
#ffffffwhite
Popover
#f7fcfdghostwhite
#020304black
Popover foreground
#020708black
#fcfdfdwhite
Primary
#387c8asteelblue
#387c8asteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cbd1d2lightgrey
#242c2edarkslategray
Secondary foreground
#31383adarkslategray
#bac7c9silver
Muted
#dceceflavender
#102023black
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#cbd1d2lightgrey
#242c2edarkslategray
Accent foreground
#31383adarkslategray
#bac7c9silver
Destructive
#ad1700firebrick
#ff3d1forangered
Destructive foreground
#ffe4e0mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#387c8asteelblue
#387c8asteelblue

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.50:1AAA
Primary button4.75:1AA
Secondary button7.73:1AAA
Muted text6.41:1AA
Accent7.73:1AAA
Destructive5.98:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.28:1AAA
Primary button4.75:1AA
Secondary button8.20:1AAA
Muted text7.49:1AAA
Accent8.20:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 211.04);
  --foreground: oklch(0.122 0.014 207.24);
  --muted: oklch(0.931 0.017 211.041);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(0.987 0.005 211.04);
  --popover-foreground: oklch(0.122 0.014 207.24);
  --card: oklch(0.981 0.007 211.038);
  --card-foreground: oklch(0.097 0.011 207.24);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.548 0.071 212.624);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.856 0.007 211.038);
  --secondary-foreground: oklch(0.336 0.01 211.06);
  --accent: oklch(0.856 0.007 211.038);
  --accent-foreground: oklch(0.336 0.01 211.06);
  --destructive: oklch(0.479 0.185 31.318);
  --destructive-foreground: oklch(0.941 0.03 28.124);
  --ring: oklch(0.548 0.071 212.624);
  --chart-1: oklch(0.548 0.071 212.624);
  --chart-2: oklch(0.856 0.007 211.038);
  --chart-3: oklch(0.856 0.007 211.038);
  --chart-4: oklch(0.88 0.006 211.039);
  --chart-5: oklch(0.553 0.075 212.862);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.007 208.289);
  --foreground: oklch(0.993 0.002 211.043);
  --muted: oklch(0.23 0.022 211.64);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.095 0.007 208.289);
  --popover-foreground: oklch(0.993 0.002 211.043);
  --card: oklch(0.12 0.009 208.289);
  --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.548 0.071 212.624);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.286 0.012 211.098);
  --secondary-foreground: oklch(0.82 0.014 211.04);
  --accent: oklch(0.286 0.012 211.098);
  --accent-foreground: oklch(0.82 0.014 211.04);
  --destructive: oklch(0.654 0.233 31.599);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.548 0.071 212.624);
  --chart-1: oklch(0.548 0.071 212.624);
  --chart-2: oklch(0.286 0.012 211.098);
  --chart-3: oklch(0.286 0.012 211.098);
  --chart-4: oklch(0.318 0.014 211.106);
  --chart-5: oklch(0.553 0.075 212.862);
}