Upright is a shadcn/ui theme built around a red primary color (#b94b56) with orange accents (#b9774b). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#b94b56) on a red-tinted background (#0c0304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0304black |
| Foreground | #160405black | #faf4f5whitesmoke |
| Card | #fcfcfcsnow | #100405black |
| Card foreground | #120304black | #fcf8f8snow |
| Popover | #ffffffwhite | #0c0304black |
| Popover foreground | #160405black | #faf4f5whitesmoke |
| Primary | #b94b56indianred | #b94b56indianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b94b8dpalevioletred | #b94b8dpalevioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eee8eblinen | #171115black |
| Muted foreground | #624b59dimgray | #b49dabdarkgray |
| Accent | #b9774bperu | #b9774bperu |
| Accent foreground | #000000black | #000000black |
| Destructive | #aa470esaddlebrown | #ef7834tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b94b56indianred | #b94b56indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 4.99:1 | AA |
| Secondary button | 4.71:1 | AA |
| Muted text | 6.48:1 | AA |
| Accent | 5.80:1 | AA |
| Destructive | 5.81:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 4.99:1 | AA |
| Secondary button | 4.71:1 | AA |
| Muted text | 7.38:1 | AAA |
| Accent | 5.80:1 | AA |
| Destructive | 7.41:1 | AAA |
Paste this into your globals.css to use Upright in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.037 14.372);
--muted: oklch(0.935 0.008 340.431);
--muted-foreground: oklch(0.443 0.037 342.02);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.037 14.372);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.129 0.032 13.368);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.561 0.142 16.912);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.578 0.16 346.222);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.63 0.102 53.507);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.522 0.144 44.457);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.561 0.142 16.912);
--chart-1: oklch(0.561 0.142 16.912);
--chart-2: oklch(0.578 0.16 346.222);
--chart-3: oklch(0.63 0.102 53.507);
--chart-4: oklch(0.601 0.151 345.578);
--chart-5: oklch(0.561 0.151 17.51);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.022 11.79);
--foreground: oklch(0.973 0.006 10.224);
--muted: oklch(0.188 0.012 341.656);
--muted-foreground: oklch(0.72 0.032 341.225);
--popover: oklch(0.119 0.022 11.79);
--popover-foreground: oklch(0.973 0.006 10.224);
--card: oklch(0.132 0.025 12.515);
--card-foreground: oklch(0.982 0.004 10.174);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.561 0.142 16.912);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.578 0.16 346.222);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.63 0.102 53.507);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.7 0.166 47.355);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.561 0.142 16.912);
--chart-1: oklch(0.561 0.142 16.912);
--chart-2: oklch(0.578 0.16 346.222);
--chart-3: oklch(0.63 0.102 53.507);
--chart-4: oklch(0.601 0.151 345.578);
--chart-5: oklch(0.561 0.151 17.51);
}