Rewarding is a shadcn/ui theme built around a light teal primary color (#ade9eb) with muted light teal accents (#dbe6e6). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the light teal primary (#ade9eb) on a teal-tinted background (#060f0f).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfcmintcream | #060f0fblack |
| Foreground | #050f10black | #fcfdfdwhite |
| Card | #f7fcfcmintcream | #060f0fblack |
| Card foreground | #050f10black | #fcfdfdwhite |
| Popover | #f7fcfcmintcream | #060f0fblack |
| Popover foreground | #050f10black | #fcfdfdwhite |
| Primary | #ade9ebpaleturquoise | #ade9ebpaleturquoise |
| Primary foreground | #145052darkslategray | #145052darkslategray |
| Secondary | #dbe6e6gainsboro | #2a3232darkslategray |
| Secondary foreground | #3b5354darkslategray | #c2ccccsilver |
| Muted | #ecf3f4whitesmoke | #0b1313black |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #dbe6e6gainsboro | #2a3232darkslategray |
| Accent foreground | #3b5354darkslategray | #c2ccccsilver |
| Destructive | #dd5308chocolate | #f15a09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ade9ebpaleturquoise | #ade9ebpaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 6.43:1 | AA |
| Muted text | 7.53:1 | AAA |
| Accent | 6.43:1 | AA |
| Destructive | 3.94:1 | AA Large |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 8.96:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Rewarding in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 199.533);
--foreground: oklch(0.159 0.017 198.176);
--muted: oklch(0.959 0.008 199.494);
--muted-foreground: oklch(0.418 0 173.29);
--popover: oklch(0.988 0.005 199.533);
--popover-foreground: oklch(0.159 0.017 198.176);
--card: oklch(0.988 0.005 199.533);
--card-foreground: oklch(0.159 0.017 198.176);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.06 198.8);
--primary-foreground: oklch(0.394 0.059 198.41);
--secondary: oklch(0.916 0.011 199.437);
--secondary-foreground: oklch(0.424 0.03 198.76);
--accent: oklch(0.916 0.011 199.437);
--accent-foreground: oklch(0.424 0.03 198.76);
--destructive: oklch(0.62 0.187 41.271);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.06 198.8);
--chart-1: oklch(0.893 0.06 198.8);
--chart-2: oklch(0.916 0.011 199.437);
--chart-3: oklch(0.916 0.011 199.437);
--chart-4: oklch(0.937 0.009 199.482);
--chart-5: oklch(0.896 0.063 198.772);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.015 198.336);
--foreground: oklch(0.994 0.002 199.581);
--muted: oklch(0.179 0.011 198.84);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.157 0.015 198.336);
--popover-foreground: oklch(0.994 0.002 199.581);
--card: oklch(0.157 0.015 198.336);
--card-foreground: oklch(0.994 0.002 199.581);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.893 0.06 198.8);
--primary-foreground: oklch(0.394 0.059 198.41);
--secondary: oklch(0.309 0.011 199.146);
--secondary-foreground: oklch(0.837 0.011 199.433);
--accent: oklch(0.309 0.011 199.146);
--accent-foreground: oklch(0.837 0.011 199.433);
--destructive: oklch(0.66 0.2 41.107);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.06 198.8);
--chart-1: oklch(0.893 0.06 198.8);
--chart-2: oklch(0.309 0.011 199.146);
--chart-3: oklch(0.309 0.011 199.146);
--chart-4: oklch(0.34 0.012 199.133);
--chart-5: oklch(0.896 0.063 198.772);
}