Secretary is a shadcn/ui theme built around a muted blue primary color (#535a65) with neutral gray accents (#dfe0e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#535a65) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #000000black | #f4f7fawhitesmoke |
| Card | #ffffffwhite | #010204black |
| Card foreground | #000000black | #f4f7fawhitesmoke |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #000000black | #f4f7fawhitesmoke |
| Primary | #535a65dimgray | #535a65dimgray |
| Primary foreground | #f4f5f6whitesmoke | #f4f5f6whitesmoke |
| Secondary | #dfe0e2gainsboro | #141619black |
| Secondary foreground | #44474bdarkslategray | #a7aeb9darkgray |
| Muted | #e7eaeelavender | #111318black |
| Muted foreground | #59616edimgray | #9199a6darkgray |
| Accent | #dfe0e2gainsboro | #141619black |
| Accent foreground | #44474bdarkslategray | #a7aeb9darkgray |
| Destructive | #732002maroon | #fa4a0aorangered |
| Destructive foreground | #fdc0aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #535a65dimgray | #535a65dimgray |
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 | 6.40:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Secretary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.935 0.007 259.942);
--muted-foreground: oklch(0.49 0.024 259.919);
--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.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.464 0.02 259.927);
--primary-foreground: oklch(0.969 0.002 259.936);
--secondary: oklch(0.906 0.003 259.937);
--secondary-foreground: oklch(0.395 0.008 259.946);
--accent: oklch(0.906 0.003 259.937);
--accent-foreground: oklch(0.395 0.008 259.946);
--destructive: oklch(0.374 0.121 37.537);
--destructive-foreground: oklch(0.858 0.077 40.876);
--ring: oklch(0.464 0.02 259.927);
--chart-1: oklch(0.464 0.02 259.927);
--chart-2: oklch(0.906 0.003 259.937);
--chart-3: oklch(0.906 0.003 259.937);
--chart-4: oklch(0.93 0.002 259.936);
--chart-5: oklch(0.462 0.027 259.903);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.008 253.549);
--foreground: oklch(0.974 0.005 259.94);
--muted: oklch(0.188 0.011 259.904);
--muted-foreground: oklch(0.681 0.022 259.94);
--popover: oklch(0.087 0.008 253.549);
--popover-foreground: oklch(0.974 0.005 259.94);
--card: oklch(0.087 0.008 253.549);
--card-foreground: oklch(0.974 0.005 259.94);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.464 0.02 259.927);
--primary-foreground: oklch(0.969 0.002 259.936);
--secondary: oklch(0.201 0.007 259.938);
--secondary-foreground: oklch(0.749 0.017 259.945);
--accent: oklch(0.201 0.007 259.938);
--accent-foreground: oklch(0.749 0.017 259.945);
--destructive: oklch(0.657 0.221 36.153);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.464 0.02 259.927);
--chart-1: oklch(0.464 0.02 259.927);
--chart-2: oklch(0.201 0.007 259.938);
--chart-3: oklch(0.201 0.007 259.938);
--chart-4: oklch(0.233 0.009 259.934);
--chart-5: oklch(0.462 0.027 259.903);
}