Monasticism is a shadcn/ui theme built around a near-black primary color (#030401) with near-black accents (#020104). The light mode uses a neutral background (#fafdf7). Dark mode keeps the near-black primary (#030401) on a green-tinted background (#080b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #080b04black |
| Foreground | #050902black | #f8f9f6whitesmoke |
| Card | #fafdf7mintcream | #080b04black |
| Card foreground | #050902black | #f8f9f6whitesmoke |
| Popover | #fafdf7mintcream | #080b04black |
| Popover foreground | #050902black | #f8f9f6whitesmoke |
| Primary | #030401black | #030401black |
| Primary foreground | #6fa52colivedrab | #6fa52colivedrab |
| Secondary | #020104black | #020104black |
| Secondary foreground | #ccb2ebthistle | #ccb2ebthistle |
| Muted | #efeaf6lavender | #0f0915black |
| Muted foreground | #51495adarkslategray | #ada5b6darkgray |
| Accent | #020104black | #020104black |
| Accent foreground | #ccb2ebthistle | #ccb2ebthistle |
| Destructive | #811a08maroon | #f35a3ftomato |
| Destructive foreground | #fbc9c1pink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030401black | #030401black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 11.03:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 11.03:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 6.94:1 | AA |
| Secondary button | 11.03:1 | AAA |
| Muted text | 8.24:1 | AAA |
| Accent | 11.03:1 | AAA |
| Destructive | 6.34:1 | AA |
Paste this into your globals.css to use Monasticism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 126.53);
--foreground: oklch(0.13 0.024 125.314);
--muted: oklch(0.944 0.016 306.206);
--muted-foreground: oklch(0.42 0.028 305.571);
--popover: oklch(0.99 0.008 126.53);
--popover-foreground: oklch(0.13 0.024 125.314);
--card: oklch(0.99 0.008 126.53);
--card-foreground: oklch(0.13 0.024 125.314);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.101 0.016 125.469);
--primary-foreground: oklch(0.661 0.16 130.977);
--secondary: oklch(0.08 0.018 307.846);
--secondary-foreground: oklch(0.805 0.082 305.113);
--accent: oklch(0.08 0.018 307.846);
--accent-foreground: oklch(0.805 0.082 305.113);
--destructive: oklch(0.396 0.141 32.169);
--destructive-foreground: oklch(0.878 0.058 29.849);
--ring: oklch(0.101 0.016 125.469);
--chart-1: oklch(0.101 0.016 125.469);
--chart-2: oklch(0.08 0.018 307.846);
--chart-3: oklch(0.08 0.018 307.846);
--chart-4: oklch(0.128 0.03 306.066);
--chart-5: oklch(0.102 0.017 125.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.019 125.744);
--foreground: oklch(0.98 0.005 126.493);
--muted: oklch(0.156 0.025 304.288);
--muted-foreground: oklch(0.734 0.025 306.001);
--popover: oklch(0.144 0.019 125.744);
--popover-foreground: oklch(0.98 0.005 126.493);
--card: oklch(0.144 0.019 125.744);
--card-foreground: oklch(0.98 0.005 126.493);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.101 0.016 125.469);
--primary-foreground: oklch(0.661 0.16 130.977);
--secondary: oklch(0.08 0.018 307.846);
--secondary-foreground: oklch(0.805 0.082 305.113);
--accent: oklch(0.08 0.018 307.846);
--accent-foreground: oklch(0.805 0.082 305.113);
--destructive: oklch(0.666 0.193 32.258);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.101 0.016 125.469);
--chart-1: oklch(0.101 0.016 125.469);
--chart-2: oklch(0.08 0.018 307.846);
--chart-3: oklch(0.08 0.018 307.846);
--chart-4: oklch(0.128 0.03 306.066);
--chart-5: oklch(0.102 0.017 125.426);
}