new dash is a shadcn/ui theme built around a vivid blue primary color (#4d66f1) with muted light blue accents (#f3f4f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#4d66f1) on a blue-tinted background (#030712).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030712black |
| Foreground | #030712black | #f9fafbghostwhite |
| Card | #ffffffwhite | #030712black |
| Card foreground | #030712black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #030712black |
| Popover foreground | #030712black | #f9fafbghostwhite |
| Primary | #4d66f1royalblue | #4d66f1royalblue |
| Primary foreground | #f9fafbghostwhite | #f9fafbghostwhite |
| Secondary | #f3f4f6whitesmoke | #294368darkslategray |
| Secondary foreground | #111827black | #f9fafbghostwhite |
| Muted | #f3f4f6whitesmoke | #263141darkslategray |
| Muted foreground | #6b7280slategray | #a7a7a7darkgray |
| Accent | #f3f4f6whitesmoke | #263141darkslategray |
| Accent foreground | #111827black | #f9fafbghostwhite |
| Destructive | #da5252indianred | #da5252indianred |
| Destructive foreground | #f9fafbghostwhite | #f9fafbghostwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f70efroyalblue | #2f70efroyalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 4.47:1 | AA Large |
| Secondary button | 16.12:1 | AAA |
| Muted text | 4.39:1 | AA Large |
| Accent | 16.12:1 | AAA |
| Destructive | 3.78:1 | AA Large |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 4.47:1 | AA Large |
| Secondary button | 9.59:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 12.58:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use new dash in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.027 261.671);
--muted: oklch(0.967 0.003 264.542);
--muted-foreground: oklch(0.551 0.023 264.365);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.027 261.671);
--card: oklch(1 0 180);
--card-foreground: oklch(0.129 0.027 261.671);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.572 0.209 270.56);
--primary-foreground: oklch(0.984 0.002 247.84);
--secondary: oklch(0.967 0.003 264.542);
--secondary-foreground: oklch(0.21 0.032 264.652);
--accent: oklch(0.967 0.003 264.542);
--accent-foreground: oklch(0.21 0.032 264.652);
--destructive: oklch(0.62 0.171 23.521);
--destructive-foreground: oklch(0.984 0.002 247.84);
--ring: oklch(0.578 0.203 261.92);
--chart-1: oklch(0.53 0.193 262.051);
--chart-2: oklch(0.675 0.2 309.857);
--chart-3: oklch(0.723 0.15 60.579);
--chart-4: oklch(0.735 0.123 175.884);
--chart-5: oklch(0.612 0.209 6.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.027 261.671);
--foreground: oklch(0.984 0.002 247.84);
--muted: oklch(0.311 0.032 256.844);
--muted-foreground: oklch(0.727 0 171.254);
--popover: oklch(0.129 0.027 261.671);
--popover-foreground: oklch(0.984 0.002 247.84);
--card: oklch(0.129 0.027 261.671);
--card-foreground: oklch(0.984 0.002 247.84);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.573 0.21 270.624);
--primary-foreground: oklch(0.984 0.002 247.84);
--secondary: oklch(0.38 0.071 256.988);
--secondary-foreground: oklch(0.984 0.002 247.84);
--accent: oklch(0.31 0.032 256.846);
--accent-foreground: oklch(0.984 0.002 247.84);
--destructive: oklch(0.62 0.171 23.499);
--destructive-foreground: oklch(0.984 0.002 247.84);
--ring: oklch(0.579 0.203 261.868);
--chart-1: oklch(0.529 0.193 262.129);
--chart-2: oklch(0.676 0.2 309.967);
--chart-3: oklch(0.723 0.15 60.631);
--chart-4: oklch(0.735 0.123 175.619);
--chart-5: oklch(0.612 0.209 6.386);
}