Bewitched is a shadcn/ui theme built around an indigo primary color (#363168) with muted light indigo accents (#d5d3e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#363168) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010104black |
| Foreground | #060410black | #fcfbfdsnow |
| Card | #fcfcfcsnow | #030208black |
| Card foreground | #04030cblack | #ffffffwhite |
| Popover | #ffffffwhite | #010104black |
| Popover foreground | #060410black | #fcfbfdsnow |
| Primary | #363168midnightblue | #363168midnightblue |
| Primary foreground | #dedceflavender | #dedceflavender |
| Secondary | #e5e5eblavender | #1d1c27black |
| Secondary foreground | #46435bdarkslategray | #b1aec6silver |
| Muted | #e0deedlavender | #141221black |
| Muted foreground | #53506ddimgray | #9592afdarkgray |
| Accent | #d5d3e4gainsboro | #2a283edarkslategray |
| Accent foreground | #363352darkslategray | #c3c1d7lightsteelblue |
| Destructive | #e04000orangered | #f04400orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #363168midnightblue | #363168midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 8.13:1 | AAA |
| Destructive | 4.28:1 | AA Large |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Bewitched in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.028 287.594);
--muted: oklch(0.907 0.019 290.609);
--muted-foreground: oklch(0.446 0.046 288.966);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.028 287.594);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.11 0.024 288.215);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.349 0.093 285.043);
--primary-foreground: oklch(0.902 0.025 290.488);
--secondary: oklch(0.923 0.009 290.824);
--secondary-foreground: oklch(0.396 0.04 289.024);
--accent: oklch(0.873 0.022 290.524);
--accent-foreground: oklch(0.339 0.053 287.8);
--destructive: oklch(0.603 0.205 36.274);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.349 0.093 285.043);
--chart-1: oklch(0.349 0.093 285.043);
--chart-2: oklch(0.923 0.009 290.824);
--chart-3: oklch(0.873 0.022 290.524);
--chart-4: oklch(0.949 0.006 290.892);
--chart-5: oklch(0.344 0.1 284.334);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.077 0.016 288.393);
--foreground: oklch(0.99 0.003 290.964);
--muted: oklch(0.193 0.029 287.992);
--muted-foreground: oklch(0.674 0.042 289.821);
--popover: oklch(0.077 0.016 288.393);
--popover-foreground: oklch(0.99 0.003 290.964);
--card: oklch(0.097 0.021 288.393);
--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.349 0.093 285.043);
--primary-foreground: oklch(0.902 0.025 290.488);
--secondary: oklch(0.231 0.022 289.167);
--secondary-foreground: oklch(0.762 0.033 290.177);
--accent: oklch(0.289 0.041 288.158);
--accent-foreground: oklch(0.819 0.031 290.283);
--destructive: oklch(0.633 0.216 36.138);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.349 0.093 285.043);
--chart-1: oklch(0.349 0.093 285.043);
--chart-2: oklch(0.231 0.022 289.167);
--chart-3: oklch(0.289 0.041 288.158);
--chart-4: oklch(0.259 0.026 289.04);
--chart-5: oklch(0.344 0.1 284.334);
}