Rectangle is a shadcn/ui theme built around a light teal primary color (#f4fbf9) with muted teal accents (#b0c9c3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#f4fbf9) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030706black |
| Foreground | #02120eblack | #f5faf9mintcream |
| Card | #ffffffwhite | #030706black |
| Card foreground | #02120eblack | #f5faf9mintcream |
| Popover | #ffffffwhite | #030706black |
| Popover foreground | #02120eblack | #f5faf9mintcream |
| Primary | #f4fbf9mintcream | #f4fbf9mintcream |
| Primary foreground | #164135darkslategray | #164135darkslategray |
| Secondary | #c7d1celightgrey | #171c1bblack |
| Secondary foreground | #2e3835darkslategray | #acb9b6darkgray |
| Muted | #eaf0efwhitesmoke | #0f1513black |
| Muted foreground | #526f68dimgray | #90ada5darkgray |
| Accent | #b0c9c3silver | #253732darkslategray |
| Accent foreground | #1d2a27darkslategray | #bcd2ccsilver |
| Destructive | #781c07maroon | #f35c39tomato |
| Destructive foreground | #fbc3b7lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4fbf9mintcream | #f4fbf9mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 10.87:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 4.75:1 | AA |
| Accent | 8.50:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 10.87:1 | AAA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 6.40:1 | AA |
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.166 0.027 175.432);
--muted: oklch(0.951 0.007 178.577);
--muted-foreground: oklch(0.518 0.036 176.595);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.166 0.027 175.432);
--card: oklch(1 0 180);
--card-foreground: oklch(0.166 0.027 175.432);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.982 0.008 178.533);
--primary-foreground: oklch(0.341 0.052 172.663);
--secondary: oklch(0.852 0.012 178.385);
--secondary-foreground: oklch(0.331 0.014 177.461);
--accent: oklch(0.816 0.029 177.733);
--accent-foreground: oklch(0.273 0.02 176.507);
--destructive: oklch(0.38 0.13 33.546);
--destructive-foreground: oklch(0.864 0.066 32.889);
--ring: oklch(0.982 0.008 178.533);
--chart-1: oklch(0.982 0.008 178.533);
--chart-2: oklch(0.852 0.012 178.385);
--chart-3: oklch(0.816 0.029 177.733);
--chart-4: oklch(0.875 0.01 178.456);
--chart-5: oklch(0.983 0.009 178.519);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 178.847);
--foreground: oklch(0.981 0.006 178.598);
--muted: oklch(0.188 0.01 177.184);
--muted-foreground: oklch(0.722 0.034 177.362);
--popover: oklch(0.121 0.009 178.847);
--popover-foreground: oklch(0.981 0.006 178.598);
--card: oklch(0.121 0.009 178.847);
--card-foreground: oklch(0.981 0.006 178.598);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.982 0.008 178.533);
--primary-foreground: oklch(0.341 0.052 172.663);
--secondary: oklch(0.22 0.007 177.801);
--secondary-foreground: oklch(0.775 0.016 178.175);
--accent: oklch(0.318 0.024 176.359);
--accent-foreground: oklch(0.845 0.024 177.935);
--destructive: oklch(0.668 0.193 34.136);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.982 0.008 178.533);
--chart-1: oklch(0.982 0.008 178.533);
--chart-2: oklch(0.22 0.007 177.801);
--chart-3: oklch(0.318 0.024 176.359);
--chart-4: oklch(0.254 0.009 177.714);
--chart-5: oklch(0.983 0.009 178.519);
}