Cleric is a shadcn/ui theme built around a deep green primary color (#0e0f05) with muted light green accents (#e0e2d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0e0f05) on a green-tinted background (#0e0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0f05black |
| Foreground | #101202black | #fbfbf9snow |
| Card | #ffffffwhite | #0e0f05black |
| Card foreground | #101202black | #fbfbf9snow |
| Popover | #ffffffwhite | #0e0f05black |
| Popover foreground | #101202black | #fbfbf9snow |
| Primary | #0e0f05black | #0e0f05black |
| Primary foreground | #98a937yellowgreen | #98a937yellowgreen |
| Secondary | #e0e2d5gainsboro | #313324darkslategray |
| Secondary foreground | #4b4e36darkolivegreen | #cccfbasilver |
| Muted | #e9ebe0beige | #1d1f14black |
| Muted foreground | #505341darkolivegreen | #bbbeacsilver |
| Accent | #e0e2d5gainsboro | #313324darkslategray |
| Accent foreground | #4b4e36darkolivegreen | #cccfbasilver |
| Destructive | #790e06maroon | #f32112red |
| Destructive foreground | #fbbbb6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e0f05black | #0e0f05black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.54:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 6.85:1 | AA |
| Text on background | 18.60:1 | AAA |
| Text on card | 18.60:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 8.82:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Cleric in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.033 115.931);
--muted: oklch(0.935 0.014 113.579);
--muted-foreground: oklch(0.434 0.028 114.519);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.033 115.931);
--card: oklch(1 0 180);
--card-foreground: oklch(0.175 0.033 115.931);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.165 0.022 115.231);
--primary-foreground: oklch(0.701 0.139 117.466);
--secondary: oklch(0.907 0.017 113.662);
--secondary-foreground: oklch(0.415 0.038 115.015);
--accent: oklch(0.907 0.017 113.662);
--accent-foreground: oklch(0.415 0.038 115.015);
--destructive: oklch(0.37 0.141 29.768);
--destructive-foreground: oklch(0.849 0.075 23.411);
--ring: oklch(0.165 0.022 115.231);
--chart-1: oklch(0.165 0.022 115.231);
--chart-2: oklch(0.907 0.017 113.662);
--chart-3: oklch(0.907 0.017 113.662);
--chart-4: oklch(0.927 0.014 113.579);
--chart-5: oklch(0.166 0.023 115.319);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.021 115.141);
--foreground: oklch(0.987 0.003 113.357);
--muted: oklch(0.232 0.019 114.817);
--muted-foreground: oklch(0.794 0.025 113.884);
--popover: oklch(0.164 0.021 115.141);
--popover-foreground: oklch(0.987 0.003 113.357);
--card: oklch(0.164 0.021 115.141);
--card-foreground: oklch(0.987 0.003 113.357);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.165 0.022 115.231);
--primary-foreground: oklch(0.701 0.139 117.466);
--secondary: oklch(0.314 0.027 114.889);
--secondary-foreground: oklch(0.846 0.029 113.94);
--accent: oklch(0.314 0.027 114.889);
--accent-foreground: oklch(0.846 0.029 113.94);
--destructive: oklch(0.614 0.239 29.742);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.165 0.022 115.231);
--chart-1: oklch(0.165 0.022 115.231);
--chart-2: oklch(0.314 0.027 114.889);
--chart-3: oklch(0.314 0.027 114.889);
--chart-4: oklch(0.349 0.031 114.941);
--chart-5: oklch(0.166 0.023 115.319);
}