Sugary is a shadcn/ui theme built around a vivid light teal primary color (#93f1e1) with vivid light blue accents (#93d2f1). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the vivid light teal primary (#93f1e1) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfcmintcream | #010404black |
| Foreground | #04100eblack | #f5faf9mintcream |
| Card | #f7fcfcmintcream | #010404black |
| Card foreground | #04100eblack | #f5faf9mintcream |
| Popover | #f7fcfcmintcream | #010404black |
| Popover foreground | #04100eblack | #f5faf9mintcream |
| Primary | #93f1e1aquamarine | #93f1e1aquamarine |
| Primary foreground | #09483edarkslategray | #09483edarkslategray |
| Secondary | #93f1b2palegreen | #93f1b2palegreen |
| Secondary foreground | #09481edarkgreen | #09481edarkgreen |
| Muted | #daece0gainsboro | #132519black |
| Muted foreground | #414943darkslategray | #b6beb9silver |
| Accent | #93d2f1skyblue | #93d2f1skyblue |
| Accent foreground | #093348darkslategray | #093348darkslategray |
| Destructive | #781a07maroon | #d92f0dorangered |
| Destructive foreground | #fbc2b7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93f1e1aquamarine | #93f1e1aquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Sugary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 185.31);
--foreground: oklch(0.16 0.019 183.124);
--muted: oklch(0.926 0.025 156.709);
--muted-foreground: oklch(0.396 0.014 156.52);
--popover: oklch(0.988 0.005 185.31);
--popover-foreground: oklch(0.16 0.019 183.124);
--card: oklch(0.988 0.005 185.31);
--card-foreground: oklch(0.16 0.019 183.124);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.895 0.093 182.328);
--primary-foreground: oklch(0.362 0.062 178.17);
--secondary: oklch(0.883 0.126 153.87);
--secondary-foreground: oklch(0.354 0.093 149.182);
--accent: oklch(0.831 0.078 230.535);
--accent-foreground: oklch(0.305 0.058 235.606);
--destructive: oklch(0.378 0.132 32.862);
--destructive-foreground: oklch(0.862 0.067 31.405);
--ring: oklch(0.895 0.093 182.328);
--chart-1: oklch(0.895 0.093 182.328);
--chart-2: oklch(0.883 0.126 153.87);
--chart-3: oklch(0.831 0.078 230.535);
--chart-4: oklch(0.896 0.111 154.396);
--chart-5: oklch(0.898 0.096 182.215);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 185.115);
--foreground: oklch(0.981 0.006 185.299);
--muted: oklch(0.245 0.033 154.069);
--muted-foreground: oklch(0.794 0.012 156.957);
--popover: oklch(0.099 0.011 185.115);
--popover-foreground: oklch(0.981 0.006 185.299);
--card: oklch(0.099 0.011 185.115);
--card-foreground: oklch(0.981 0.006 185.299);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.895 0.093 182.328);
--primary-foreground: oklch(0.362 0.062 178.17);
--secondary: oklch(0.883 0.126 153.87);
--secondary-foreground: oklch(0.354 0.093 149.182);
--accent: oklch(0.831 0.078 230.535);
--accent-foreground: oklch(0.305 0.058 235.606);
--destructive: oklch(0.576 0.209 32.382);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.093 182.328);
--chart-1: oklch(0.895 0.093 182.328);
--chart-2: oklch(0.883 0.126 153.87);
--chart-3: oklch(0.831 0.078 230.535);
--chart-4: oklch(0.896 0.111 154.396);
--chart-5: oklch(0.898 0.096 182.215);
}