Upright is a shadcn/ui theme built around a light blue primary color (#f0f5fa) with light orange accents (#faf4f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#f0f5fa) on a blue-tinted background (#070b0d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070b0dblack |
| Foreground | #010304black | #f8fafbghostwhite |
| Card | #ffffffwhite | #070b0dblack |
| Card foreground | #010304black | #f8fafbghostwhite |
| Popover | #ffffffwhite | #070b0dblack |
| Popover foreground | #010304black | #f8fafbghostwhite |
| Primary | #f0f5faaliceblue | #f0f5faaliceblue |
| Primary foreground | #306088darkslateblue | #306088darkslateblue |
| Secondary | #faf4f0seashell | #faf4f0seashell |
| Secondary foreground | #3c2715darkslategray | #3c2715darkslategray |
| Muted | #eaddd2gainsboro | #2d2015black |
| Muted foreground | #575452dimgray | #adaba8darkgray |
| Accent | #faf4f0seashell | #faf4f0seashell |
| Accent foreground | #3c2715darkslategray | #3c2715darkslategray |
| Destructive | #b1480bsaddlebrown | #f27831tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0f5faaliceblue | #f0f5faaliceblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 12.91:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 12.91:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 12.91:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 12.91:1 | AAA |
| Destructive | 7.48: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.09 0.012 232.589);
--muted: oklch(0.904 0.021 61.881);
--muted-foreground: oklch(0.447 0.005 62.04);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.09 0.012 232.589);
--card: oklch(1 0 180);
--card-foreground: oklch(0.09 0.012 232.589);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.008 242.306);
--primary-foreground: oklch(0.474 0.083 245.525);
--secondary: oklch(0.971 0.008 62.081);
--secondary-foreground: oklch(0.294 0.043 59.261);
--accent: oklch(0.971 0.008 62.081);
--accent-foreground: oklch(0.294 0.043 59.261);
--destructive: oklch(0.535 0.151 43.845);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.008 242.306);
--chart-1: oklch(0.968 0.008 242.306);
--chart-2: oklch(0.971 0.008 62.081);
--chart-3: oklch(0.971 0.008 62.081);
--chart-4: oklch(0.993 0.002 62.166);
--chart-5: oklch(0.968 0.009 242.313);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.009 240.652);
--foreground: oklch(0.984 0.003 242.229);
--muted: oklch(0.256 0.029 60.327);
--muted-foreground: oklch(0.742 0.005 62.112);
--popover: oklch(0.144 0.009 240.652);
--popover-foreground: oklch(0.984 0.003 242.229);
--card: oklch(0.144 0.009 240.652);
--card-foreground: oklch(0.984 0.003 242.229);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.008 242.306);
--primary-foreground: oklch(0.474 0.083 245.525);
--secondary: oklch(0.971 0.008 62.081);
--secondary-foreground: oklch(0.294 0.043 59.261);
--accent: oklch(0.971 0.008 62.081);
--accent-foreground: oklch(0.294 0.043 59.261);
--destructive: oklch(0.703 0.171 47.004);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.968 0.008 242.306);
--chart-1: oklch(0.968 0.008 242.306);
--chart-2: oklch(0.971 0.008 62.081);
--chart-3: oklch(0.971 0.008 62.081);
--chart-4: oklch(0.993 0.002 62.166);
--chart-5: oklch(0.968 0.009 242.313);
}