Modest is a shadcn/ui theme built around a light red primary color (#eccbc1) with muted light red accents (#cbc1be). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light red primary (#eccbc1) on a red-tinted background (#0c0503).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0c0503black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdf8f6snow | #100704black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefcfbsnow | #0c0503black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #eccbc1pink | #eccbc1pink |
| Primary foreground | #5e2c1dsaddlebrown | #5e2c1dsaddlebrown |
| Secondary | #dbd8d6gainsboro | #1c1817black |
| Secondary foreground | #443e3cdarkslategray | #bbaeaadarkgray |
| Muted | #e2d8d5gainsboro | #2a201dblack |
| Muted foreground | #5a5958dimgray | #a7a5a5darkgray |
| Accent | #cbc1besilver | #342622darkslategray |
| Accent foreground | #302927darkslategray | #d1beb8silver |
| Destructive | #6d1a03maroon | #f96339tomato |
| Destructive foreground | #fcb9a6lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eccbc1pink | #eccbc1pink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 4.99:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 20.18:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Modest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 37.727);
--foreground: oklch(0 0 0);
--muted: oklch(0.889 0.012 37.682);
--muted-foreground: oklch(0.464 0.002 37.722);
--popover: oklch(0.991 0.003 37.727);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.006 37.712);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.866 0.04 37.602);
--primary-foreground: oklch(0.357 0.077 37.665);
--secondary: oklch(0.883 0.004 37.719);
--secondary-foreground: oklch(0.368 0.009 37.647);
--accent: oklch(0.818 0.012 37.677);
--accent-foreground: oklch(0.287 0.012 37.61);
--destructive: oklch(0.355 0.12 35.2);
--destructive-foreground: oklch(0.843 0.083 36.049);
--ring: oklch(0.866 0.04 37.602);
--chart-1: oklch(0.866 0.04 37.602);
--chart-2: oklch(0.883 0.004 37.719);
--chart-3: oklch(0.818 0.012 37.677);
--chart-4: oklch(0.907 0.003 37.724);
--chart-5: oklch(0.866 0.042 37.599);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.016 44.811);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.016 37.592);
--muted-foreground: oklch(0.724 0.002 37.731);
--popover: oklch(0.128 0.016 44.811);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.019 43.145);
--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.866 0.04 37.602);
--primary-foreground: oklch(0.357 0.077 37.665);
--secondary: oklch(0.214 0.007 37.62);
--secondary-foreground: oklch(0.761 0.016 37.655);
--accent: oklch(0.286 0.023 37.596);
--accent-foreground: oklch(0.815 0.023 37.634);
--destructive: oklch(0.685 0.193 36.098);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.866 0.04 37.602);
--chart-1: oklch(0.866 0.04 37.602);
--chart-2: oklch(0.214 0.007 37.62);
--chart-3: oklch(0.286 0.023 37.596);
--chart-4: oklch(0.246 0.009 37.615);
--chart-5: oklch(0.866 0.042 37.599);
}