Encirclement for shadcn/ui

Encirclement is a shadcn/ui theme built around a green primary color (#38a34c) with muted light green accents (#d3ded5). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#38a34c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#000000black
Foreground
#030c05black
#f5faf6whitesmoke
Card
#f4faf5whitesmoke
#030303black
Card foreground
#020803black
#f8fcf9mintcream
Popover
#f8fcf9mintcream
#000000black
Popover foreground
#030c05black
#f5faf6whitesmoke
Primary
#38a34cseagreen
#38a34cseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e9ecealavender
#182019black
Secondary foreground
#4d564edarkslategray
#aac0aedarkgray
Muted
#e7eee8linen
#111812black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#d3ded5lightgrey
#233827darkslategray
Accent foreground
#36493adarkslategray
#bad4bfsilver
Destructive
#921507darkred
#f64a37tomato
Destructive foreground
#fdd3cepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#38a34cseagreen
#38a34cseagreen

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.15:1AAA
Primary button3.21:1AA Large
Secondary button6.39:1AA
Muted text6.95:1AA
Accent7.01:1AAA
Destructive6.59:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.97:1AAA
Primary button3.21:1AA Large
Secondary button8.60:1AAA
Muted text8.31:1AAA
Accent7.90:1AAA
Destructive3.53: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.987 0.006 151.32);
  --foreground: oklch(0.141 0.026 150.273);
  --muted: oklch(0.943 0.012 151.227);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.987 0.006 151.32);
  --popover-foreground: oklch(0.141 0.026 150.273);
  --card: oklch(0.98 0.009 151.276);
  --card-foreground: oklch(0.123 0.022 150.397);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.635 0.159 146.675);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.94 0.004 151.35);
  --secondary-foreground: oklch(0.444 0.018 150.815);
  --accent: oklch(0.891 0.018 151.12);
  --accent-foreground: oklch(0.385 0.036 149.984);
  --destructive: oklch(0.425 0.161 30.549);
  --destructive-foreground: oklch(0.901 0.048 25.508);
  --ring: oklch(0.635 0.159 146.675);
  --chart-1: oklch(0.635 0.159 146.675);
  --chart-2: oklch(0.94 0.004 151.35);
  --chart-3: oklch(0.891 0.018 151.12);
  --chart-4: oklch(0.963 0.002 151.373);
  --chart-5: oklch(0.643 0.167 146.432);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.007 151.299);
  --muted: oklch(0.2 0.017 150.104);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.007 151.299);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.005 151.336);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.635 0.159 146.675);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.234 0.018 150.25);
  --secondary-foreground: oklch(0.786 0.035 150.75);
  --accent: oklch(0.319 0.041 149.374);
  --accent-foreground: oklch(0.844 0.04 150.706);
  --destructive: oklch(0.652 0.211 30.035);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.635 0.159 146.675);
  --chart-1: oklch(0.635 0.159 146.675);
  --chart-2: oklch(0.234 0.018 150.25);
  --chart-3: oklch(0.319 0.041 149.374);
  --chart-4: oklch(0.268 0.022 150.161);
  --chart-5: oklch(0.643 0.167 146.432);
}