Ecclesia is a shadcn/ui theme built around a muted light green primary color (#bcd2bf) with muted light green accents (#bacabc). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted light green primary (#bcd2bf) on a green-tinted background (#050f07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #050f07black |
| Foreground | #020e03black | #f8fcf9mintcream |
| Card | #fbfefbwhite | #050f07black |
| Card foreground | #020e03black | #f8fcf9mintcream |
| Popover | #fbfefbwhite | #050f07black |
| Popover foreground | #020e03black | #f8fcf9mintcream |
| Primary | #bcd2bfsilver | #bcd2bfsilver |
| Primary foreground | #253727darkslategray | #253727darkslategray |
| Secondary | #cfd3d0lightgrey | #2d392fdarkslategray |
| Secondary foreground | #363a36darkslategray | #c6d2c8lightgrey |
| Muted | #d6e1d7gainsboro | #1e2920black |
| Muted foreground | #545f55dimgray | #a0aba2darkgray |
| Accent | #bacabcsilver | #3d5741darkslategray |
| Accent foreground | #232e25darkslategray | #dee8dfgainsboro |
| Destructive | #702705maroon | #f45810orangered |
| Destructive foreground | #fbc5acpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bcd2bfsilver | #bcd2bfsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 3.35:1 | AA Large |
Paste this into your globals.css to use Ecclesia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 149.62);
--foreground: oklch(0.144 0.034 147.936);
--muted: oklch(0.898 0.018 149.432);
--muted-foreground: oklch(0.472 0.02 149.15);
--popover: oklch(0.994 0.005 149.62);
--popover-foreground: oklch(0.144 0.034 147.936);
--card: oklch(0.994 0.005 149.62);
--card-foreground: oklch(0.144 0.034 147.936);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.842 0.036 149.141);
--primary-foreground: oklch(0.316 0.037 148.11);
--secondary: oklch(0.863 0.006 149.599);
--secondary-foreground: oklch(0.344 0.009 149.355);
--accent: oklch(0.822 0.026 149.29);
--accent-foreground: oklch(0.288 0.022 148.686);
--destructive: oklch(0.378 0.111 40.987);
--destructive-foreground: oklch(0.866 0.071 46.095);
--ring: oklch(0.842 0.036 149.141);
--chart-1: oklch(0.842 0.036 149.141);
--chart-2: oklch(0.863 0.006 149.599);
--chart-3: oklch(0.822 0.026 149.29);
--chart-4: oklch(0.886 0.005 149.616);
--chart-5: oklch(0.844 0.041 149.059);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.025 148.323);
--foreground: oklch(0.987 0.006 149.612);
--muted: oklch(0.268 0.024 148.5);
--muted-foreground: oklch(0.73 0.018 149.377);
--popover: oklch(0.155 0.025 148.323);
--popover-foreground: oklch(0.987 0.006 149.612);
--card: oklch(0.155 0.025 148.323);
--card-foreground: oklch(0.987 0.006 149.612);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.842 0.036 149.141);
--primary-foreground: oklch(0.316 0.037 148.11);
--secondary: oklch(0.329 0.023 148.794);
--secondary-foreground: oklch(0.851 0.018 149.419);
--accent: oklch(0.428 0.047 148.214);
--accent-foreground: oklch(0.921 0.015 149.48);
--destructive: oklch(0.662 0.203 39.794);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.842 0.036 149.141);
--chart-1: oklch(0.842 0.036 149.141);
--chart-2: oklch(0.329 0.023 148.794);
--chart-3: oklch(0.428 0.047 148.214);
--chart-4: oklch(0.36 0.025 148.768);
--chart-5: oklch(0.844 0.041 149.059);
}