Pagan is a shadcn/ui theme built around a violet primary color (#421f89) with green accents (#66891f). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#421f89) on a violet-tinted background (#09060f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #09060fblack |
| Foreground | #080312black | #f7f6f9whitesmoke |
| Card | #ffffffwhite | #09060fblack |
| Card foreground | #080312black | #f7f6f9whitesmoke |
| Popover | #ffffffwhite | #09060fblack |
| Popover foreground | #080312black | #f7f6f9whitesmoke |
| Primary | #421f89darkslateblue | #421f89darkslateblue |
| Primary foreground | #e9e2f8lavender | #e9e2f8lavender |
| Secondary | #66891folivedrab | #66891folivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaede3beige | #191c12black |
| Muted foreground | #666c5adimgray | #9fa593darkgray |
| Accent | #66891folivedrab | #66891folivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ad4410saddlebrown | #e05915chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #421f89darkslateblue | #421f89darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 9.30:1 | AAA |
| Secondary button | 4.06:1 | AA Large |
| Muted text | 4.60:1 | AA |
| Accent | 4.06:1 | AA Large |
| Destructive | 5.81:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 9.30:1 | AAA |
| Secondary button | 4.06:1 | AA Large |
| Muted text | 6.79:1 | AA |
| Accent | 4.06:1 | AA Large |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Pagan in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.039 300.251);
--muted: oklch(0.942 0.015 121.741);
--muted-foreground: oklch(0.522 0.028 122.376);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.039 300.251);
--card: oklch(1 0 180);
--card-foreground: oklch(0.119 0.039 300.251);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.36 0.162 291.147);
--primary-foreground: oklch(0.925 0.031 300.95);
--secondary: oklch(0.583 0.136 126.749);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.583 0.136 126.749);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.522 0.149 42.187);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.36 0.162 291.147);
--chart-1: oklch(0.36 0.162 291.147);
--chart-2: oklch(0.583 0.136 126.749);
--chart-3: oklch(0.583 0.136 126.749);
--chart-4: oklch(0.621 0.146 126.807);
--chart-5: oklch(0.359 0.168 290.4);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.023 300.737);
--foreground: oklch(0.974 0.004 301.427);
--muted: oklch(0.22 0.02 123.04);
--muted-foreground: oklch(0.71 0.026 122.093);
--popover: oklch(0.13 0.023 300.737);
--popover-foreground: oklch(0.974 0.004 301.427);
--card: oklch(0.13 0.023 300.737);
--card-foreground: oklch(0.974 0.004 301.427);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.36 0.162 291.147);
--primary-foreground: oklch(0.925 0.031 300.95);
--secondary: oklch(0.583 0.136 126.749);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.583 0.136 126.749);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.183 41.774);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.36 0.162 291.147);
--chart-1: oklch(0.36 0.162 291.147);
--chart-2: oklch(0.583 0.136 126.749);
--chart-3: oklch(0.583 0.136 126.749);
--chart-4: oklch(0.621 0.146 126.807);
--chart-5: oklch(0.359 0.168 290.4);
}