Dolor is a shadcn/ui theme built around a deep blue primary color (#192a6b) with deep violet accents (#32196b). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the deep blue primary (#192a6b) on a blue-tinted background (#050710).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #050710black |
| Foreground | #050815black | #fcfcfdwhite |
| Card | #f3f5fcaliceblue | #060913black |
| Card foreground | #040611black | #ffffffwhite |
| Popover | #f3f5fcaliceblue | #060913black |
| Popover foreground | #040611black | #ffffffwhite |
| Primary | #192a6bmidnightblue | #192a6bmidnightblue |
| Primary foreground | #c5cef1lightblue | #c5cef1lightblue |
| Secondary | #19536bdarkslategray | #19536bdarkslategray |
| Secondary foreground | #c5e4f1powderblue | #c5e4f1powderblue |
| Muted | #d6e5ebgainsboro | #142329black |
| Muted foreground | #3e4447darkslategray | #b8bfc1silver |
| Accent | #32196bmidnightblue | #32196bmidnightblue |
| Accent foreground | #d2c5f1thistle | #d2c5f1thistle |
| Destructive | #7c0d03maroon | #f92d1aorangered |
| Destructive foreground | #fdbab4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #192a6bmidnightblue | #192a6bmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.84:1 | AAA |
| Text on card | 18.52:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 7.64:1 | AAA |
| Accent | 8.72:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 8.65:1 | AAA |
| Accent | 8.72:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Dolor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 274.959);
--foreground: oklch(0.138 0.03 268.495);
--muted: oklch(0.912 0.018 225.222);
--muted-foreground: oklch(0.382 0.01 225.298);
--popover: oklch(0.97 0.009 274.918);
--popover-foreground: oklch(0.127 0.026 267.617);
--card: oklch(0.97 0.009 274.918);
--card-foreground: oklch(0.127 0.026 267.617);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.315 0.116 268.215);
--primary-foreground: oklch(0.856 0.05 274.236);
--secondary: oklch(0.416 0.071 230.61);
--secondary-foreground: oklch(0.901 0.037 225.537);
--accent: oklch(0.305 0.133 289.895);
--accent-foreground: oklch(0.849 0.062 298.79);
--destructive: oklch(0.376 0.145 30.439);
--destructive-foreground: oklch(0.85 0.078 24.716);
--ring: oklch(0.315 0.116 268.215);
--chart-1: oklch(0.315 0.116 268.215);
--chart-2: oklch(0.416 0.071 230.61);
--chart-3: oklch(0.305 0.133 289.895);
--chart-4: oklch(0.449 0.077 230.772);
--chart-5: oklch(0.313 0.122 267.82);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.02 269.579);
--foreground: oklch(0.991 0.002 275.011);
--muted: oklch(0.245 0.024 226.799);
--muted-foreground: oklch(0.799 0.008 225.1);
--popover: oklch(0.142 0.024 270.511);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.024 270.511);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.315 0.116 268.215);
--primary-foreground: oklch(0.856 0.05 274.236);
--secondary: oklch(0.416 0.071 230.61);
--secondary-foreground: oklch(0.901 0.037 225.537);
--accent: oklch(0.305 0.133 289.895);
--accent-foreground: oklch(0.849 0.062 298.79);
--destructive: oklch(0.633 0.238 30.068);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.315 0.116 268.215);
--chart-1: oklch(0.315 0.116 268.215);
--chart-2: oklch(0.416 0.071 230.61);
--chart-3: oklch(0.305 0.133 289.895);
--chart-4: oklch(0.449 0.077 230.772);
--chart-5: oklch(0.313 0.122 267.82);
}