Spirituality is a shadcn/ui theme built around a muted green primary color (#b7c19f) with muted light green accents (#ddded8). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the muted green primary (#b7c19f) on a green-tinted background (#0c0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #0c0f05black |
| Foreground | #101405black | #ffffffwhite |
| Card | #f9fcf3floralwhite | #0f1307black |
| Card foreground | #0d1004black | #ffffffwhite |
| Popover | #f9fcf3floralwhite | #0f1307black |
| Popover foreground | #0d1004black | #ffffffwhite |
| Primary | #b7c19fdarkgray | #b7c19fdarkgray |
| Primary foreground | #191c12black | #191c12black |
| Secondary | #ddded8gainsboro | #1e2118black |
| Secondary foreground | #45483ddarkslategray | #bac1a9silver |
| Muted | #e0e6d0gainsboro | #282f19darkslategray |
| Muted foreground | #555652dimgray | #acada9darkgray |
| Accent | #ddded8gainsboro | #1e2118black |
| Accent foreground | #45483ddarkslategray | #bac1a9silver |
| Destructive | #642307maroon | #ee5311orangered |
| Destructive foreground | #f9bea4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b7c19fdarkgray | #b7c19fdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.24:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 9.19:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 5.79:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 7.23:1 | AAA |
| Text on background | 19.30:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 9.19:1 | AAA |
| Secondary button | 8.81:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 8.81:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Spirituality in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.009 119.454);
--foreground: oklch(0.182 0.029 121.714);
--muted: oklch(0.915 0.03 119.873);
--muted-foreground: oklch(0.451 0.006 119.514);
--popover: oklch(0.987 0.013 119.53);
--popover-foreground: oklch(0.165 0.025 120.919);
--card: oklch(0.987 0.013 119.53);
--card-foreground: oklch(0.165 0.025 120.919);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.795 0.049 120.37);
--primary-foreground: oklch(0.22 0.019 120.851);
--secondary: oklch(0.898 0.008 119.455);
--secondary-foreground: oklch(0.394 0.018 120.086);
--accent: oklch(0.898 0.008 119.455);
--accent-foreground: oklch(0.394 0.018 120.086);
--destructive: oklch(0.351 0.101 40.481);
--destructive-foreground: oklch(0.848 0.077 44.275);
--ring: oklch(0.795 0.049 120.37);
--chart-1: oklch(0.795 0.049 120.37);
--chart-2: oklch(0.898 0.008 119.455);
--chart-3: oklch(0.898 0.008 119.455);
--chart-4: oklch(0.92 0.006 119.419);
--chart-5: oklch(0.8 0.055 120.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.162 0.022 120.739);
--foreground: oklch(1 0 180);
--muted: oklch(0.292 0.038 121.713);
--muted-foreground: oklch(0.744 0.005 119.417);
--popover: oklch(0.179 0.025 121.495);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.179 0.025 121.495);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.795 0.049 120.37);
--primary-foreground: oklch(0.22 0.019 120.851);
--secondary: oklch(0.24 0.017 120.534);
--secondary-foreground: oklch(0.799 0.033 120.025);
--accent: oklch(0.24 0.017 120.534);
--accent-foreground: oklch(0.799 0.033 120.025);
--destructive: oklch(0.648 0.202 38.834);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.795 0.049 120.37);
--chart-1: oklch(0.795 0.049 120.37);
--chart-2: oklch(0.24 0.017 120.534);
--chart-3: oklch(0.24 0.017 120.534);
--chart-4: oklch(0.275 0.021 120.622);
--chart-5: oklch(0.8 0.055 120.506);
}