Shawl is a shadcn/ui theme built around a muted light pink primary color (#f8f7f7) with muted light teal accents (#f7f8f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#f8f7f7) on a pink-tinted background (#0f050a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f050ablack |
| Foreground | #0c0307black | #ffffffwhite |
| Card | #fcfcfcsnow | #13070cblack |
| Card foreground | #080205black | #ffffffwhite |
| Popover | #fcfcfcsnow | #13070cblack |
| Popover foreground | #080205black | #ffffffwhite |
| Primary | #f8f7f7whitesmoke | #f8f7f7whitesmoke |
| Primary foreground | #67565ddimgray | #67565ddimgray |
| Secondary | #f7f8f7whitesmoke | #f7f8f7whitesmoke |
| Secondary foreground | #272f2cdarkslategray | #272f2cdarkslategray |
| Muted | #e9f2eewhitesmoke | #0d1612black |
| Muted foreground | #4d514fdarkslategray | #aeb2b0darkgray |
| Accent | #f7f8f7whitesmoke | #f7f8f7whitesmoke |
| Accent foreground | #272f2cdarkslategray | #272f2cdarkslategray |
| Destructive | #c33613firebrick | #ea502achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8f7f7whitesmoke | #f8f7f7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 12.89:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 12.89:1 | AAA |
| Destructive | 5.43:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 12.89:1 | AAA |
| Muted text | 8.56:1 | AAA |
| Accent | 12.89:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Shawl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.022 348.67);
--muted: oklch(0.952 0.011 168.415);
--muted-foreground: oklch(0.43 0.005 168.429);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.106 0.019 348.404);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.019 348.404);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.976 0.002 348.781);
--primary-foreground: oklch(0.472 0.025 350.144);
--secondary: oklch(0.978 0.002 168.686);
--secondary-foreground: oklch(0.297 0.012 167.514);
--accent: oklch(0.978 0.002 168.686);
--accent-foreground: oklch(0.297 0.012 167.514);
--destructive: oklch(0.544 0.183 34.245);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.002 348.781);
--chart-1: oklch(0.976 0.002 348.781);
--chart-2: oklch(0.978 0.002 168.686);
--chart-3: oklch(0.978 0.002 168.686);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.976 0.002 348.797);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.022 350.192);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.015 166.226);
--muted-foreground: oklch(0.759 0.004 168.584);
--popover: oklch(0.149 0.025 352.028);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.149 0.025 352.028);
--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.976 0.002 348.781);
--primary-foreground: oklch(0.472 0.025 350.144);
--secondary: oklch(0.978 0.002 168.686);
--secondary-foreground: oklch(0.297 0.012 167.514);
--accent: oklch(0.978 0.002 168.686);
--accent-foreground: oklch(0.297 0.012 167.514);
--destructive: oklch(0.638 0.197 34.85);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.976 0.002 348.781);
--chart-1: oklch(0.976 0.002 348.781);
--chart-2: oklch(0.978 0.002 168.686);
--chart-3: oklch(0.978 0.002 168.686);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.976 0.002 348.797);
}