Dime is a shadcn/ui theme built around a vivid blue primary color (#1852af) with vivid indigo accents (#2a18af). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#1852af) on a blue-tinted background (#06090e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06090eblack |
| Foreground | #010409black | #f6f7f9whitesmoke |
| Card | #fcfcfcsnow | #070c12black |
| Card foreground | #010204black | #f9fafbghostwhite |
| Popover | #fcfcfcsnow | #070c12black |
| Popover foreground | #010204black | #f9fafbghostwhite |
| Primary | #1852afdarkslateblue | #1852afdarkslateblue |
| Primary foreground | #fbfcfewhite | #fbfcfewhite |
| Secondary | #189daflightseagreen | #189daflightseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dfeaeclavender | #131e20black |
| Muted foreground | #445355darkslategray | #aab9bbsilver |
| Accent | #2a18afmediumblue | #2a18afmediumblue |
| Accent foreground | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Destructive | #712c05saddlebrown | #f67a31coral |
| Destructive foreground | #fcc9acnavajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1852afdarkslateblue | #1852afdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 3.22:1 | AA Large |
| Muted text | 6.56:1 | AA |
| Accent | 11.01:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 18.58:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 3.22:1 | AA Large |
| Muted text | 8.37:1 | AAA |
| Accent | 11.01:1 | AAA |
| Destructive | 7.74:1 | AAA |
Paste this into your globals.css to use Dime in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.018 248.316);
--muted: oklch(0.93 0.012 206.366);
--muted-foreground: oklch(0.43 0.019 206.263);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.084 0.015 248.316);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.084 0.015 248.316);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.459 0.16 259.949);
--primary-foreground: oklch(0.991 0.004 259.938);
--secondary: oklch(0.64 0.106 209.293);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.372 0.216 273.406);
--accent-foreground: oklch(0.988 0.005 291.682);
--destructive: oklch(0.387 0.107 44.594);
--destructive-foreground: oklch(0.873 0.07 51.562);
--ring: oklch(0.459 0.16 259.949);
--chart-1: oklch(0.459 0.16 259.949);
--chart-2: oklch(0.64 0.106 209.293);
--chart-3: oklch(0.372 0.216 273.406);
--chart-4: oklch(0.676 0.113 209.347);
--chart-5: oklch(0.459 0.166 260.071);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.013 256.181);
--foreground: oklch(0.975 0.003 259.938);
--muted: oklch(0.227 0.016 206.281);
--muted-foreground: oklch(0.775 0.017 206.327);
--popover: oklch(0.151 0.016 258.647);
--popover-foreground: oklch(0.984 0.002 259.936);
--card: oklch(0.151 0.016 258.647);
--card-foreground: oklch(0.984 0.002 259.936);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.459 0.16 259.949);
--primary-foreground: oklch(0.991 0.004 259.938);
--secondary: oklch(0.64 0.106 209.293);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.372 0.216 273.406);
--accent-foreground: oklch(0.988 0.005 291.682);
--destructive: oklch(0.712 0.173 46.95);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.459 0.16 259.949);
--chart-1: oklch(0.459 0.16 259.949);
--chart-2: oklch(0.64 0.106 209.293);
--chart-3: oklch(0.372 0.216 273.406);
--chart-4: oklch(0.676 0.113 209.347);
--chart-5: oklch(0.459 0.166 260.071);
}