Cheap is a shadcn/ui theme built around a deep purple primary color (#492241) with deep green accents (#22492a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#492241) on a neutral background (#040203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040203black |
| Foreground | #000000black | #f9f6f8whitesmoke |
| Card | #fcfcfcsnow | #070306black |
| Card foreground | #000000black | #fbf9fasnow |
| Popover | #ffffffwhite | #040203black |
| Popover foreground | #000000black | #f9f6f8whitesmoke |
| Primary | #492241darkslategray | #492241darkslategray |
| Primary foreground | #e0bdd9thistle | #e0bdd9thistle |
| Secondary | #22492adarkslategray | #22492adarkslategray |
| Secondary foreground | #bde0c4lightgrey | #bde0c4lightgrey |
| Muted | #cee8d4gainsboro | #17311cblack |
| Muted foreground | #545f56dimgray | #a0aba3darkgray |
| Accent | #22492adarkslategray | #22492adarkslategray |
| Accent foreground | #bde0c4lightgrey | #bde0c4lightgrey |
| Destructive | #67180amaroon | #ed5a40tomato |
| Destructive foreground | #f7b6ablightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #492241darkslategray | #492241darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.08:1 | AAA |
| Muted text | 5.12:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.08:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.08:1 | AAA |
| Destructive | 6.13:1 | AA |
Paste this into your globals.css to use Cheap in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.038 151.935);
--muted-foreground: oklch(0.472 0.019 151.975);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.318 0.075 335.992);
--primary-foreground: oklch(0.837 0.055 333.604);
--secondary: oklch(0.368 0.07 149.042);
--secondary-foreground: oklch(0.875 0.054 151.61);
--accent: oklch(0.368 0.07 149.042);
--accent-foreground: oklch(0.875 0.054 151.61);
--destructive: oklch(0.341 0.114 32.347);
--destructive-foreground: oklch(0.834 0.078 30.087);
--ring: oklch(0.318 0.075 335.992);
--chart-1: oklch(0.318 0.075 335.992);
--chart-2: oklch(0.368 0.07 149.042);
--chart-3: oklch(0.368 0.07 149.042);
--chart-4: oklch(0.403 0.078 148.952);
--chart-5: oklch(0.318 0.081 336.239);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.013 333.232);
--foreground: oklch(0.976 0.005 332.689);
--muted: oklch(0.284 0.049 149.448);
--muted-foreground: oklch(0.731 0.017 152.249);
--popover: oklch(0.087 0.013 333.232);
--popover-foreground: oklch(0.976 0.005 332.689);
--card: oklch(0.11 0.017 333.232);
--card-foreground: oklch(0.984 0.003 332.664);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.318 0.075 335.992);
--primary-foreground: oklch(0.837 0.055 333.604);
--secondary: oklch(0.368 0.07 149.042);
--secondary-foreground: oklch(0.875 0.054 151.61);
--accent: oklch(0.368 0.07 149.042);
--accent-foreground: oklch(0.875 0.054 151.61);
--destructive: oklch(0.657 0.187 32.227);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.318 0.075 335.992);
--chart-1: oklch(0.318 0.075 335.992);
--chart-2: oklch(0.368 0.07 149.042);
--chart-3: oklch(0.368 0.07 149.042);
--chart-4: oklch(0.403 0.078 148.952);
--chart-5: oklch(0.318 0.081 336.239);
}