Creamy corner is a shadcn/ui theme built around a pink primary color (#e080a7) with vivid light pink accents (#fce3eb). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the pink primary (#e080a7) on a blue-tinted background (#04050c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #04050cblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f6f8fdghostwhite | #05070fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f6f8fdghostwhite | #05070fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e080a7palevioletred | #e080a7palevioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #99e2dflightblue | #99e2dflightblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2d5d7gainsboro | #3d151bblack |
| Muted foreground | #5f4e51dimgray | #ffffffwhite |
| Accent | #fce3ebmistyrose | #9c3544brown |
| Accent foreground | #000000black | #ffffffwhite |
| Destructive | #d01e1efirebrick | #d01e1efirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e9e9eclavender | #1e1f24black |
| Input | #e9e9eclavender | #1e1f24black |
| Ring | #e080a7palevioletred | #e080a7palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 2.68:1 | Fail |
| Secondary button | 14.29:1 | AAA |
| Muted text | 5.45:1 | AA |
| Accent | 17.32:1 | AAA |
| Destructive | 5.41:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 2.68:1 | Fail |
| Secondary button | 14.29:1 | AAA |
| Muted text | 15.89:1 | AAA |
| Accent | 6.98:1 | AA |
| Destructive | 5.40:1 | AA |
Paste this into your globals.css to use Creamy corner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 278.261);
--foreground: oklch(0 0 0);
--muted: oklch(0.884 0.014 7.005);
--muted-foreground: oklch(0.443 0.024 7.922);
--popover: oklch(0.979 0.008 278.202);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.979 0.008 278.202);
--card-foreground: oklch(0 0 0);
--border: oklch(0.935 0.004 278.252);
--input: oklch(0.935 0.004 278.252);
--primary: oklch(0.715 0.126 354.955);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.864 0.073 192.622);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.938 0.029 356.292);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.549 0.209 27.712);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.126 354.955);
--chart-1: oklch(0.715 0.126 354.955);
--chart-2: oklch(0.864 0.073 192.622);
--chart-3: oklch(0.938 0.029 356.292);
--chart-4: oklch(0.879 0.065 192.822);
--chart-5: oklch(0.714 0.132 355.198);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.018 272.675);
--foreground: oklch(0.991 0.002 278.293);
--muted: oklch(0.26 0.063 13.594);
--muted-foreground: oklch(1 0 180);
--popover: oklch(0.129 0.021 273.13);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.129 0.021 273.13);
--card-foreground: oklch(1 0 180);
--border: oklch(0.241 0.01 277.7);
--input: oklch(0.241 0.01 277.7);
--primary: oklch(0.715 0.126 354.955);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.864 0.073 192.622);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.482 0.137 15.339);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.55 0.21 27.731);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.126 354.955);
--chart-1: oklch(0.715 0.126 354.955);
--chart-2: oklch(0.864 0.073 192.622);
--chart-3: oklch(0.482 0.137 15.339);
--chart-4: oklch(0.879 0.065 192.822);
--chart-5: oklch(0.714 0.132 355.198);
}