Shy is a shadcn/ui theme built around a light pink primary color (#f4dceb) with neutral gray accents (#e4e2e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f4dceb) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #12030cblack | #fcf8fasnow |
| Card | #fcfcfcsnow | #080206black |
| Card foreground | #0d0209black | #fdfbfdsnow |
| Popover | #fcfcfcsnow | #080206black |
| Popover foreground | #0d0209black | #fdfbfdsnow |
| Primary | #f4dcebmistyrose | #f4dcebmistyrose |
| Primary foreground | #7a245apurple | #7a245apurple |
| Secondary | #e4e2e3gainsboro | #1f1f1fblack |
| Secondary foreground | #4e464bdarkslategray | #b8b8b8silver |
| Muted | #f1eef0whitesmoke | #110e0eblack |
| Muted foreground | #4b3f47darkslategray | #c0b4b4silver |
| Accent | #e4e2e3gainsboro | #1f1f1fblack |
| Accent foreground | #4e464bdarkslategray | #b8b8b8silver |
| Destructive | #a23010brown | #ea532achocolate |
| Destructive foreground | #fdece8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4dcebmistyrose | #f4dcebmistyrose |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.68:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 9.56:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Shy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.04 341.564);
--muted: oklch(0.952 0.005 338.822);
--muted-foreground: oklch(0.382 0.021 339.872);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.119 0.035 339.806);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.119 0.035 339.806);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.918 0.034 339.498);
--primary-foreground: oklch(0.412 0.133 345.542);
--secondary: oklch(0.914 0.004 338.81);
--secondary-foreground: oklch(0.404 0.012 339.37);
--accent: oklch(0.914 0.004 338.81);
--accent-foreground: oklch(0.404 0.012 339.37);
--destructive: oklch(0.479 0.156 35.189);
--destructive-foreground: oklch(0.956 0.019 35.959);
--ring: oklch(0.918 0.034 339.498);
--chart-1: oklch(0.918 0.034 339.498);
--chart-2: oklch(0.914 0.004 338.81);
--chart-3: oklch(0.914 0.004 338.81);
--chart-4: oklch(0.938 0.003 338.783);
--chart-5: oklch(0.918 0.036 339.541);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.018 339.005);
--foreground: oklch(0.983 0.005 338.833);
--muted: oklch(0.166 0.006 17.742);
--muted-foreground: oklch(0.78 0.014 17.461);
--popover: oklch(0.106 0.023 339.005);
--popover-foreground: oklch(0.991 0.003 338.776);
--card: oklch(0.106 0.023 339.005);
--card-foreground: oklch(0.991 0.003 338.776);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.918 0.034 339.498);
--primary-foreground: oklch(0.412 0.133 345.542);
--secondary: oklch(0.238 0 161.565);
--secondary-foreground: oklch(0.781 0 180);
--accent: oklch(0.238 0 161.565);
--accent-foreground: oklch(0.781 0 180);
--destructive: oklch(0.642 0.194 35.771);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.918 0.034 339.498);
--chart-1: oklch(0.918 0.034 339.498);
--chart-2: oklch(0.238 0 161.565);
--chart-3: oklch(0.238 0 161.565);
--chart-4: oklch(0.27 0 180);
--chart-5: oklch(0.918 0.036 339.541);
}