Dimpled is a shadcn/ui theme built around a deep violet primary color (#1f0a38) with deep green accents (#23380a). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep violet primary (#1f0a38) on a violet-tinted background (#0a050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #0a050fblack |
| Foreground | #050208black | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #0c0713black |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfbfewhite | #0a050fblack |
| Popover foreground | #050208black | #fcfcfdwhite |
| Primary | #1f0a38midnightblue | #1f0a38midnightblue |
| Primary foreground | #b58aeamediumpurple | #b58aeamediumpurple |
| Secondary | #23380adarkgreen | #23380adarkgreen |
| Secondary foreground | #90db33yellowgreen | #90db33yellowgreen |
| Muted | #e1ead7gainsboro | #202815black |
| Muted foreground | #575c51dimgray | #a9aea3darkgray |
| Accent | #23380adarkgreen | #23380adarkgreen |
| Accent foreground | #90db33yellowgreen | #90db33yellowgreen |
| Destructive | #8a0700darkred | #ff1b0fred |
| Destructive foreground | #ffc0bdlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f0a38midnightblue | #1f0a38midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Dimpled in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 306.39);
--foreground: oklch(0.102 0.021 307.723);
--muted: oklch(0.926 0.028 126.816);
--muted-foreground: oklch(0.467 0.017 126.914);
--popover: oklch(0.991 0.003 306.39);
--popover-foreground: oklch(0.102 0.021 307.723);
--card: oklch(0.981 0.006 306.35);
--card-foreground: oklch(0.081 0.017 307.723);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.209 0.085 299.522);
--primary-foreground: oklch(0.712 0.143 303.726);
--secondary: oklch(0.313 0.074 130.803);
--secondary-foreground: oklch(0.812 0.205 131.437);
--accent: oklch(0.313 0.074 130.803);
--accent-foreground: oklch(0.812 0.205 131.437);
--destructive: oklch(0.4 0.16 30.065);
--destructive-foreground: oklch(0.864 0.073 22.127);
--ring: oklch(0.209 0.085 299.522);
--chart-1: oklch(0.209 0.085 299.522);
--chart-2: oklch(0.313 0.074 130.803);
--chart-3: oklch(0.313 0.074 130.803);
--chart-4: oklch(0.358 0.087 131.063);
--chart-5: oklch(0.209 0.088 299.099);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.024 306.082);
--foreground: oklch(0.991 0.002 306.403);
--muted: oklch(0.264 0.037 128.404);
--muted-foreground: oklch(0.742 0.016 126.699);
--popover: oklch(0.131 0.024 306.082);
--popover-foreground: oklch(0.991 0.002 306.403);
--card: oklch(0.142 0.028 304.614);
--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.209 0.085 299.522);
--primary-foreground: oklch(0.712 0.143 303.726);
--secondary: oklch(0.313 0.074 130.803);
--secondary-foreground: oklch(0.812 0.205 131.437);
--accent: oklch(0.313 0.074 130.803);
--accent-foreground: oklch(0.812 0.205 131.437);
--destructive: oklch(0.635 0.251 29.475);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.209 0.085 299.522);
--chart-1: oklch(0.209 0.085 299.522);
--chart-2: oklch(0.313 0.074 130.803);
--chart-3: oklch(0.313 0.074 130.803);
--chart-4: oklch(0.358 0.087 131.063);
--chart-5: oklch(0.209 0.088 299.099);
}