Raffle is a shadcn/ui theme built around a vivid deep violet primary color (#110420) with muted violet accents (#bba9d0). The light mode uses a neutral background (#faf7fd). Dark mode keeps the vivid deep violet primary (#110420) on a violet-tinted background (#07050b).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #07050bblack |
| Foreground | #020105black | #ffffffwhite |
| Card | #faf7fdghostwhite | #07050bblack |
| Card foreground | #020105black | #ffffffwhite |
| Popover | #faf7fdghostwhite | #07050bblack |
| Popover foreground | #020105black | #ffffffwhite |
| Primary | #110420black | #110420black |
| Primary foreground | #dcc4f7thistle | #dcc4f7thistle |
| Secondary | #cbc2d6thistle | #1e1b22black |
| Secondary foreground | #32293ddarkslategray | #b7afc0silver |
| Muted | #e8e1eflavender | #16101eblack |
| Muted foreground | #3f3749darkslategray | #bfb6c8silver |
| Accent | #bba9d0silver | #2d2438darkslategray |
| Accent foreground | #23192eblack | #c6bbd3thistle |
| Destructive | #ce4703chocolate | #fb6418orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #110420black | #110420black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 12.50:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.64:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 12.50:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 9.52:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.94:1 | AA |
Paste this into your globals.css to use Raffle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 307.008);
--foreground: oklch(0.075 0.026 309.351);
--muted: oklch(0.919 0.02 306.841);
--muted-foreground: oklch(0.352 0.032 305.985);
--popover: oklch(0.98 0.008 307.008);
--popover-foreground: oklch(0.075 0.026 309.351);
--card: oklch(0.98 0.008 307.008);
--card-foreground: oklch(0.075 0.026 309.351);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.153 0.059 302.64);
--primary-foreground: oklch(0.858 0.074 306.053);
--secondary: oklch(0.828 0.028 306.692);
--secondary-foreground: oklch(0.301 0.036 305.616);
--accent: oklch(0.764 0.057 306.192);
--accent-foreground: oklch(0.237 0.041 304.931);
--destructive: oklch(0.58 0.182 39.698);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.153 0.059 302.64);
--chart-1: oklch(0.153 0.059 302.64);
--chart-2: oklch(0.828 0.028 306.692);
--chart-3: oklch(0.764 0.057 306.192);
--chart-4: oklch(0.855 0.024 306.769);
--chart-5: oklch(0.152 0.061 302.503);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.017 308.014);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.03 305.12);
--muted-foreground: oklch(0.79 0.027 306.702);
--popover: oklch(0.122 0.017 308.014);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.017 308.014);
--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.153 0.059 302.64);
--primary-foreground: oklch(0.858 0.074 306.053);
--secondary: oklch(0.229 0.015 306.319);
--secondary-foreground: oklch(0.766 0.026 306.703);
--accent: oklch(0.28 0.039 305.397);
--accent-foreground: oklch(0.808 0.036 306.561);
--destructive: oklch(0.688 0.2 41.674);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.153 0.059 302.64);
--chart-1: oklch(0.153 0.059 302.64);
--chart-2: oklch(0.229 0.015 306.319);
--chart-3: oklch(0.28 0.039 305.397);
--chart-4: oklch(0.259 0.018 306.263);
--chart-5: oklch(0.152 0.061 302.503);
}