Encirclement for shadcn/ui

Encirclement is a shadcn/ui theme built around a muted deep blue primary color (#323b4d) with muted deep green accents (#3b4d32). The light mode uses a neutral background (#f6f9fd). Dark mode keeps the muted deep blue primary (#323b4d) on a neutral background (#020408).

Color palette

TokenLightDark
Background
#f6f9fdghostwhite
#020408black
Foreground
#03060cblack
#f5f7fawhitesmoke
Card
#f6f9fdghostwhite
#020408black
Card foreground
#03060cblack
#f5f7fawhitesmoke
Popover
#f6f9fdghostwhite
#020408black
Popover foreground
#03060cblack
#f5f7fawhitesmoke
Primary
#323b4ddarkslategray
#323b4ddarkslategray
Primary foreground
#d1d6e1gainsboro
#d1d6e1gainsboro
Secondary
#4d323bdarkslategray
#4d323bdarkslategray
Secondary foreground
#e1d1d6gainsboro
#e1d1d6gainsboro
Muted
#f2edefwhitesmoke
#120d0eblack
Muted foreground
#685057dimgray
#af979fdarkgray
Accent
#3b4d32darkslategray
#3b4d32darkslategray
Accent foreground
#d6e1d1gainsboro
#d6e1d1gainsboro
Destructive
#690707maroon
#ef1515red
Destructive foreground
#f9a9a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#323b4ddarkslategray
#323b4ddarkslategray

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.18:1AAA
Primary button7.72:1AAA
Secondary button7.75:1AAA
Muted text6.32:1AA
Accent6.76:1AA
Destructive6.89:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button7.72:1AAA
Secondary button7.75:1AAA
Muted text7.11:1AAA
Accent6.76:1AA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 265.975);
  --foreground: oklch(0.121 0.018 257.797);
  --muted: oklch(0.951 0.005 355.776);
  --muted-foreground: oklch(0.458 0.034 357.659);
  --popover: oklch(0.981 0.007 265.975);
  --popover-foreground: oklch(0.121 0.018 257.797);
  --card: oklch(0.981 0.007 265.975);
  --card-foreground: oklch(0.121 0.018 257.797);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.352 0.034 265.313);
  --primary-foreground: oklch(0.875 0.016 265.916);
  --secondary: oklch(0.353 0.041 358.784);
  --secondary-foreground: oklch(0.874 0.019 356.236);
  --accent: oklch(0.397 0.049 136.044);
  --accent-foreground: oklch(0.896 0.025 135.547);
  --destructive: oklch(0.332 0.129 28.056);
  --destructive-foreground: oklch(0.813 0.095 19.32);
  --ring: oklch(0.352 0.034 265.313);
  --chart-1: oklch(0.352 0.034 265.313);
  --chart-2: oklch(0.353 0.041 358.784);
  --chart-3: oklch(0.397 0.049 136.044);
  --chart-4: oklch(0.38 0.045 358.849);
  --chart-5: oklch(0.349 0.039 265.173);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.015 257.597);
  --foreground: oklch(0.974 0.004 265.986);
  --muted: oklch(0.166 0.008 357.023);
  --muted-foreground: oklch(0.701 0.03 356.824);
  --popover: oklch(0.106 0.015 257.597);
  --popover-foreground: oklch(0.974 0.004 265.986);
  --card: oklch(0.106 0.015 257.597);
  --card-foreground: oklch(0.974 0.004 265.986);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.352 0.034 265.313);
  --primary-foreground: oklch(0.875 0.016 265.916);
  --secondary: oklch(0.353 0.041 358.784);
  --secondary-foreground: oklch(0.874 0.019 356.236);
  --accent: oklch(0.397 0.049 136.044);
  --accent-foreground: oklch(0.896 0.025 135.547);
  --destructive: oklch(0.603 0.24 28.538);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.034 265.313);
  --chart-1: oklch(0.352 0.034 265.313);
  --chart-2: oklch(0.353 0.041 358.784);
  --chart-3: oklch(0.397 0.049 136.044);
  --chart-4: oklch(0.38 0.045 358.849);
  --chart-5: oklch(0.349 0.039 265.173);
}