Rewarding is a shadcn/ui theme built around a violet primary color (#632692) with muted light violet accents (#d2cdd5). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#632692) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #08030dblack | #f8f6f9whitesmoke |
| Card | #ffffffwhite | #030104black |
| Card foreground | #08030dblack | #f8f6f9whitesmoke |
| Popover | #ffffffwhite | #030104black |
| Popover foreground | #08030dblack | #f8f6f9whitesmoke |
| Primary | #632692rebeccapurple | #632692rebeccapurple |
| Primary foreground | #f6effbwhitesmoke | #f6effbwhitesmoke |
| Secondary | #d2cdd5lightgrey | #2c2531darkslategray |
| Secondary foreground | #39333ddarkslategray | #c5bccdsilver |
| Muted | #eee7f3lavender | #130c18black |
| Muted foreground | #5a565ddimgray | #a6a2a9darkgray |
| Accent | #d2cdd5lightgrey | #2c2531darkslategray |
| Accent foreground | #39333ddarkslategray | #c5bccdsilver |
| Destructive | #a54312saddlebrown | #dc5a18chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #632692rebeccapurple | #632692rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Rewarding in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.116 0.03 312.761);
--muted: oklch(0.937 0.018 310.92);
--muted-foreground: oklch(0.458 0.012 310.848);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.116 0.03 312.761);
--card: oklch(1 0 180);
--card-foreground: oklch(0.116 0.03 312.761);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.414 0.169 306.071);
--primary-foreground: oklch(0.96 0.017 310.926);
--secondary: oklch(0.854 0.012 310.958);
--secondary-foreground: oklch(0.331 0.019 310.584);
--accent: oklch(0.854 0.012 310.958);
--accent-foreground: oklch(0.331 0.019 310.584);
--destructive: oklch(0.509 0.141 42.706);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.169 306.071);
--chart-1: oklch(0.414 0.169 306.071);
--chart-2: oklch(0.854 0.012 310.958);
--chart-3: oklch(0.854 0.012 310.958);
--chart-4: oklch(0.879 0.01 310.983);
--chart-5: oklch(0.414 0.175 305.687);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.013 312.395);
--foreground: oklch(0.975 0.004 311.047);
--muted: oklch(0.169 0.027 309.673);
--muted-foreground: oklch(0.718 0.011 310.949);
--popover: oklch(0.084 0.013 312.395);
--popover-foreground: oklch(0.975 0.004 311.047);
--card: oklch(0.084 0.013 312.395);
--card-foreground: oklch(0.975 0.004 311.047);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.414 0.169 306.071);
--primary-foreground: oklch(0.96 0.017 310.926);
--secondary: oklch(0.278 0.024 310.338);
--secondary-foreground: oklch(0.808 0.025 310.817);
--accent: oklch(0.278 0.024 310.338);
--accent-foreground: oklch(0.808 0.025 310.817);
--destructive: oklch(0.627 0.178 42.276);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.169 306.071);
--chart-1: oklch(0.414 0.169 306.071);
--chart-2: oklch(0.278 0.024 310.338);
--chart-3: oklch(0.278 0.024 310.338);
--chart-4: oklch(0.307 0.027 310.308);
--chart-5: oklch(0.414 0.175 305.687);
}