Peace for shadcn/ui

Peace is a shadcn/ui theme built around a deep cyan primary color (#10474c) with muted light cyan accents (#bdcbcc). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the deep cyan primary (#10474c) on a cyan-tinted background (#040b0b).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#040b0bblack
Foreground
#010809black
#fcfdfdwhite
Card
#f7fcfdghostwhite
#040b0bblack
Card foreground
#010809black
#fcfdfdwhite
Popover
#f7fcfdghostwhite
#040b0bblack
Popover foreground
#010809black
#fcfdfdwhite
Primary
#10474cdarkslategray
#10474cdarkslategray
Primary foreground
#a2e5ebpowderblue
#a2e5ebpowderblue
Secondary
#daddddgainsboro
#161c1dblack
Secondary foreground
#3f4546darkslategray
#a9babcsilver
Muted
#e0e6e6gainsboro
#191f1fblack
Muted foreground
#4e5455darkslategray
#aab0b1darkgray
Accent
#bdcbccsilver
#1e2d2edarkslategray
Accent foreground
#263031darkslategray
#b2cacdlightsteelblue
Destructive
#892c01saddlebrown
#fe5f16orangered
Destructive foreground
#ffd2bdpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#10474cdarkslategray
#10474cdarkslategray

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.39:1AAA
Secondary button7.12:1AAA
Muted text6.09:1AA
Accent8.09:1AAA
Destructive6.27:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.39:1AAA
Secondary button8.56:1AAA
Muted text7.61:1AAA
Accent8.31:1AAA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 203.526);
  --foreground: oklch(0.125 0.016 200.601);
  --muted: oklch(0.92 0.007 203.515);
  --muted-foreground: oklch(0.442 0.008 203.428);
  --popover: oklch(0.988 0.006 203.526);
  --popover-foreground: oklch(0.125 0.016 200.601);
  --card: oklch(0.988 0.006 203.526);
  --card-foreground: oklch(0.125 0.016 200.601);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.365 0.055 203.976);
  --primary-foreground: oklch(0.88 0.067 203.126);
  --secondary: oklch(0.894 0.004 203.544);
  --secondary-foreground: oklch(0.385 0.008 203.4);
  --accent: oklch(0.831 0.015 203.419);
  --accent-foreground: oklch(0.3 0.014 203.226);
  --destructive: oklch(0.429 0.135 39.674);
  --destructive-foreground: oklch(0.896 0.058 46.234);
  --ring: oklch(0.365 0.055 203.976);
  --chart-1: oklch(0.365 0.055 203.976);
  --chart-2: oklch(0.894 0.004 203.544);
  --chart-3: oklch(0.831 0.015 203.419);
  --chart-4: oklch(0.917 0.003 203.553);
  --chart-5: oklch(0.369 0.057 204.093);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.012 201.731);
  --foreground: oklch(0.993 0.001 203.576);
  --muted: oklch(0.233 0.009 203.272);
  --muted-foreground: oklch(0.753 0.007 203.499);
  --popover: oklch(0.14 0.012 201.731);
  --popover-foreground: oklch(0.993 0.001 203.576);
  --card: oklch(0.14 0.012 201.731);
  --card-foreground: oklch(0.993 0.001 203.576);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.365 0.055 203.976);
  --primary-foreground: oklch(0.88 0.067 203.126);
  --secondary: oklch(0.221 0.008 203.279);
  --secondary-foreground: oklch(0.777 0.019 203.376);
  --accent: oklch(0.284 0.02 203.138);
  --accent-foreground: oklch(0.823 0.027 203.316);
  --destructive: oklch(0.686 0.207 40.232);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.365 0.055 203.976);
  --chart-1: oklch(0.365 0.055 203.976);
  --chart-2: oklch(0.221 0.008 203.279);
  --chart-3: oklch(0.284 0.02 203.138);
  --chart-4: oklch(0.255 0.011 203.26);
  --chart-5: oklch(0.369 0.057 204.093);
}