Reliable Purplex is a shadcn/ui theme built around a violet primary color (#5b2183) with purple accents (#832179). The light mode uses a neutral background (#fbf6ff). Dark mode keeps the violet primary (#5b2183) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf6ffghostwhite | #08050bblack |
| Foreground | #060208black | #faf9fbghostwhite |
| Card | #ffffffwhite | #08050bblack |
| Card foreground | #060208black | #faf9fbghostwhite |
| Popover | #fdfbfewhite | #08050bblack |
| Popover foreground | #060208black | #faf9fbghostwhite |
| Primary | #5b2183rebeccapurple | #5b2183rebeccapurple |
| Primary foreground | #eddef7lavender | #eddef7lavender |
| Secondary | #2a2183midnightblue | #2a2183midnightblue |
| Secondary foreground | #e1def7lavender | #e1def7lavender |
| Muted | #d4d2e5gainsboro | #1c1a2dblack |
| Muted foreground | #4e4d56darkslategray | #a9a9b2darkgray |
| Accent | #832179purple | #832179purple |
| Accent foreground | #f7def4lavenderblush | #f7def4lavenderblush |
| Destructive | #d63d05orangered | #fa642etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #ebeaeblavender | #212022black |
| Input | #ebeaeblavender | #212022black |
| Ring | #5b2183rebeccapurple | #5b2183rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 9.75:1 | AAA |
| Muted text | 5.59:1 | AA |
| Accent | 6.82:1 | AA |
| Destructive | 4.64:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 9.75:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 6.82:1 | AA |
| Destructive | 6.93:1 | AA |
Paste this into your globals.css to use Reliable Purplex in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.013 312.406);
--foreground: oklch(0.103 0.023 314.206);
--muted: oklch(0.87 0.026 290.435);
--muted-foreground: oklch(0.424 0.016 290.287);
--popover: oklch(0.991 0.004 312.331);
--popover-foreground: oklch(0.103 0.023 314.206);
--card: oklch(1 0 180);
--card-foreground: oklch(0.103 0.023 314.206);
--border: oklch(0.938 0.002 312.339);
--input: oklch(0.938 0.002 312.339);
--primary: oklch(0.387 0.157 307.99);
--primary-foreground: oklch(0.921 0.036 312.066);
--secondary: oklch(0.333 0.155 278.255);
--secondary-foreground: oklch(0.911 0.033 290.317);
--accent: oklch(0.439 0.165 332.447);
--accent-foreground: oklch(0.928 0.039 329.052);
--destructive: oklch(0.583 0.197 36.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.387 0.157 307.99);
--chart-1: oklch(0.387 0.157 307.99);
--chart-2: oklch(0.333 0.155 278.255);
--chart-3: oklch(0.439 0.165 332.447);
--chart-4: oklch(0.353 0.167 278.013);
--chart-5: oklch(0.387 0.163 307.656);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.018 313.551);
--foreground: oklch(0.983 0.003 312.333);
--muted: oklch(0.23 0.037 287.715);
--muted-foreground: oklch(0.737 0.014 290.654);
--popover: oklch(0.123 0.018 313.551);
--popover-foreground: oklch(0.983 0.003 312.333);
--card: oklch(0.123 0.018 313.551);
--card-foreground: oklch(0.983 0.003 312.333);
--border: oklch(0.246 0.005 312.192);
--input: oklch(0.246 0.005 312.192);
--primary: oklch(0.387 0.157 307.99);
--primary-foreground: oklch(0.921 0.036 312.066);
--secondary: oklch(0.333 0.155 278.255);
--secondary-foreground: oklch(0.911 0.033 290.317);
--accent: oklch(0.439 0.165 332.447);
--accent-foreground: oklch(0.928 0.039 329.052);
--destructive: oklch(0.687 0.194 38.909);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.387 0.157 307.99);
--chart-1: oklch(0.387 0.157 307.99);
--chart-2: oklch(0.333 0.155 278.255);
--chart-3: oklch(0.439 0.165 332.447);
--chart-4: oklch(0.353 0.167 278.013);
--chart-5: oklch(0.387 0.163 307.656);
}