Dimple is a shadcn/ui theme built around a muted deep yellow primary color (#26241c) with muted light yellow accents (#dcdad0). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted deep yellow primary (#26241c) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #070603black |
| Foreground | #0c0a03black | #ffffffwhite |
| Card | #fbfaf3floralwhite | #0a0905black |
| Card foreground | #080702black | #ffffffwhite |
| Popover | #fbfaf3floralwhite | #0a0905black |
| Popover foreground | #080702black | #ffffffwhite |
| Primary | #26241cblack | #26241cblack |
| Primary foreground | #c5c0afsilver | #c5c0afsilver |
| Secondary | #dcdad0lightgrey | #211f18black |
| Secondary foreground | #464234darkslategray | #c1bca9silver |
| Muted | #ecebealinen | #151513black |
| Muted foreground | #534f41darkolivegreen | #bebaacsilver |
| Accent | #dcdad0lightgrey | #211f18black |
| Accent foreground | #464234darkslategray | #c1bca9silver |
| Destructive | #7a3006saddlebrown | #ea5d0bchocolate |
| Destructive foreground | #fccfb6peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #26241cblack | #26241cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 8.70:1 | AAA |
| Muted text | 9.40:1 | AAA |
| Accent | 8.70:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Dimple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 93.929);
--foreground: oklch(0.145 0.019 97.932);
--muted: oklch(0.94 0.002 93.89);
--muted-foreground: oklch(0.427 0.023 94.34);
--popover: oklch(0.984 0.009 93.96);
--popover-foreground: oklch(0.127 0.016 98.61);
--card: oklch(0.984 0.009 93.96);
--card-foreground: oklch(0.127 0.016 98.61);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.261 0.015 94.374);
--primary-foreground: oklch(0.808 0.024 94.164);
--secondary: oklch(0.887 0.013 94.022);
--secondary-foreground: oklch(0.38 0.024 94.4);
--accent: oklch(0.887 0.013 94.022);
--accent-foreground: oklch(0.38 0.024 94.4);
--destructive: oklch(0.409 0.114 44.411);
--destructive-foreground: oklch(0.887 0.061 51.712);
--ring: oklch(0.261 0.015 94.374);
--chart-1: oklch(0.261 0.015 94.374);
--chart-2: oklch(0.887 0.013 94.022);
--chart-3: oklch(0.887 0.013 94.022);
--chart-4: oklch(0.908 0.011 93.99);
--chart-5: oklch(0.263 0.018 94.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 96.698);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.003 94.038);
--muted-foreground: oklch(0.788 0.02 94.119);
--popover: oklch(0.14 0.01 96.698);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.01 96.698);
--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.261 0.015 94.374);
--primary-foreground: oklch(0.808 0.024 94.164);
--secondary: oklch(0.237 0.013 94.358);
--secondary-foreground: oklch(0.794 0.026 94.189);
--accent: oklch(0.237 0.013 94.358);
--accent-foreground: oklch(0.794 0.026 94.189);
--destructive: oklch(0.652 0.19 42.744);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.261 0.015 94.374);
--chart-1: oklch(0.261 0.015 94.374);
--chart-2: oklch(0.237 0.013 94.358);
--chart-3: oklch(0.237 0.013 94.358);
--chart-4: oklch(0.272 0.016 94.381);
--chart-5: oklch(0.263 0.018 94.426);
}