Rewarding is a shadcn/ui theme built around a near-white primary color (#fafbf8) with near-white accents (#fbf8fa). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-white primary (#fafbf8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #0e1406black | #fdfdfcwhite |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #0e1406black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #0e1406black | #fdfdfcwhite |
| Primary | #fafbf8snow | #fafbf8snow |
| Primary foreground | #313b21darkslategray | #313b21darkslategray |
| Secondary | #f8fafbghostwhite | #f8fafbghostwhite |
| Secondary foreground | #21313bdarkslategray | #21313bdarkslategray |
| Muted | #dde7eelavender | #111b22black |
| Muted foreground | #424243darkslategray | #bcbdbdsilver |
| Accent | #fbf8fasnow | #fbf8fasnow |
| Accent foreground | #7d4567dimgray | #7d4567dimgray |
| Destructive | #b32c14firebrick | #cf3217firebrick |
| Destructive foreground | #fefbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafbf8snow | #fafbf8snow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.45:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 11.40:1 | AAA |
| Secondary button | 12.83:1 | AAA |
| Muted text | 8.02:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 11.40:1 | AAA |
| Secondary button | 12.83:1 | AAA |
| Muted text | 9.23:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 5.10:1 | AA |
Paste this into your globals.css to use Rewarding in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 123.687);
--foreground: oklch(0.18 0.029 125.671);
--muted: oklch(0.923 0.014 234.723);
--muted-foreground: oklch(0.38 0.001 234.559);
--popover: oklch(0.995 0.003 123.687);
--popover-foreground: oklch(0.18 0.029 125.671);
--card: oklch(0.995 0.003 123.687);
--card-foreground: oklch(0.18 0.029 125.671);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.988 0.004 123.7);
--primary-foreground: oklch(0.336 0.046 125.852);
--secondary: oklch(0.985 0.002 234.542);
--secondary-foreground: oklch(0.303 0.029 236.245);
--accent: oklch(0.983 0.004 339.557);
--accent-foreground: oklch(0.469 0.09 343.383);
--destructive: oklch(0.505 0.175 32.256);
--destructive-foreground: oklch(0.991 0.004 29.481);
--ring: oklch(0.988 0.004 123.7);
--chart-1: oklch(0.988 0.004 123.7);
--chart-2: oklch(0.985 0.002 234.542);
--chart-3: oklch(0.983 0.004 339.557);
--chart-4: oklch(1.008 0.001 54.489);
--chart-5: oklch(0.988 0.004 123.707);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 123.661);
--muted: oklch(0.217 0.019 236.093);
--muted-foreground: oklch(0.797 0.001 234.527);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 123.661);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 123.661);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.988 0.004 123.7);
--primary-foreground: oklch(0.336 0.046 125.852);
--secondary: oklch(0.985 0.002 234.542);
--secondary-foreground: oklch(0.303 0.029 236.245);
--accent: oklch(0.983 0.004 339.557);
--accent-foreground: oklch(0.469 0.09 343.383);
--destructive: oklch(0.561 0.196 32.218);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.988 0.004 123.7);
--chart-1: oklch(0.988 0.004 123.7);
--chart-2: oklch(0.985 0.002 234.542);
--chart-3: oklch(0.983 0.004 339.557);
--chart-4: oklch(1.008 0.001 54.489);
--chart-5: oklch(0.988 0.004 123.707);
}