Gentle is a shadcn/ui theme built around a muted violet primary color (#68578e) with muted violet accents (#b5aec7). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted violet primary (#68578e) on a neutral background (#040208).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #040208black |
| Foreground | #0a0613black | #ffffffwhite |
| Card | #f6f4fbghostwhite | #06040cblack |
| Card foreground | #08050fblack | #ffffffwhite |
| Popover | #f9f8fcghostwhite | #040208black |
| Popover foreground | #0a0613black | #ffffffwhite |
| Primary | #68578erebeccapurple | #68578erebeccapurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cac6d2lightgrey | #1d1a23black |
| Secondary foreground | #312d39darkslategray | #b4aec2silver |
| Muted | #e2ddeelavender | #161122black |
| Muted foreground | #57545fdimgray | #a4a0abdarkgray |
| Accent | #b5aec7silver | #2c263bdarkslategray |
| Accent foreground | #1f1b27black | #c5bed5thistle |
| Destructive | #c85314chocolate | #da5a16chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #68578erebeccapurple | #68578erebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 4.48:1 | AA Large |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Gentle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 299.931);
--foreground: oklch(0.138 0.029 297.489);
--muted: oklch(0.907 0.023 299.605);
--muted-foreground: oklch(0.452 0.018 299.379);
--popover: oklch(0.98 0.006 299.931);
--popover-foreground: oklch(0.138 0.029 297.489);
--card: oklch(0.97 0.009 299.876);
--card-foreground: oklch(0.128 0.026 299);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.497 0.088 296.902);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.833 0.017 299.688);
--secondary-foreground: oklch(0.306 0.022 298.8);
--accent: oklch(0.764 0.036 299.245);
--accent-foreground: oklch(0.233 0.023 298.327);
--destructive: oklch(0.585 0.164 43.358);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.497 0.088 296.902);
--chart-1: oklch(0.497 0.088 296.902);
--chart-2: oklch(0.833 0.017 299.688);
--chart-3: oklch(0.764 0.036 299.245);
--chart-4: oklch(0.858 0.015 299.752);
--chart-5: oklch(0.491 0.098 296.416);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.019 300.232);
--foreground: oklch(1 0 180);
--muted: oklch(0.193 0.034 296.919);
--muted-foreground: oklch(0.713 0.016 299.666);
--popover: oklch(0.101 0.019 300.232);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.116 0.022 300.1);
--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.497 0.088 296.902);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.226 0.017 298.774);
--secondary-foreground: oklch(0.761 0.029 299.396);
--accent: oklch(0.286 0.037 297.762);
--accent-foreground: oklch(0.815 0.032 299.375);
--destructive: oklch(0.625 0.176 43.217);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.497 0.088 296.902);
--chart-1: oklch(0.497 0.088 296.902);
--chart-2: oklch(0.226 0.017 298.774);
--chart-3: oklch(0.286 0.037 297.762);
--chart-4: oklch(0.256 0.02 298.681);
--chart-5: oklch(0.491 0.098 296.416);
}