Slice is a shadcn/ui theme built around a vivid red primary color (#e53457) with neutral gray accents (#e6e5e5). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid red primary (#e53457) on a red-tinted background (#0c0305).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0c0305black |
| Foreground | #0d0305black | #f9f6f7whitesmoke |
| Card | #fdf7f8snow | #100407black |
| Card foreground | #080203black | #fbf9f9snow |
| Popover | #fdf7f8snow | #100407black |
| Popover foreground | #080203black | #fbf9f9snow |
| Primary | #e53457crimson | #e53457crimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e6e5e5gainsboro | #1b1314black |
| Secondary foreground | #4d4c4cdarkslategray | #bea2a7darkgray |
| Muted | #e4dddegainsboro | #221b1cblack |
| Muted foreground | #4f4a4bdarkslategray | #b5b0b1darkgray |
| Accent | #e6e5e5gainsboro | #1b1314black |
| Accent foreground | #4d4c4cdarkslategray | #bea2a7darkgray |
| Destructive | #a10808darkred | #f41f1fcrimson |
| Destructive foreground | #fdddddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e53457crimson | #e53457crimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 6.81:1 | AA |
| Muted text | 6.49:1 | AA |
| Accent | 6.81:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 7.75:1 | AAA |
| Muted text | 7.89:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Slice in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 3.276);
--foreground: oklch(0.118 0.025 3.818);
--muted: oklch(0.903 0.008 3.431);
--muted-foreground: oklch(0.415 0.006 3.592);
--popover: oklch(0.981 0.007 3.369);
--popover-foreground: oklch(0.103 0.022 3.511);
--card: oklch(0.981 0.007 3.369);
--card-foreground: oklch(0.103 0.022 3.511);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.609 0.211 15.512);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.923 0.001 3.201);
--secondary-foreground: oklch(0.417 0.002 3.319);
--accent: oklch(0.923 0.001 3.201);
--accent-foreground: oklch(0.417 0.002 3.319);
--destructive: oklch(0.448 0.179 28.721);
--destructive-foreground: oklch(0.924 0.036 17.823);
--ring: oklch(0.609 0.211 15.512);
--chart-1: oklch(0.609 0.211 15.512);
--chart-2: oklch(0.923 0.001 3.201);
--chart-3: oklch(0.923 0.001 3.201);
--chart-4: oklch(0.946 0 3.195);
--chart-5: oklch(0.612 0.216 16.109);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.023 3.713);
--foreground: oklch(0.976 0.003 3.259);
--muted: oklch(0.231 0.012 4.542);
--muted-foreground: oklch(0.762 0.005 3.375);
--popover: oklch(0.133 0.026 4.876);
--popover-foreground: oklch(0.984 0.002 3.233);
--card: oklch(0.133 0.026 4.876);
--card-foreground: oklch(0.984 0.002 3.233);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.609 0.211 15.512);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.197 0.014 5.054);
--secondary-foreground: oklch(0.738 0.034 4.416);
--accent: oklch(0.197 0.014 5.054);
--accent-foreground: oklch(0.738 0.034 4.416);
--destructive: oklch(0.618 0.24 28.1);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.211 15.512);
--chart-1: oklch(0.609 0.211 15.512);
--chart-2: oklch(0.197 0.014 5.054);
--chart-3: oklch(0.197 0.014 5.054);
--chart-4: oklch(0.228 0.018 5.262);
--chart-5: oklch(0.612 0.216 16.109);
}