Rent is a shadcn/ui theme built around a light blue primary color (#f1f5f8) with neutral gray accents (#e4e5e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#f1f5f8) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010304black |
| Foreground | #020508black | #ffffffwhite |
| Card | #fcfcfcsnow | #020508black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #ffffffwhite | #010304black |
| Popover foreground | #020508black | #ffffffwhite |
| Primary | #f1f5f8whitesmoke | #f1f5f8whitesmoke |
| Primary foreground | #3b5b7ddarkslateblue | #3b5b7ddarkslateblue |
| Secondary | #e4e5e7gainsboro | #131416black |
| Secondary foreground | #484c51darkslategray | #a7adb4darkgray |
| Muted | #e2e5e9gainsboro | #16191dblack |
| Muted foreground | #4a4f54darkslategray | #abb0b5darkgray |
| Accent | #e4e5e7gainsboro | #131416black |
| Accent foreground | #484c51darkslategray | #a7adb4darkgray |
| Destructive | #c7530fchocolate | #e45e11chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1f5f8whitesmoke | #f1f5f8whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 6.56:1 | AA |
| Accent | 6.88:1 | AA |
| Destructive | 4.50:1 | AA |
| Text on background | 20.70:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Rent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.111 0.013 241.487);
--muted: oklch(0.921 0.006 249.714);
--muted-foreground: oklch(0.425 0.01 249.865);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.111 0.013 241.487);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.088 0.01 241.487);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.006 249.712);
--primary-foreground: oklch(0.461 0.068 251.022);
--secondary: oklch(0.923 0.003 249.678);
--secondary-foreground: oklch(0.415 0.01 249.864);
--accent: oklch(0.923 0.003 249.678);
--accent-foreground: oklch(0.415 0.01 249.864);
--destructive: oklch(0.584 0.164 43.967);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.006 249.712);
--chart-1: oklch(0.968 0.006 249.712);
--chart-2: oklch(0.923 0.003 249.678);
--chart-3: oklch(0.923 0.003 249.678);
--chart-4: oklch(0.946 0.002 249.669);
--chart-5: oklch(0.967 0.007 249.717);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.01 241.78);
--foreground: oklch(1 0 180);
--muted: oklch(0.213 0.009 250.022);
--muted-foreground: oklch(0.754 0.009 249.758);
--popover: oklch(0.089 0.01 241.78);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.112 0.012 241.78);
--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.968 0.006 249.712);
--primary-foreground: oklch(0.461 0.068 251.022);
--secondary: oklch(0.192 0.004 249.851);
--secondary-foreground: oklch(0.745 0.012 249.799);
--accent: oklch(0.192 0.004 249.851);
--accent-foreground: oklch(0.745 0.012 249.799);
--destructive: oklch(0.644 0.183 43.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.006 249.712);
--chart-1: oklch(0.968 0.006 249.712);
--chart-2: oklch(0.192 0.004 249.851);
--chart-3: oklch(0.192 0.004 249.851);
--chart-4: oklch(0.225 0.006 249.875);
--chart-5: oklch(0.967 0.007 249.717);
}