Theory is a shadcn/ui theme built around a muted light pink primary color (#dcc7d4) with muted light blue accents (#c7d4dc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#dcc7d4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #11040cblack | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #11040cblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #11040cblack | #ffffffwhite |
| Primary | #dcc7d4thistle | #dcc7d4thistle |
| Primary foreground | #452b3cdarkslategray | #452b3cdarkslategray |
| Secondary | #d4dcc7lightgrey | #d4dcc7lightgrey |
| Secondary foreground | #3c452bdarkslategray | #3c452bdarkslategray |
| Muted | #e1ebd1gainsboro | #252e14black |
| Muted foreground | #61635fdimgray | #9fa09cdarkgray |
| Accent | #c7d4dclightgrey | #c7d4dclightgrey |
| Accent foreground | #2b3c45darkslategray | #2b3c45darkslategray |
| Destructive | #b80000darkred | #e60000red |
| Destructive foreground | #ffebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcc7d4thistle | #dcc7d4thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 4.91:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.05:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 5.39:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Theory in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.135 0.032 341.171);
--muted: oklch(0.925 0.036 123.525);
--muted-foreground: oklch(0.497 0.006 123.123);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.135 0.032 341.171);
--card: oklch(1 0 180);
--card-foreground: oklch(0.135 0.032 341.171);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.85 0.03 339.451);
--primary-foreground: oklch(0.328 0.046 341.521);
--secondary: oklch(0.882 0.03 123.446);
--secondary-foreground: oklch(0.374 0.044 124.821);
--accent: oklch(0.862 0.018 232.885);
--accent-foreground: oklch(0.344 0.027 233.968);
--destructive: oklch(0.491 0.201 29.234);
--destructive-foreground: oklch(0.955 0.022 17.549);
--ring: oklch(0.85 0.03 339.451);
--chart-1: oklch(0.85 0.03 339.451);
--chart-2: oklch(0.882 0.03 123.446);
--chart-3: oklch(0.862 0.018 232.885);
--chart-4: oklch(0.902 0.025 123.347);
--chart-5: oklch(0.848 0.034 339.546);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.285 0.045 125.671);
--muted-foreground: oklch(0.704 0.006 123.054);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.85 0.03 339.451);
--primary-foreground: oklch(0.328 0.046 341.521);
--secondary: oklch(0.882 0.03 123.446);
--secondary-foreground: oklch(0.374 0.044 124.821);
--accent: oklch(0.862 0.018 232.885);
--accent-foreground: oklch(0.344 0.027 233.968);
--destructive: oklch(0.58 0.238 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.85 0.03 339.451);
--chart-1: oklch(0.85 0.03 339.451);
--chart-2: oklch(0.882 0.03 123.446);
--chart-3: oklch(0.862 0.018 232.885);
--chart-4: oklch(0.902 0.025 123.347);
--chart-5: oklch(0.848 0.034 339.546);
}