Officer is a shadcn/ui theme built around a vivid deep pink primary color (#68082b) with muted light pink accents (#cfc4c8). The light mode uses a neutral background (#fbf8f9). Dark mode keeps the vivid deep pink primary (#68082b) on a neutral background (#080304).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8f9snow | #080304black |
| Foreground | #15050bblack | #faf5f7whitesmoke |
| Card | #faf5f7whitesmoke | #0b0407black |
| Card foreground | #110408black | #fbf8f9snow |
| Popover | #faf5f7whitesmoke | #0b0407black |
| Popover foreground | #110408black | #fbf8f9snow |
| Primary | #68082bmaroon | #68082bmaroon |
| Primary foreground | #f8aac7lightpink | #f8aac7lightpink |
| Secondary | #e2dfe0gainsboro | #231a1dblack |
| Secondary foreground | #4b4446darkslategray | #c3acb5silver |
| Muted | #e1d1d7gainsboro | #2e1e24darkslategray |
| Muted foreground | #5d464fdimgray | #b9a2aadarkgray |
| Accent | #cfc4c8silver | #39222bdarkslategray |
| Accent foreground | #362b2fdarkslategray | #d5b9c3thistle |
| Destructive | #66140bmaroon | #e83521orangered |
| Destructive foreground | #f6b3aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #68082bmaroon | #68082bmaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.85:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 7.19:1 | AAA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Officer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 352.683);
--foreground: oklch(0.146 0.033 356.257);
--muted: oklch(0.875 0.019 353.204);
--muted-foreground: oklch(0.422 0.034 354.758);
--popover: oklch(0.974 0.006 352.739);
--popover-foreground: oklch(0.133 0.029 354.195);
--card: oklch(0.974 0.006 352.739);
--card-foreground: oklch(0.133 0.029 354.195);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.337 0.127 7.269);
--primary-foreground: oklch(0.821 0.098 355.802);
--secondary: oklch(0.906 0.004 352.691);
--secondary-foreground: oklch(0.394 0.011 353.331);
--accent: oklch(0.83 0.014 353.069);
--accent-foreground: oklch(0.303 0.017 354.126);
--destructive: oklch(0.335 0.116 30.373);
--destructive-foreground: oklch(0.828 0.079 26.055);
--ring: oklch(0.337 0.127 7.269);
--chart-1: oklch(0.337 0.127 7.269);
--chart-2: oklch(0.906 0.004 352.691);
--chart-3: oklch(0.83 0.014 353.069);
--chart-4: oklch(0.93 0.003 352.659);
--chart-5: oklch(0.339 0.129 7.863);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.017 352.249);
--foreground: oklch(0.974 0.005 352.733);
--muted: oklch(0.258 0.027 355.4);
--muted-foreground: oklch(0.735 0.029 353.68);
--popover: oklch(0.123 0.019 352.402);
--popover-foreground: oklch(0.983 0.004 352.679);
--card: oklch(0.123 0.019 352.402);
--card-foreground: oklch(0.983 0.004 352.679);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.337 0.127 7.269);
--primary-foreground: oklch(0.821 0.098 355.802);
--secondary: oklch(0.23 0.017 354.577);
--secondary-foreground: oklch(0.767 0.029 353.622);
--accent: oklch(0.286 0.037 356.121);
--accent-foreground: oklch(0.812 0.035 353.77);
--destructive: oklch(0.608 0.217 30.454);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.337 0.127 7.269);
--chart-1: oklch(0.337 0.127 7.269);
--chart-2: oklch(0.23 0.017 354.577);
--chart-3: oklch(0.286 0.037 356.121);
--chart-4: oklch(0.26 0.02 354.714);
--chart-5: oklch(0.339 0.129 7.863);
}