Shaw is a shadcn/ui theme built around a muted indigo primary color (#a3a0b6) with muted green accents (#a0b6a3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#a3a0b6) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020204black |
| Foreground | #040212black | #f6f6f9whitesmoke |
| Card | #fcfcfcsnow | #040307black |
| Card foreground | #03020eblack | #f9f9fbghostwhite |
| Popover | #ffffffwhite | #020204black |
| Popover foreground | #040212black | #f6f6f9whitesmoke |
| Primary | #a3a0b6darkgray | #a3a0b6darkgray |
| Primary foreground | #101014black | #101014black |
| Secondary | #b6a3a0darkgray | #b6a3a0darkgray |
| Secondary foreground | #141010black | #141010black |
| Muted | #e8dbd8gainsboro | #271917black |
| Muted foreground | #6c5956dimgray | #a99693rosybrown |
| Accent | #a0b6a3darkgray | #a0b6a3darkgray |
| Accent foreground | #101410black | #101410black |
| Destructive | #a32d05firebrick | #ed4107orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a3a0b6darkgray | #a3a0b6darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 4.85:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Shaw in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.111 0.041 287.496);
--muted: oklch(0.901 0.016 28.027);
--muted-foreground: oklch(0.482 0.025 28.283);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.111 0.041 287.496);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.036 288.531);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.715 0.032 291.699);
--primary-foreground: oklch(0.174 0.01 291.488);
--secondary: oklch(0.73 0.023 28.12);
--secondary-foreground: oklch(0.178 0.007 28.176);
--accent: oklch(0.753 0.036 149.074);
--accent-foreground: oklch(0.185 0.011 148.933);
--destructive: oklch(0.477 0.161 35.817);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.032 291.699);
--chart-1: oklch(0.715 0.032 291.699);
--chart-2: oklch(0.73 0.023 28.12);
--chart-3: oklch(0.753 0.036 149.074);
--chart-4: oklch(0.756 0.02 28.091);
--chart-5: oklch(0.709 0.039 291.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.012 291.21);
--foreground: oklch(0.973 0.004 292.457);
--muted: oklch(0.229 0.023 28.763);
--muted-foreground: oklch(0.689 0.022 28.131);
--popover: oklch(0.081 0.012 291.21);
--popover-foreground: oklch(0.973 0.004 292.457);
--card: oklch(0.102 0.015 291.21);
--card-foreground: oklch(0.982 0.003 292.487);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.715 0.032 291.699);
--primary-foreground: oklch(0.174 0.01 291.488);
--secondary: oklch(0.73 0.023 28.12);
--secondary-foreground: oklch(0.178 0.007 28.176);
--accent: oklch(0.753 0.036 149.074);
--accent-foreground: oklch(0.185 0.011 148.933);
--destructive: oklch(0.627 0.216 35.192);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.032 291.699);
--chart-1: oklch(0.715 0.032 291.699);
--chart-2: oklch(0.73 0.023 28.12);
--chart-3: oklch(0.753 0.036 149.074);
--chart-4: oklch(0.756 0.02 28.091);
--chart-5: oklch(0.709 0.039 291.488);
}