Dimpled is a shadcn/ui theme built around a near-white primary color (#f4f5f5) with near-white accents (#f4f4f5). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the near-white primary (#f4f5f5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #000000black |
| Foreground | #000000black | #f5f7fawhitesmoke |
| Card | #f2f7fcaliceblue | #030303black |
| Card foreground | #000000black | #f8fafcghostwhite |
| Popover | #f7f9fdghostwhite | #000000black |
| Popover foreground | #000000black | #f5f7fawhitesmoke |
| Primary | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Primary foreground | #565b61dimgray | #565b61dimgray |
| Secondary | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
| Secondary foreground | #262b2bdarkslategray | #262b2bdarkslategray |
| Muted | #ebf4f4whitesmoke | #0b1314black |
| Muted foreground | #454e4fdarkslategray | #b0babasilver |
| Accent | #f4f4f5whitesmoke | #f4f4f5whitesmoke |
| Accent foreground | #575661dimgray | #575661dimgray |
| Destructive | #ae0f0ffirebrick | #e61414red |
| Destructive foreground | #fef1f1lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f5f5whitesmoke | #f4f5f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 13.17:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 13.17:1 | AAA |
| Muted text | 9.45:1 | AAA |
| Accent | 6.58:1 | AA |
| Destructive | 4.69:1 | AA |
Paste this into your globals.css to use Dimpled in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 254.986);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.009 202.113);
--muted-foreground: oklch(0.417 0.012 201.918);
--popover: oklch(0.982 0.006 254.986);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.009 255.001);
--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.969 0.001 254.96);
--primary-foreground: oklch(0.469 0.012 255.076);
--secondary: oklch(0.97 0.001 202.201);
--secondary-foreground: oklch(0.284 0.007 201.981);
--accent: oklch(0.968 0.002 289.447);
--accent-foreground: oklch(0.459 0.018 288.741);
--destructive: oklch(0.476 0.188 28.354);
--destructive-foreground: oklch(0.968 0.014 17.396);
--ring: oklch(0.969 0.001 254.96);
--chart-1: oklch(0.969 0.001 254.96);
--chart-2: oklch(0.97 0.001 202.201);
--chart-3: oklch(0.968 0.002 289.447);
--chart-4: oklch(0.993 0 202.211);
--chart-5: oklch(0.969 0.002 254.963);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.005 254.979);
--muted: oklch(0.18 0.013 201.628);
--muted-foreground: oklch(0.78 0.011 202.069);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.005 254.979);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.003 254.971);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.969 0.001 254.96);
--primary-foreground: oklch(0.469 0.012 255.076);
--secondary: oklch(0.97 0.001 202.201);
--secondary-foreground: oklch(0.284 0.007 201.981);
--accent: oklch(0.968 0.002 289.447);
--accent-foreground: oklch(0.459 0.018 288.741);
--destructive: oklch(0.586 0.233 28.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0.001 254.96);
--chart-1: oklch(0.969 0.001 254.96);
--chart-2: oklch(0.97 0.001 202.201);
--chart-3: oklch(0.968 0.002 289.447);
--chart-4: oklch(0.993 0 202.211);
--chart-5: oklch(0.969 0.002 254.963);
}