Rosy is a shadcn/ui theme built around a light cyan primary color (#f2f7f8) with light red accents (#f8f2f2). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the light cyan primary (#f2f7f8) on a cyan-tinted background (#050e10).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfdghostwhite | #050e10black |
| Foreground | #020708black | #ffffffwhite |
| Card | #f3fbfcmintcream | #061213black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #f3fbfcmintcream | #061213black |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #f2f7f8whitesmoke | #f2f7f8whitesmoke |
| Primary foreground | #1c3236darkslategray | #1c3236darkslategray |
| Secondary | #f8f2f2whitesmoke | #f8f2f2whitesmoke |
| Secondary foreground | #79463esienna | #79463esienna |
| Muted | #f0e2e0mistyrose | #1f110fblack |
| Muted foreground | #6f5652dimgray | #ad9390rosybrown |
| Accent | #f8f2f2whitesmoke | #f8f2f2whitesmoke |
| Accent foreground | #79463esienna | #79463esienna |
| Destructive | #b43908firebrick | #e0470borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2f7f8whitesmoke | #f2f7f8whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 12.47:1 | AAA |
| Secondary button | 6.89:1 | AA |
| Muted text | 5.32:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 5.93:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 12.47:1 | AAA |
| Secondary button | 6.89:1 | AA |
| Muted text | 6.42:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Rosy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 207.91);
--foreground: oklch(0.122 0.013 204.707);
--muted: oklch(0.924 0.016 28.028);
--muted-foreground: oklch(0.479 0.034 28.468);
--popover: oklch(0.981 0.008 207.899);
--popover-foreground: oklch(0.097 0.011 204.707);
--card: oklch(0.981 0.008 207.899);
--card-foreground: oklch(0.097 0.011 204.707);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.973 0.006 207.907);
--primary-foreground: oklch(0.301 0.029 208.15);
--secondary: oklch(0.966 0.006 27.965);
--secondary-foreground: oklch(0.453 0.072 29.505);
--accent: oklch(0.966 0.006 27.965);
--accent-foreground: oklch(0.453 0.072 29.505);
--destructive: oklch(0.521 0.167 37.706);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.973 0.006 207.907);
--chart-1: oklch(0.973 0.006 207.907);
--chart-2: oklch(0.966 0.006 27.965);
--chart-3: oklch(0.966 0.006 27.965);
--chart-4: oklch(0.992 0.002 27.941);
--chart-5: oklch(0.973 0.007 207.904);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.015 206.916);
--foreground: oklch(1 0 180);
--muted: oklch(0.196 0.025 29.084);
--muted-foreground: oklch(0.686 0.031 28.228);
--popover: oklch(0.17 0.018 207.679);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.17 0.018 207.679);
--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.973 0.006 207.907);
--primary-foreground: oklch(0.301 0.029 208.15);
--secondary: oklch(0.966 0.006 27.965);
--secondary-foreground: oklch(0.453 0.072 29.505);
--accent: oklch(0.966 0.006 27.965);
--accent-foreground: oklch(0.453 0.072 29.505);
--destructive: oklch(0.61 0.198 37.361);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.973 0.006 207.907);
--chart-1: oklch(0.973 0.006 207.907);
--chart-2: oklch(0.966 0.006 27.965);
--chart-3: oklch(0.966 0.006 27.965);
--chart-4: oklch(0.992 0.002 27.941);
--chart-5: oklch(0.973 0.007 207.904);
}