Cloister for shadcn/ui

Cloister is a shadcn/ui theme built around a muted light teal primary color (#cdd5d4) with muted light yellow accents (#d5d4cd). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the muted light teal primary (#cdd5d4) on a teal-tinted background (#060e0d).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#060e0dblack
Foreground
#030807black
#f8fbfbghostwhite
Card
#f8fcfbmintcream
#060e0dblack
Card foreground
#030807black
#f8fbfbghostwhite
Popover
#f8fcfbmintcream
#060e0dblack
Popover foreground
#030807black
#f8fbfbghostwhite
Primary
#cdd5d4lightgrey
#cdd5d4lightgrey
Primary foreground
#343d3cdarkslategray
#343d3cdarkslategray
Secondary
#d4cdd5lightgrey
#d4cdd5lightgrey
Secondary foreground
#3c343ddarkslategray
#3c343ddarkslategray
Muted
#e2d3e4gainsboro
#2a1b2cdarkslategray
Muted foreground
#453947darkslategray
#c5b8c6silver
Accent
#d5d4cdlightgrey
#d5d4cdlightgrey
Accent foreground
#3d3c34darkslategray
#3d3c34darkslategray
Destructive
#a53403saddlebrown
#e64805orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cdd5d4lightgrey
#cdd5d4lightgrey

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button7.48:1AAA
Secondary button7.72:1AAA
Muted text7.60:1AAA
Accent7.45:1AAA
Destructive6.80:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button7.48:1AAA
Secondary button7.72:1AAA
Muted text8.51:1AAA
Accent7.45:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 189.982);
  --foreground: oklch(0.124 0.012 189.384);
  --muted: oklch(0.884 0.027 322.75);
  --muted-foreground: oklch(0.362 0.029 322.938);
  --popover: oklch(0.988 0.004 189.982);
  --popover-foreground: oklch(0.124 0.012 189.384);
  --card: oklch(0.988 0.004 189.982);
  --card-foreground: oklch(0.124 0.012 189.384);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.866 0.008 189.865);
  --primary-foreground: oklch(0.35 0.012 189.279);
  --secondary: oklch(0.857 0.012 322.684);
  --secondary-foreground: oklch(0.335 0.019 322.849);
  --accent: oklch(0.869 0.009 101.451);
  --accent-foreground: oklch(0.353 0.014 101.871);
  --destructive: oklch(0.488 0.157 38.32);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.008 189.865);
  --chart-1: oklch(0.866 0.008 189.865);
  --chart-2: oklch(0.857 0.012 322.684);
  --chart-3: oklch(0.869 0.009 101.451);
  --chart-4: oklch(0.881 0.01 322.673);
  --chart-5: oklch(0.869 0.011 189.786);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.012 188.584);
  --foreground: oklch(0.987 0.003 190.007);
  --muted: oklch(0.25 0.037 323.172);
  --muted-foreground: oklch(0.798 0.024 322.746);
  --popover: oklch(0.155 0.012 188.584);
  --popover-foreground: oklch(0.987 0.003 190.007);
  --card: oklch(0.155 0.012 188.584);
  --card-foreground: oklch(0.987 0.003 190.007);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.866 0.008 189.865);
  --primary-foreground: oklch(0.35 0.012 189.279);
  --secondary: oklch(0.857 0.012 322.684);
  --secondary-foreground: oklch(0.335 0.019 322.849);
  --accent: oklch(0.869 0.009 101.451);
  --accent-foreground: oklch(0.353 0.014 101.871);
  --destructive: oklch(0.621 0.203 37.576);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.866 0.008 189.865);
  --chart-1: oklch(0.866 0.008 189.865);
  --chart-2: oklch(0.857 0.012 322.684);
  --chart-3: oklch(0.869 0.009 101.451);
  --chart-4: oklch(0.881 0.01 322.673);
  --chart-5: oklch(0.869 0.011 189.786);
}