Gentle is a shadcn/ui theme built around a muted light violet primary color (#efeef1) with muted light purple accents (#f1eef1). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted light violet primary (#efeef1) on a neutral background (#040208).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #040208black |
| Foreground | #080317black | #faf9fbghostwhite |
| Card | #f6f5fawhitesmoke | #06030cblack |
| Card foreground | #060212black | #fcfcfdwhite |
| Popover | #f6f5fawhitesmoke | #06030cblack |
| Popover foreground | #060212black | #fcfcfdwhite |
| Primary | #efeef1whitesmoke | #efeef1whitesmoke |
| Primary foreground | #524d60dimgray | #524d60dimgray |
| Secondary | #eeeff1whitesmoke | #eeeff1whitesmoke |
| Secondary foreground | #4d5260darkslategray | #4d5260darkslategray |
| Muted | #d8ddeegainsboro | #111727black |
| Muted foreground | #42454ddarkslategray | #b2b5bdsilver |
| Accent | #f1eef1whitesmoke | #f1eef1whitesmoke |
| Accent foreground | #5b4d60dimgray | #5b4d60dimgray |
| Destructive | #990606darkred | #f71d1dred |
| Destructive foreground | #fdd3d3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #efeef1whitesmoke | #efeef1whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 7.09:1 | AAA |
| Accent | 6.81:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.65:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.01:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 8.73:1 | AAA |
| Accent | 6.81:1 | AA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Gentle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 297.74);
--foreground: oklch(0.124 0.048 293.59);
--muted: oklch(0.9 0.023 271.153);
--muted-foreground: oklch(0.389 0.015 271.012);
--popover: oklch(0.972 0.007 297.697);
--popover-foreground: oklch(0.114 0.042 295.253);
--card: oklch(0.972 0.007 297.697);
--card-foreground: oklch(0.114 0.042 295.253);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.005 297.739);
--primary-foreground: oklch(0.433 0.032 296.511);
--secondary: oklch(0.952 0.003 271.375);
--secondary-foreground: oklch(0.439 0.024 270.811);
--accent: oklch(0.952 0.005 317.754);
--accent-foreground: oklch(0.442 0.036 317.63);
--destructive: oklch(0.43 0.173 28.811);
--destructive-foreground: oklch(0.902 0.048 18.08);
--ring: oklch(0.951 0.005 297.739);
--chart-1: oklch(0.951 0.005 297.739);
--chart-2: oklch(0.952 0.003 271.375);
--chart-3: oklch(0.952 0.005 317.754);
--chart-4: oklch(0.976 0.002 271.392);
--chart-5: oklch(0.95 0.006 297.716);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.021 297.491);
--foreground: oklch(0.983 0.002 297.792);
--muted: oklch(0.206 0.034 269.252);
--muted-foreground: oklch(0.773 0.013 271.253);
--popover: oklch(0.113 0.024 297.327);
--popover-foreground: oklch(0.992 0.001 297.809);
--card: oklch(0.113 0.024 297.327);
--card-foreground: oklch(0.992 0.001 297.809);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.951 0.005 297.739);
--primary-foreground: oklch(0.433 0.032 296.511);
--secondary: oklch(0.952 0.003 271.375);
--secondary-foreground: oklch(0.439 0.024 270.811);
--accent: oklch(0.952 0.005 317.754);
--accent-foreground: oklch(0.442 0.036 317.63);
--destructive: oklch(0.621 0.243 28.247);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.005 297.739);
--chart-1: oklch(0.951 0.005 297.739);
--chart-2: oklch(0.952 0.003 271.375);
--chart-3: oklch(0.952 0.005 317.754);
--chart-4: oklch(0.976 0.002 271.392);
--chart-5: oklch(0.95 0.006 297.716);
}