Refectory is a shadcn/ui theme built around a muted teal primary color (#a2c2c3) with muted red accents (#c3a3a2). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the muted teal primary (#a2c2c3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfcmintcream | #000000black |
| Foreground | #010404black | #fcfdfdwhite |
| Card | #f4fafamintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcfcmintcream | #000000black |
| Popover foreground | #010404black | #fcfdfdwhite |
| Primary | #a2c2c3silver | #a2c2c3silver |
| Primary foreground | #141f1fblack | #141f1fblack |
| Secondary | #c3a3a2darkgray | #c3a3a2darkgray |
| Secondary foreground | #1f1414black | #1f1414black |
| Muted | #eed8d8gainsboro | #271211black |
| Muted foreground | #4f4140darkslategray | #bfb1b0silver |
| Accent | #c3a3a2darkgray | #c3a3a2darkgray |
| Accent foreground | #1f1414black | #1f1414black |
| Destructive | #721d08maroon | #f04c24orangered |
| Destructive foreground | #fac1b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2c2c3silver | #a2c2c3silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 8.87:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.87:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 8.59:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Refectory in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 199.549);
--foreground: oklch(0.099 0.01 197.705);
--muted: oklch(0.901 0.024 19.992);
--muted-foreground: oklch(0.389 0.019 20.345);
--popover: oklch(0.987 0.004 199.549);
--popover-foreground: oklch(0.099 0.01 197.705);
--card: oklch(0.981 0.006 199.521);
--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.791 0.035 199.045);
--primary-foreground: oklch(0.228 0.015 198.793);
--secondary: oklch(0.744 0.039 20.384);
--secondary-foreground: oklch(0.206 0.018 20.986);
--accent: oklch(0.744 0.039 20.384);
--accent-foreground: oklch(0.206 0.018 20.986);
--destructive: oklch(0.37 0.123 34.418);
--destructive-foreground: oklch(0.858 0.069 34.433);
--ring: oklch(0.791 0.035 199.045);
--chart-1: oklch(0.791 0.035 199.045);
--chart-2: oklch(0.744 0.039 20.384);
--chart-3: oklch(0.744 0.039 20.384);
--chart-4: oklch(0.77 0.034 20.266);
--chart-5: oklch(0.795 0.039 198.984);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 199.582);
--muted: oklch(0.212 0.036 22.682);
--muted-foreground: oklch(0.772 0.016 19.9);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 199.582);
--card: oklch(0.092 0 180);
--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.791 0.035 199.045);
--primary-foreground: oklch(0.228 0.015 198.793);
--secondary: oklch(0.744 0.039 20.384);
--secondary-foreground: oklch(0.206 0.018 20.986);
--accent: oklch(0.744 0.039 20.384);
--accent-foreground: oklch(0.206 0.018 20.986);
--destructive: oklch(0.643 0.206 34.628);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.791 0.035 199.045);
--chart-1: oklch(0.791 0.035 199.045);
--chart-2: oklch(0.744 0.039 20.384);
--chart-3: oklch(0.744 0.039 20.384);
--chart-4: oklch(0.77 0.034 20.266);
--chart-5: oklch(0.795 0.039 198.984);
}