Dolor is a shadcn/ui theme built around a deep blue primary color (#12294e) with deep green accents (#294e12). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#12294e) on a blue-tinted background (#06090e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06090eblack |
| Foreground | #010204black | #f5f7f9whitesmoke |
| Card | #fcfcfcsnow | #080c11black |
| Card foreground | #000000black | #f8fafbghostwhite |
| Popover | #fcfcfcsnow | #080c11black |
| Popover foreground | #000000black | #f8fafbghostwhite |
| Primary | #12294emidnightblue | #12294emidnightblue |
| Primary foreground | #a8c2eblightsteelblue | #a8c2eblightsteelblue |
| Secondary | #4e1229maroon | #4e1229maroon |
| Secondary foreground | #eba8c2lightpink | #eba8c2lightpink |
| Muted | #e8e3e5gainsboro | #1c1719black |
| Muted foreground | #483c41darkslategray | #c3b7bbsilver |
| Accent | #294e12darkgreen | #294e12darkgreen |
| Accent foreground | #c2eba8palegoldenrod | #c2eba8palegoldenrod |
| Destructive | #7f0701maroon | #ef0d01red |
| Destructive foreground | #ffb7b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #12294emidnightblue | #12294emidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 8.29:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 18.53:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 9.10:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Dolor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.087 0.01 252.599);
--muted: oklch(0.921 0.005 351.762);
--muted-foreground: oklch(0.372 0.018 352.94);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.286 0.074 259.498);
--primary-foreground: oklch(0.808 0.065 259.852);
--secondary: oklch(0.294 0.092 1.199);
--secondary-foreground: oklch(0.802 0.084 354.419);
--accent: oklch(0.384 0.098 135.859);
--accent-foreground: oklch(0.894 0.098 133.815);
--destructive: oklch(0.378 0.15 30.071);
--destructive-foreground: oklch(0.845 0.084 22.391);
--ring: oklch(0.286 0.074 259.498);
--chart-1: oklch(0.286 0.074 259.498);
--chart-2: oklch(0.294 0.092 1.199);
--chart-3: oklch(0.384 0.098 135.859);
--chart-4: oklch(0.324 0.103 1.553);
--chart-5: oklch(0.286 0.077 259.517);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.012 256.731);
--foreground: oklch(0.975 0.004 259.938);
--muted: oklch(0.212 0.008 352.644);
--muted-foreground: oklch(0.79 0.015 352.124);
--popover: oklch(0.152 0.014 259.102);
--popover-foreground: oklch(0.983 0.003 259.937);
--card: oklch(0.152 0.014 259.102);
--card-foreground: oklch(0.983 0.003 259.937);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.286 0.074 259.498);
--primary-foreground: oklch(0.808 0.065 259.852);
--secondary: oklch(0.294 0.092 1.199);
--secondary-foreground: oklch(0.802 0.084 354.419);
--accent: oklch(0.384 0.098 135.859);
--accent-foreground: oklch(0.894 0.098 133.815);
--destructive: oklch(0.6 0.242 29.63);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.286 0.074 259.498);
--chart-1: oklch(0.286 0.074 259.498);
--chart-2: oklch(0.294 0.092 1.199);
--chart-3: oklch(0.384 0.098 135.859);
--chart-4: oklch(0.324 0.103 1.553);
--chart-5: oklch(0.286 0.077 259.517);
}