Dart is a shadcn/ui theme built around a blue primary color (#24467b) with muted light blue accents (#c6cdd7). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#24467b) on a blue-tinted background (#03070c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #03070cblack |
| Foreground | #020408black | #f9fafbghostwhite |
| Card | #ffffffwhite | #03070cblack |
| Card foreground | #020408black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #03070cblack |
| Popover foreground | #020408black | #f9fafbghostwhite |
| Primary | #24467bdarkslateblue | #24467bdarkslateblue |
| Primary foreground | #dbe6f5lavender | #dbe6f5lavender |
| Secondary | #c6cdd7lightgrey | #1b1e23black |
| Secondary foreground | #2c343fdarkslategray | #aeb6c1silver |
| Muted | #f0f2f4whitesmoke | #0b0c0fblack |
| Muted foreground | #484c51darkslategray | #aeb2b7darkgray |
| Accent | #c6cdd7lightgrey | #1b1e23black |
| Accent foreground | #2c343fdarkslategray | #aeb6c1silver |
| Destructive | #923807saddlebrown | #e0550bchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #24467bdarkslateblue | #24467bdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 7.53:1 | AAA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 9.16:1 | AAA |
| Accent | 8.18:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Dart in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.014 249.65);
--muted: oklch(0.96 0.003 258.321);
--muted-foreground: oklch(0.414 0.01 258.36);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.014 249.65);
--card: oklch(1 0 180);
--card-foreground: oklch(0.109 0.014 249.65);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.398 0.097 258.382);
--primary-foreground: oklch(0.92 0.023 258.361);
--secondary: oklch(0.845 0.016 258.353);
--secondary-foreground: oklch(0.321 0.023 258.363);
--accent: oklch(0.845 0.016 258.353);
--accent-foreground: oklch(0.321 0.023 258.363);
--destructive: oklch(0.461 0.133 42.562);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.398 0.097 258.382);
--chart-1: oklch(0.398 0.097 258.382);
--chart-2: oklch(0.845 0.016 258.353);
--chart-3: oklch(0.845 0.016 258.353);
--chart-4: oklch(0.87 0.014 258.348);
--chart-5: oklch(0.397 0.102 258.434);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.016 250.026);
--foreground: oklch(0.984 0.002 258.317);
--muted: oklch(0.156 0.005 258.368);
--muted-foreground: oklch(0.761 0.009 258.34);
--popover: oklch(0.124 0.016 250.026);
--popover-foreground: oklch(0.984 0.002 258.317);
--card: oklch(0.124 0.016 250.026);
--card-foreground: oklch(0.984 0.002 258.317);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.398 0.097 258.382);
--primary-foreground: oklch(0.92 0.023 258.361);
--secondary: oklch(0.233 0.01 258.372);
--secondary-foreground: oklch(0.773 0.018 258.358);
--accent: oklch(0.233 0.01 258.372);
--accent-foreground: oklch(0.773 0.018 258.358);
--destructive: oklch(0.627 0.187 41.599);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.398 0.097 258.382);
--chart-1: oklch(0.398 0.097 258.382);
--chart-2: oklch(0.233 0.01 258.372);
--chart-3: oklch(0.233 0.01 258.372);
--chart-4: oklch(0.264 0.013 258.372);
--chart-5: oklch(0.397 0.102 258.434);
}