Theism is a shadcn/ui theme built around a deep violet primary color (#372244) with deep purple accents (#442240). The light mode uses a neutral background (#fbf6fd). Dark mode keeps the deep violet primary (#372244) on a neutral background (#060208).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf6fdghostwhite | #060208black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f9f2fcghostwhite | #09030cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf6fdghostwhite | #060208black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #372244darkslategray | #372244darkslategray |
| Primary foreground | #d0bbddthistle | #d0bbddthistle |
| Secondary | #262244midnightblue | #262244midnightblue |
| Secondary foreground | #bfbbddlightsteelblue | #bfbbddlightsteelblue |
| Muted | #e5e3f2lavender | #0f0d1cblack |
| Muted foreground | #4f4c67dimgray | #9b98b3darkgray |
| Accent | #442240darkslategray | #442240darkslategray |
| Accent foreground | #ddbbd9thistle | #ddbbd9thistle |
| Destructive | #80100amaroon | #f0463dtomato |
| Destructive foreground | #fac4c1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #372244darkslategray | #372244darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Theism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.01 312.915);
--foreground: oklch(0 0 0);
--muted: oklch(0.922 0.02 291.36);
--muted-foreground: oklch(0.43 0.044 289.757);
--popover: oklch(0.98 0.01 312.915);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0.015 312.879);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.295 0.065 311.385);
--primary-foreground: oklch(0.821 0.052 312.56);
--secondary: oklch(0.275 0.061 287.027);
--secondary-foreground: oklch(0.807 0.047 290.651);
--accent: oklch(0.31 0.068 331.486);
--accent-foreground: oklch(0.831 0.055 329.881);
--destructive: oklch(0.385 0.146 29.191);
--destructive-foreground: oklch(0.868 0.062 21.919);
--ring: oklch(0.295 0.065 311.385);
--chart-1: oklch(0.295 0.065 311.385);
--chart-2: oklch(0.275 0.061 287.027);
--chart-3: oklch(0.31 0.068 331.486);
--chart-4: oklch(0.3 0.069 286.842);
--chart-5: oklch(0.293 0.07 311.204);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.022 314.82);
--foreground: oklch(1 0 180);
--muted: oklch(0.169 0.031 287.951);
--muted-foreground: oklch(0.692 0.039 290.694);
--popover: oklch(0.104 0.022 314.82);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.026 314.558);
--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.295 0.065 311.385);
--primary-foreground: oklch(0.821 0.052 312.56);
--secondary: oklch(0.275 0.061 287.027);
--secondary-foreground: oklch(0.807 0.047 290.651);
--accent: oklch(0.31 0.068 331.486);
--accent-foreground: oklch(0.831 0.055 329.881);
--destructive: oklch(0.64 0.209 27.724);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.295 0.065 311.385);
--chart-1: oklch(0.295 0.065 311.385);
--chart-2: oklch(0.275 0.061 287.027);
--chart-3: oklch(0.31 0.068 331.486);
--chart-4: oklch(0.3 0.069 286.842);
--chart-5: oklch(0.293 0.07 311.204);
}