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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.45:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.45:1 | AAA |
| Destructive | 3.96:1 | AA Large |
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);
}