Gentleman is a shadcn/ui theme built around an indigo primary color (#4735bb) with neutral gray accents (#dedede). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#4735bb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #050312black | #fcfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #050312black | #fcfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #050312black | #fcfcfdwhite |
| Primary | #4735bbrebeccapurple | #4735bbrebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dededegainsboro | #2a2933darkslategray |
| Secondary foreground | #454545darkslategray | #c2c1cdsilver |
| Muted | #e5cdcdlightgrey | #1e1a32midnightblue |
| Muted foreground | #444040darkslategray | #bbbbbfsilver |
| Accent | #dededegainsboro | #2a2933darkslategray |
| Accent foreground | #454545darkslategray | #c2c1cdsilver |
| Destructive | #830402maroon | #fb120ered |
| Destructive foreground | #febab9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4735bbrebeccapurple | #4735bbrebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.76:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Gentleman in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.04 287.746);
--muted: oklch(0.868 0.027 17.676);
--muted-foreground: oklch(0.377 0.005 17.398);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.112 0.04 287.746);
--card: oklch(1 0 180);
--card-foreground: oklch(0.112 0.04 287.746);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.44 0.199 280.452);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.9 0 188.746);
--secondary-foreground: oklch(0.39 0 165.964);
--accent: oklch(0.9 0 188.746);
--accent-foreground: oklch(0.39 0 165.964);
--destructive: oklch(0.384 0.155 29.307);
--destructive-foreground: oklch(0.851 0.079 19.952);
--ring: oklch(0.44 0.199 280.452);
--chart-1: oklch(0.44 0.199 280.452);
--chart-2: oklch(0.9 0 188.746);
--chart-3: oklch(0.9 0 188.746);
--chart-4: oklch(0.923 0 153.435);
--chart-5: oklch(0.437 0.208 279.472);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.001 292.517);
--muted: oklch(0.236 0.045 288.578);
--muted-foreground: oklch(0.793 0.006 292.411);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.001 292.517);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.001 292.517);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.44 0.199 280.452);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.286 0.018 291.305);
--secondary-foreground: oklch(0.815 0.017 292.144);
--accent: oklch(0.286 0.018 291.305);
--accent-foreground: oklch(0.815 0.017 292.144);
--destructive: oklch(0.625 0.251 29.044);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.44 0.199 280.452);
--chart-1: oklch(0.44 0.199 280.452);
--chart-2: oklch(0.286 0.018 291.305);
--chart-3: oklch(0.286 0.018 291.305);
--chart-4: oklch(0.314 0.021 291.258);
--chart-5: oklch(0.437 0.208 279.472);
}