Dobri Next -A08- Midnight is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted indigo accents (#3d4166). The light mode uses an indigo-tinted background (#212236). Dark mode keeps the near-white primary (#ffffff) on an indigo-tinted background (#212236).
| Token | Light | Dark |
|---|---|---|
| Background | #212236darkslategray | #212236darkslategray |
| Foreground | #cdd4e5lightgrey | #cdd4e5lightgrey |
| Card | #1d1e30darkslategray | #1d1e30darkslategray |
| Card foreground | #dee2edlavender | #dee2edlavender |
| Popover | #1b1c2dblack | #1b1c2dblack |
| Popover foreground | #eef1f6whitesmoke | #eef1f6whitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2f303cdarkslategray | #2f303cdarkslategray |
| Muted foreground | #acaebedarkgray | #acaebedarkgray |
| Accent | #3d4166darkslategray | #3d4166darkslategray |
| Accent foreground | #e6e6f0lavender | #e6e6f0lavender |
| Destructive | #e6210fred | #e6210fred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #303141darkslategray | #303141darkslategray |
| Input | #363849darkslategray | #363849darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.48:1 | AAA |
| Text on card | 12.63:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.57:1 | AA |
| Text on background | 10.48:1 | AAA |
| Text on card | 12.63:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 4.57:1 | AA |
Paste this into your globals.css to use Dobri Next -A08- Midnight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.261 0.037 279.486);
--foreground: oklch(0.87 0.024 267.237);
--muted: oklch(0.314 0.021 281.021);
--muted-foreground: oklch(0.754 0.023 281.686);
--popover: oklch(0.234 0.032 279.657);
--popover-foreground: oklch(0.957 0.008 267.372);
--card: oklch(0.243 0.033 279.595);
--card-foreground: oklch(0.913 0.016 267.312);
--border: oklch(0.319 0.028 280.649);
--input: oklch(0.346 0.031 280.604);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.388 0.063 279.024);
--accent-foreground: oklch(0.928 0.013 281.984);
--destructive: oklch(0.591 0.229 30.087);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.388 0.063 279.024);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.261 0.037 279.486);
--foreground: oklch(0.87 0.024 267.237);
--muted: oklch(0.314 0.021 281.021);
--muted-foreground: oklch(0.754 0.023 281.686);
--popover: oklch(0.234 0.032 279.657);
--popover-foreground: oklch(0.957 0.008 267.372);
--card: oklch(0.243 0.033 279.595);
--card-foreground: oklch(0.913 0.016 267.312);
--border: oklch(0.319 0.028 280.649);
--input: oklch(0.346 0.031 280.604);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.388 0.063 279.024);
--accent-foreground: oklch(0.928 0.013 281.984);
--destructive: oklch(0.591 0.229 30.087);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.388 0.063 279.024);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}