Upbeat is a shadcn/ui theme built around a pink primary color (#e896b6) with teal accents (#96e8c9). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the pink primary (#e896b6) on a pink-tinted background (#0c0307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #0c0307black |
| Foreground | #000000black | #f9f5f7whitesmoke |
| Card | #fbf8fasnow | #100509black |
| Card foreground | #000000black | #fbf9fasnow |
| Popover | #fbf8fasnow | #100509black |
| Popover foreground | #000000black | #fbf9fasnow |
| Primary | #e896b6lightpink | #e896b6lightpink |
| Primary foreground | #3f0e21black | #3f0e21black |
| Secondary | #96e8c9aquamarine | #96e8c9aquamarine |
| Secondary foreground | #0e3f2cdarkslategray | #0e3f2cdarkslategray |
| Muted | #d4e8e0gainsboro | #172b23black |
| Muted foreground | #374842darkslategray | #b7c8c1silver |
| Accent | #96e8c9aquamarine | #96e8c9aquamarine |
| Accent foreground | #0e3f2cdarkslategray | #0e3f2cdarkslategray |
| Destructive | #af1308firebrick | #f42415orangered |
| Destructive foreground | #feedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e896b6lightpink | #e896b6lightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 8.55:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Upbeat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 351.645);
--foreground: oklch(0 0 0);
--muted: oklch(0.913 0.023 170.833);
--muted-foreground: oklch(0.385 0.024 169.681);
--popover: oklch(0.983 0.004 351.7);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.004 351.7);
--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.765 0.105 355.267);
--primary-foreground: oklch(0.255 0.078 0.909);
--secondary: oklch(0.87 0.092 168.042);
--secondary-foreground: oklch(0.329 0.062 163.364);
--accent: oklch(0.87 0.092 168.042);
--accent-foreground: oklch(0.329 0.062 163.364);
--destructive: oklch(0.481 0.188 29.761);
--destructive-foreground: oklch(0.959 0.019 22.444);
--ring: oklch(0.765 0.105 355.267);
--chart-1: oklch(0.765 0.105 355.267);
--chart-2: oklch(0.87 0.092 168.042);
--chart-3: oklch(0.87 0.092 168.042);
--chart-4: oklch(0.884 0.081 168.576);
--chart-5: oklch(0.764 0.11 355.447);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.022 351.468);
--foreground: oklch(0.975 0.005 351.734);
--muted: oklch(0.27 0.03 167.828);
--muted-foreground: oklch(0.817 0.02 170.865);
--popover: oklch(0.135 0.025 353.076);
--popover-foreground: oklch(0.983 0.003 351.686);
--card: oklch(0.135 0.025 353.076);
--card-foreground: oklch(0.983 0.003 351.686);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.765 0.105 355.267);
--primary-foreground: oklch(0.255 0.078 0.909);
--secondary: oklch(0.87 0.092 168.042);
--secondary-foreground: oklch(0.329 0.062 163.364);
--accent: oklch(0.87 0.092 168.042);
--accent-foreground: oklch(0.329 0.062 163.364);
--destructive: oklch(0.619 0.238 29.713);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.105 355.267);
--chart-1: oklch(0.765 0.105 355.267);
--chart-2: oklch(0.87 0.092 168.042);
--chart-3: oklch(0.87 0.092 168.042);
--chart-4: oklch(0.884 0.081 168.576);
--chart-5: oklch(0.764 0.11 355.447);
}