Reward is a shadcn/ui theme built around a near-white primary color (#fdfbfe) with near-white accents (#fcfefb). The light mode uses a neutral background (#faf7fd). Dark mode keeps the near-white primary (#fdfbfe) on a violet-tinted background (#08040c).
| Token | Light | Dark |
|---|---|---|
| Background | #faf7fdghostwhite | #08040cblack |
| Foreground | #0b0311black | #f8f6f8whitesmoke |
| Card | #f8f3fcghostwhite | #0b0510black |
| Card foreground | #09030dblack | #faf9fbghostwhite |
| Popover | #f8f3fcghostwhite | #0b0510black |
| Popover foreground | #09030dblack | #faf9fbghostwhite |
| Primary | #fdfbfewhite | #fdfbfewhite |
| Primary foreground | #6b3790rebeccapurple | #6b3790rebeccapurple |
| Secondary | #fcfefbwhite | #fcfefbwhite |
| Secondary foreground | #2d461bdarkslategray | #2d461bdarkslategray |
| Muted | #ecf4e6beige | #11190bblack |
| Muted foreground | #585f54dimgray | #a5aba0darkgray |
| Accent | #fcfefbwhite | #fcfefbwhite |
| Accent foreground | #2d461bdarkslategray | #2d461bdarkslategray |
| Destructive | #831e07maroon | #f2370dorangered |
| Destructive foreground | #fccbc0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdfbfewhite | #fdfbfewhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 10.31:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 10.31:1 | AAA |
| Destructive | 6.72:1 | AA |
| Text on background | 18.93:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 10.31:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 10.31:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Reward in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 311.657);
--foreground: oklch(0.127 0.037 311.826);
--muted: oklch(0.958 0.021 131.903);
--muted-foreground: oklch(0.475 0.019 132.049);
--popover: oklch(0.971 0.012 311.622);
--popover-foreground: oklch(0.115 0.032 313.5);
--card: oklch(0.971 0.012 311.622);
--card-foreground: oklch(0.115 0.032 313.5);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.991 0.003 311.697);
--primary-foreground: oklch(0.445 0.146 308.497);
--secondary: oklch(0.994 0.003 131.752);
--secondary-foreground: oklch(0.363 0.075 133.977);
--accent: oklch(0.994 0.003 131.752);
--accent-foreground: oklch(0.363 0.075 133.977);
--destructive: oklch(0.402 0.14 33.41);
--destructive-foreground: oklch(0.882 0.058 32.829);
--ring: oklch(0.991 0.003 311.697);
--chart-1: oklch(0.991 0.003 311.697);
--chart-2: oklch(0.994 0.003 131.752);
--chart-3: oklch(0.994 0.003 131.752);
--chart-4: oklch(1.012 0.007 311.672);
--chart-5: oklch(0.991 0.004 311.695);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.025 313.227);
--foreground: oklch(0.976 0.003 311.7);
--muted: oklch(0.2 0.03 133.132);
--muted-foreground: oklch(0.733 0.017 131.912);
--popover: oklch(0.131 0.029 311.72);
--popover-foreground: oklch(0.984 0.002 311.709);
--card: oklch(0.131 0.029 311.72);
--card-foreground: oklch(0.984 0.002 311.709);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.991 0.003 311.697);
--primary-foreground: oklch(0.445 0.146 308.497);
--secondary: oklch(0.994 0.003 131.752);
--secondary-foreground: oklch(0.363 0.075 133.977);
--accent: oklch(0.994 0.003 131.752);
--accent-foreground: oklch(0.363 0.075 133.977);
--destructive: oklch(0.627 0.227 32.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.991 0.003 311.697);
--chart-1: oklch(0.991 0.003 311.697);
--chart-2: oklch(0.994 0.003 131.752);
--chart-3: oklch(0.994 0.003 131.752);
--chart-4: oklch(1.012 0.007 311.672);
--chart-5: oklch(0.991 0.004 311.695);
}