Samovar is a shadcn/ui theme built around a red primary color (#9f221e) with muted light red accents (#dfd8d8). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the red primary (#9f221e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f6snow | #000000black |
| Foreground | #080202black | #ffffffwhite |
| Card | #fdf7f6snow | #000000black |
| Card foreground | #080202black | #ffffffwhite |
| Popover | #fdf7f6snow | #000000black |
| Popover foreground | #080202black | #ffffffwhite |
| Primary | #9f221ebrown | #9f221ebrown |
| Primary foreground | #fdf2f2lavenderblush | #fdf2f2lavenderblush |
| Secondary | #dfd8d8gainsboro | #2d2524darkslategray |
| Secondary foreground | #493c3cdarkslategray | #c9bcbbsilver |
| Muted | #e4d3d2gainsboro | #2d1b1bblack |
| Muted foreground | #5a4544darkolivegreen | #bba6a5darkgray |
| Accent | #dfd8d8gainsboro | #2d2524darkslategray |
| Accent foreground | #493c3cdarkslategray | #c9bcbbsilver |
| Destructive | #9e2905firebrick | #f84f1borangered |
| Destructive foreground | #fee0d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9f221ebrown | #9f221ebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.07:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.05:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Samovar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 19.71);
--foreground: oklch(0.103 0.02 24.52);
--muted: oklch(0.881 0.019 19.918);
--muted-foreground: oklch(0.412 0.03 20.721);
--popover: oklch(0.98 0.007 19.71);
--popover-foreground: oklch(0.103 0.02 24.52);
--card: oklch(0.98 0.007 19.71);
--card-foreground: oklch(0.103 0.02 24.52);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.46 0.161 27.687);
--primary-foreground: oklch(0.97 0.011 19.763);
--secondary: oklch(0.888 0.008 19.726);
--secondary-foreground: oklch(0.37 0.018 20.335);
--accent: oklch(0.888 0.008 19.726);
--accent-foreground: oklch(0.37 0.018 20.335);
--destructive: oklch(0.464 0.159 35.083);
--destructive-foreground: oklch(0.93 0.035 37.615);
--ring: oklch(0.46 0.161 27.687);
--chart-1: oklch(0.46 0.161 27.687);
--chart-2: oklch(0.888 0.008 19.726);
--chart-3: oklch(0.888 0.008 19.726);
--chart-4: oklch(0.912 0.006 19.696);
--chart-5: oklch(0.463 0.166 27.987);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.246 0.028 21.452);
--muted-foreground: oklch(0.742 0.025 20.099);
--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.46 0.161 27.687);
--primary-foreground: oklch(0.97 0.011 19.763);
--secondary: oklch(0.273 0.013 20.328);
--secondary-foreground: oklch(0.804 0.015 19.868);
--accent: oklch(0.273 0.013 20.328);
--accent-foreground: oklch(0.804 0.015 19.868);
--destructive: oklch(0.659 0.213 35.863);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.46 0.161 27.687);
--chart-1: oklch(0.46 0.161 27.687);
--chart-2: oklch(0.273 0.013 20.328);
--chart-3: oklch(0.273 0.013 20.328);
--chart-4: oklch(0.302 0.015 20.363);
--chart-5: oklch(0.463 0.166 27.987);
}