Smooth Sugar Grape is a shadcn/ui theme built around a vivid violet primary color (#8839ef) with muted light blue accents (#c0c8d8). The light mode uses a blue-tinted background (#eff1f5). Dark mode keeps the vivid violet primary (#8839ef) on a blue-tinted background (#eff1f5).
| Token | Light | Dark |
|---|---|---|
| Background | #eff1f5whitesmoke | #eff1f5whitesmoke |
| Foreground | #4b4e68darkslategray | #4b4e68darkslategray |
| Card | #f7f7f7whitesmoke | #e9ecf1lavender |
| Card foreground | #404359darkslategray | #404359darkslategray |
| Popover | #f7f7f7whitesmoke | #e6e9eflavender |
| Popover foreground | #36384adarkslategray | #36384adarkslategray |
| Primary | #8839efblueviolet | #8839efblueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bdacd2silver | #bdacd2silver |
| Secondary foreground | #251b32darkslategray | #251b32darkslategray |
| Muted | #e2e4e9gainsboro | #e2e4e9gainsboro |
| Muted foreground | #434956darkslategray | #434956darkslategray |
| Accent | #c0c8d8lightsteelblue | #c0c8d8lightsteelblue |
| Accent foreground | #272f3fdarkslategray | #272f3fdarkslategray |
| Destructive | #b0140cfirebrick | #b0140cfirebrick |
| Destructive foreground | #fef1f1lavenderblush | #fef1f1lavenderblush |
| Border | #e2e4e9gainsboro | #e2e4e9gainsboro |
| Input | #dadce2gainsboro | #dadce2gainsboro |
| Ring | #8839efblueviolet | #8839efblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.19:1 | AAA |
| Text on card | 9.03:1 | AAA |
| Primary button | 5.42:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.43:1 | AA |
| Text on background | 7.19:1 | AAA |
| Text on card | 8.18:1 | AAA |
| Primary button | 5.42:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use Smooth Sugar Grape in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.959 0.006 264.533);
--foreground: oklch(0.431 0.043 279.511);
--muted: oklch(0.92 0.006 264.531);
--muted-foreground: oklch(0.406 0.022 264.291);
--popover: oklch(0.976 0 180);
--popover-foreground: oklch(0.345 0.032 279.621);
--card: oklch(0.975 0 173.991);
--card-foreground: oklch(0.389 0.037 279.559);
--border: oklch(0.92 0.006 264.529);
--input: oklch(0.895 0.008 264.52);
--primary: oklch(0.554 0.25 296.956);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.771 0.057 304.762);
--secondary-foreground: oklch(0.245 0.044 303.216);
--accent: oklch(0.832 0.023 264.439);
--accent-foreground: oklch(0.305 0.03 263.965);
--destructive: oklch(0.484 0.188 29.368);
--destructive-foreground: oklch(0.969 0.014 21.071);
--ring: oklch(0.554 0.25 296.956);
--chart-1: oklch(0.554 0.25 296.956);
--chart-2: oklch(0.771 0.057 304.762);
--chart-3: oklch(0.832 0.023 264.439);
--chart-4: oklch(0.799 0.049 304.917);
--chart-5: oklch(0.553 0.256 296.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.959 0.006 264.533);
--foreground: oklch(0.431 0.043 279.511);
--muted: oklch(0.92 0.006 264.531);
--muted-foreground: oklch(0.406 0.022 264.291);
--popover: oklch(0.934 0.009 264.519);
--popover-foreground: oklch(0.345 0.032 279.621);
--card: oklch(0.942 0.008 264.524);
--card-foreground: oklch(0.389 0.037 279.559);
--border: oklch(0.92 0.006 264.529);
--input: oklch(0.895 0.008 264.52);
--primary: oklch(0.554 0.25 296.956);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.771 0.057 304.762);
--secondary-foreground: oklch(0.245 0.044 303.216);
--accent: oklch(0.832 0.023 264.439);
--accent-foreground: oklch(0.305 0.03 263.965);
--destructive: oklch(0.484 0.188 29.368);
--destructive-foreground: oklch(0.969 0.014 21.071);
--ring: oklch(0.554 0.25 296.956);
--chart-1: oklch(0.554 0.25 296.956);
--chart-2: oklch(0.771 0.057 304.762);
--chart-3: oklch(0.832 0.023 264.439);
--chart-4: oklch(0.799 0.049 304.917);
--chart-5: oklch(0.553 0.256 296.488);
}