Cup is a shadcn/ui theme built around a deep purple primary color (#4d2852) with deep pink accents (#522842). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the deep purple primary (#4d2852) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fbsnow | #070208black |
| Foreground | #0e0510black | #ffffffwhite |
| Card | #fbf8fbsnow | #070208black |
| Card foreground | #0e0510black | #ffffffwhite |
| Popover | #fbf8fbsnow | #070208black |
| Popover foreground | #0e0510black | #ffffffwhite |
| Primary | #4d2852darkslategray | #4d2852darkslategray |
| Primary foreground | #e1c8e4thistle | #e1c8e4thistle |
| Secondary | #382852darkslategray | #382852darkslategray |
| Secondary foreground | #d3c8e4thistle | #d3c8e4thistle |
| Muted | #ece9f2lavender | #110d16black |
| Muted foreground | #544b63dimgray | #a59cb4darkgray |
| Accent | #522842darkslategray | #522842darkslategray |
| Accent foreground | #e4c8d9thistle | #e4c8d9thistle |
| Destructive | #702405maroon | #db460aorangered |
| Destructive foreground | #fbc3aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d2852darkslategray | #4d2852darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 7.32:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Cup in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 322.13);
--foreground: oklch(0.137 0.031 323.196);
--muted: oklch(0.938 0.013 303.435);
--muted-foreground: oklch(0.43 0.041 302.213);
--popover: oklch(0.983 0.005 322.13);
--popover-foreground: oklch(0.137 0.031 323.196);
--card: oklch(0.983 0.005 322.13);
--card-foreground: oklch(0.137 0.031 323.196);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.345 0.083 322.779);
--primary-foreground: oklch(0.863 0.046 322.291);
--secondary: oklch(0.318 0.074 299.911);
--secondary-foreground: oklch(0.851 0.04 302.95);
--accent: oklch(0.343 0.072 343.735);
--accent-foreground: oklch(0.862 0.038 340.426);
--destructive: oklch(0.373 0.115 38.81);
--destructive-foreground: oklch(0.861 0.072 42.59);
--ring: oklch(0.345 0.083 322.779);
--chart-1: oklch(0.345 0.083 322.779);
--chart-2: oklch(0.318 0.074 299.911);
--chart-3: oklch(0.343 0.072 343.735);
--chart-4: oklch(0.343 0.081 299.812);
--chart-5: oklch(0.344 0.09 322.808);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.023 323.758);
--foreground: oklch(1 0 180);
--muted: oklch(0.169 0.02 301.883);
--muted-foreground: oklch(0.709 0.036 302.881);
--popover: oklch(0.108 0.023 323.758);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.023 323.758);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.345 0.083 322.779);
--primary-foreground: oklch(0.863 0.046 322.291);
--secondary: oklch(0.318 0.074 299.911);
--secondary-foreground: oklch(0.851 0.04 302.95);
--accent: oklch(0.343 0.072 343.735);
--accent-foreground: oklch(0.862 0.038 340.426);
--destructive: oklch(0.601 0.195 37.393);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.345 0.083 322.779);
--chart-1: oklch(0.345 0.083 322.779);
--chart-2: oklch(0.318 0.074 299.911);
--chart-3: oklch(0.343 0.072 343.735);
--chart-4: oklch(0.343 0.081 299.812);
--chart-5: oklch(0.344 0.09 322.808);
}