Sugary is a shadcn/ui theme built around a vivid light red primary color (#fea4bb) with vivid light teal accents (#a4fee8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#fea4bb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fbf8f9snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #000000black | #fbf8f9snow |
| Primary | #fea4bblightpink | #fea4bblightpink |
| Primary foreground | #6f011dmaroon | #6f011dmaroon |
| Secondary | #a4fee8paleturquoise | #a4fee8paleturquoise |
| Secondary foreground | #000a08black | #000a08black |
| Muted | #dff1eclavender | #0e201bblack |
| Muted foreground | #506862dimgray | #97afa9darkgray |
| Accent | #a4fee8paleturquoise | #a4fee8paleturquoise |
| Accent foreground | #000a08black | #000a08black |
| Destructive | #b73c10firebrick | #d84713chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fea4bblightpink | #fea4bblightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 17.12:1 | AAA |
| Muted text | 5.12:1 | AA |
| Accent | 17.12:1 | AAA |
| Destructive | 5.71:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 17.12:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 17.12:1 | AAA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Sugary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.943 0.019 179.273);
--muted-foreground: oklch(0.495 0.03 178.012);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.814 0.109 3.529);
--primary-foreground: oklch(0.344 0.137 17.653);
--secondary: oklch(0.934 0.092 176.603);
--secondary-foreground: oklch(0.13 0.023 179.938);
--accent: oklch(0.934 0.092 176.603);
--accent-foreground: oklch(0.13 0.023 179.938);
--destructive: oklch(0.53 0.166 37.582);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.109 3.529);
--chart-1: oklch(0.814 0.109 3.529);
--chart-2: oklch(0.934 0.092 176.603);
--chart-3: oklch(0.934 0.092 176.603);
--chart-4: oklch(0.944 0.078 177.22);
--chart-5: oklch(0.813 0.113 3.651);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 359.961);
--muted: oklch(0.225 0.025 176.068);
--muted-foreground: oklch(0.734 0.028 178.748);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 359.961);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.002 359.913);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.814 0.109 3.529);
--primary-foreground: oklch(0.344 0.137 17.653);
--secondary: oklch(0.934 0.092 176.603);
--secondary-foreground: oklch(0.13 0.023 179.938);
--accent: oklch(0.934 0.092 176.603);
--accent-foreground: oklch(0.13 0.023 179.938);
--destructive: oklch(0.597 0.189 37.385);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.109 3.529);
--chart-1: oklch(0.814 0.109 3.529);
--chart-2: oklch(0.934 0.092 176.603);
--chart-3: oklch(0.934 0.092 176.603);
--chart-4: oklch(0.944 0.078 177.22);
--chart-5: oklch(0.813 0.113 3.651);
}