Discount is a shadcn/ui theme built around a muted deep green primary color (#141f19) with muted deep orange accents (#1f1914). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted deep green primary (#141f19) on a neutral background (#030805).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030805black |
| Foreground | #010905black | #f8fcfamintcream |
| Card | #fbfefcwhite | #030805black |
| Card foreground | #010905black | #f8fcfamintcream |
| Popover | #fbfefcwhite | #030805black |
| Popover foreground | #010905black | #f8fcfamintcream |
| Primary | #141f19black | #141f19black |
| Primary foreground | #a2c3b1darkgray | #a2c3b1darkgray |
| Secondary | #19141fblack | #19141fblack |
| Secondary foreground | #b1a2c3darkgray | #b1a2c3darkgray |
| Muted | #dacee8gainsboro | #231731midnightblue |
| Muted foreground | #514d56darkslategray | #ada9b2darkgray |
| Accent | #1f1914black | #1f1914black |
| Accent foreground | #c3b1a2tan | #c3b1a2tan |
| Destructive | #78200dmaroon | #e9512ftomato |
| Destructive foreground | #f8c9bepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #141f19black | #141f19black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 8.86:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.38:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Discount in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 163.366);
--foreground: oklch(0.125 0.021 163.53);
--muted: oklch(0.87 0.037 306.589);
--muted-foreground: oklch(0.427 0.017 306.627);
--popover: oklch(0.994 0.003 163.366);
--popover-foreground: oklch(0.125 0.021 163.53);
--card: oklch(0.994 0.003 163.366);
--card-foreground: oklch(0.125 0.021 163.53);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.226 0.019 161.118);
--primary-foreground: oklch(0.787 0.042 162.013);
--secondary: oklch(0.203 0.022 305.764);
--secondary-foreground: oklch(0.737 0.049 306.308);
--accent: oklch(0.219 0.013 63.253);
--accent-foreground: oklch(0.772 0.029 63.597);
--destructive: oklch(0.384 0.125 33.833);
--destructive-foreground: oklch(0.874 0.056 32.822);
--ring: oklch(0.226 0.019 161.118);
--chart-1: oklch(0.226 0.019 161.118);
--chart-2: oklch(0.203 0.022 305.764);
--chart-3: oklch(0.219 0.013 63.253);
--chart-4: oklch(0.233 0.028 305.632);
--chart-5: oklch(0.228 0.021 160.785);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.014 163.505);
--foreground: oklch(0.987 0.004 163.332);
--muted: oklch(0.233 0.05 304.296);
--muted-foreground: oklch(0.74 0.015 306.867);
--popover: oklch(0.122 0.014 163.505);
--popover-foreground: oklch(0.987 0.004 163.332);
--card: oklch(0.122 0.014 163.505);
--card-foreground: oklch(0.987 0.004 163.332);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.226 0.019 161.118);
--primary-foreground: oklch(0.787 0.042 162.013);
--secondary: oklch(0.203 0.022 305.764);
--secondary-foreground: oklch(0.737 0.049 306.308);
--accent: oklch(0.219 0.013 63.253);
--accent-foreground: oklch(0.772 0.029 63.597);
--destructive: oklch(0.639 0.194 34.072);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.226 0.019 161.118);
--chart-1: oklch(0.226 0.019 161.118);
--chart-2: oklch(0.203 0.022 305.764);
--chart-3: oklch(0.219 0.013 63.253);
--chart-4: oklch(0.233 0.028 305.632);
--chart-5: oklch(0.228 0.021 160.785);
}