Sage is a shadcn/ui theme built around a muted deep violet primary color (#503d57) with muted deep green accents (#44573d). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the muted deep violet primary (#503d57) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fbsnow | #030104black |
| Foreground | #09040cblack | #fdfcfdwhite |
| Card | #fbf8fbsnow | #030104black |
| Card foreground | #09040cblack | #fdfcfdwhite |
| Popover | #fbf8fbsnow | #030104black |
| Popover foreground | #09040cblack | #fdfcfdwhite |
| Primary | #503d57darkslategray | #503d57darkslategray |
| Primary foreground | #e5dee8gainsboro | #e5dee8gainsboro |
| Secondary | #44573ddarkslategray | #44573ddarkslategray |
| Secondary foreground | #e1e8degainsboro | #e1e8degainsboro |
| Muted | #eaecealinen | #141513black |
| Muted foreground | #545553dimgray | #aaacaadarkgray |
| Accent | #44573ddarkslategray | #44573ddarkslategray |
| Accent foreground | #e1e8degainsboro | #e1e8degainsboro |
| Destructive | #b73806firebrick | #f85312orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #503d57darkslategray | #503d57darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 6.29:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 5.86:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.46:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 7.99:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Sage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 316.595);
--foreground: oklch(0.121 0.024 318.147);
--muted: oklch(0.94 0.003 136.619);
--muted-foreground: oklch(0.448 0.003 136.63);
--popover: oklch(0.983 0.005 316.595);
--popover-foreground: oklch(0.121 0.024 318.147);
--card: oklch(0.983 0.005 316.595);
--card-foreground: oklch(0.121 0.024 318.147);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.39 0.05 316.22);
--primary-foreground: oklch(0.909 0.016 316.558);
--secondary: oklch(0.434 0.049 136.998);
--secondary-foreground: oklch(0.923 0.016 136.659);
--accent: oklch(0.434 0.049 136.998);
--accent-foreground: oklch(0.923 0.016 136.659);
--destructive: oklch(0.524 0.171 37.329);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.39 0.05 316.22);
--chart-1: oklch(0.39 0.05 316.22);
--chart-2: oklch(0.434 0.049 136.998);
--chart-3: oklch(0.434 0.049 136.998);
--chart-4: oklch(0.464 0.053 137.005);
--chart-5: oklch(0.388 0.059 316.144);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.019 318.617);
--foreground: oklch(0.991 0.003 316.601);
--muted: oklch(0.195 0.005 136.68);
--muted-foreground: oklch(0.742 0.003 136.62);
--popover: oklch(0.083 0.019 318.617);
--popover-foreground: oklch(0.991 0.003 316.601);
--card: oklch(0.083 0.019 318.617);
--card-foreground: oklch(0.991 0.003 316.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.39 0.05 316.22);
--primary-foreground: oklch(0.909 0.016 316.558);
--secondary: oklch(0.434 0.049 136.998);
--secondary-foreground: oklch(0.923 0.016 136.659);
--accent: oklch(0.434 0.049 136.998);
--accent-foreground: oklch(0.923 0.016 136.659);
--destructive: oklch(0.662 0.211 37.821);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.39 0.05 316.22);
--chart-1: oklch(0.39 0.05 316.22);
--chart-2: oklch(0.434 0.049 136.998);
--chart-3: oklch(0.434 0.049 136.998);
--chart-4: oklch(0.464 0.053 137.005);
--chart-5: oklch(0.388 0.059 316.144);
}