Next-Dashboard is a shadcn/ui theme built around a vivid blue primary color (#297eff) with muted light blue accents (#bbc2ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#297eff) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030507black |
| Foreground | #000000black | #f8fafcghostwhite |
| Card | #ffffffwhite | #030507black |
| Card foreground | #000000black | #f8fafcghostwhite |
| Popover | #ffffffwhite | #030507black |
| Popover foreground | #000000black | #f8fafcghostwhite |
| Primary | #297effdodgerblue | #297effdodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d6d8dbgainsboro | #252627darkslategray |
| Secondary foreground | #3c3f44darkslategray | #bebfc1silver |
| Muted | #e8eaedlavender | #121417black |
| Muted foreground | #484a4bdarkslategray | #b4b5b7silver |
| Accent | #bbc2cesilver | #323539darkslategray |
| Accent foreground | #242a32darkslategray | #cbced2lightgrey |
| Destructive | #d74004orangered | #fa4e0aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e8eaedlavender | #1d2025black |
| Input | #e8eaedlavender | #1d2025black |
| Ring | #297effdodgerblue | #297effdodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 3.78:1 | AA Large |
| Secondary button | 7.42:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.54:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 3.78:1 | AA Large |
| Secondary button | 8.22:1 | AAA |
| Muted text | 8.99:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use Next-Dashboard in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.937 0.004 258.324);
--muted-foreground: oklch(0.407 0.003 258.333);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.937 0.005 258.326);
--input: oklch(0.937 0.005 258.326);
--primary: oklch(0.617 0.208 259.097);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.883 0.004 258.325);
--secondary-foreground: oklch(0.366 0.009 258.36);
--accent: oklch(0.813 0.018 258.357);
--accent-foreground: oklch(0.283 0.017 258.37);
--destructive: oklch(0.588 0.196 36.788);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.617 0.208 259.097);
--chart-1: oklch(0.617 0.208 259.097);
--chart-2: oklch(0.883 0.004 258.325);
--chart-3: oklch(0.813 0.018 258.357);
--chart-4: oklch(0.906 0.003 258.322);
--chart-5: oklch(0.618 0.213 259.213);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.009 253.108);
--foreground: oklch(0.983 0.004 258.322);
--muted: oklch(0.19 0.006 258.367);
--muted-foreground: oklch(0.772 0.003 258.322);
--popover: oklch(0.111 0.009 253.108);
--popover-foreground: oklch(0.983 0.004 258.322);
--card: oklch(0.111 0.009 253.108);
--card-foreground: oklch(0.983 0.004 258.322);
--border: oklch(0.243 0.011 258.372);
--input: oklch(0.243 0.011 258.372);
--primary: oklch(0.617 0.208 259.097);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.269 0.002 258.331);
--secondary-foreground: oklch(0.804 0.002 258.32);
--accent: oklch(0.327 0.009 258.363);
--accent-foreground: oklch(0.85 0.006 258.331);
--destructive: oklch(0.661 0.218 37.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.617 0.208 259.097);
--chart-1: oklch(0.617 0.208 259.097);
--chart-2: oklch(0.269 0.002 258.331);
--chart-3: oklch(0.327 0.009 258.363);
--chart-4: oklch(0.3 0.002 258.331);
--chart-5: oklch(0.618 0.213 259.213);
}