Rectangle is a shadcn/ui theme built around an orange primary color (#875a26) with blue accents (#265387). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#875a26) on an orange-tinted background (#0c0804).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0804black |
| Foreground | #090501black | #fdfdfbsnow |
| Card | #fcfcfcsnow | #100b05black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #ffffffwhite | #0c0804black |
| Popover foreground | #090501black | #fdfdfbsnow |
| Primary | #875a26sienna | #875a26sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #265387darkslateblue | #265387darkslateblue |
| Secondary foreground | #e7eff8lavender | #e7eff8lavender |
| Muted | #ced8e4gainsboro | #1b2631darkslategray |
| Muted foreground | #4b5662darkslategray | #9da8b4darkgray |
| Accent | #265387darkslateblue | #265387darkslateblue |
| Accent foreground | #e7eff8lavender | #e7eff8lavender |
| Destructive | #d04a16chocolate | #eb7242tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #875a26sienna | #875a26sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 5.96:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 5.18:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 4.49:1 | AA Large |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 5.96:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.37:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 7.01:1 | AAA |
Paste this into your globals.css to use Rectangle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.018 81.788);
--muted: oklch(0.878 0.02 251.626);
--muted-foreground: oklch(0.448 0.024 251.836);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.121 0.018 81.788);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.096 0.015 81.788);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.507 0.09 66.691);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.439 0.099 253.567);
--secondary-foreground: oklch(0.949 0.015 251.576);
--accent: oklch(0.439 0.099 253.567);
--accent-foreground: oklch(0.949 0.015 251.576);
--destructive: oklch(0.588 0.178 38.795);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.507 0.09 66.691);
--chart-1: oklch(0.507 0.09 66.691);
--chart-2: oklch(0.439 0.099 253.567);
--chart-3: oklch(0.439 0.099 253.567);
--chart-4: oklch(0.465 0.106 253.608);
--chart-5: oklch(0.51 0.093 66.206);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.014 78.1);
--foreground: oklch(0.993 0.002 71.436);
--muted: oklch(0.262 0.027 252.165);
--muted-foreground: oklch(0.726 0.021 251.673);
--popover: oklch(0.137 0.014 78.1);
--popover-foreground: oklch(0.993 0.002 71.436);
--card: oklch(0.152 0.016 74.678);
--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.507 0.09 66.691);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.439 0.099 253.567);
--secondary-foreground: oklch(0.949 0.015 251.576);
--accent: oklch(0.439 0.099 253.567);
--accent-foreground: oklch(0.949 0.015 251.576);
--destructive: oklch(0.686 0.163 41.19);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.507 0.09 66.691);
--chart-1: oklch(0.507 0.09 66.691);
--chart-2: oklch(0.439 0.099 253.567);
--chart-3: oklch(0.439 0.099 253.567);
--chart-4: oklch(0.465 0.106 253.608);
--chart-5: oklch(0.51 0.093 66.206);
}