Taiwan Blue Magpie Crane is a shadcn/ui theme built around a blue primary color (#2f78a2) with muted light blue accents (#d1d8dc). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#2f78a2) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #020608black |
| Foreground | #02090eblack | #fcfdfdwhite |
| Card | #f8fafcghostwhite | #020608black |
| Card foreground | #02090eblack | #fcfdfdwhite |
| Popover | #f8fafcghostwhite | #020608black |
| Popover foreground | #02090eblack | #fcfdfdwhite |
| Primary | #2f78a2steelblue | #2f78a2steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d1d8dclightgrey | #2a2c2cdarkslategray |
| Secondary foreground | #353f45darkslategray | #c3c5c6silver |
| Muted | #eaf1f5whitesmoke | #0a1115black |
| Muted foreground | #4b5053darkslategray | #acb1b4darkgray |
| Accent | #d1d8dclightgrey | #2a2c2cdarkslategray |
| Accent foreground | #353f45darkslategray | #c3c5c6silver |
| Destructive | #9a230ebrown | #ec4e32tomato |
| Destructive foreground | #fce3demistyrose | #ffffffwhite |
| Border | #dfe4e7gainsboro | #181d20black |
| Input | #dfe4e7gainsboro | #181d20black |
| Ring | #2f78a2steelblue | #2f78a2steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 7.45:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 4.85:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 8.80:1 | AAA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Taiwan Blue Magpie Crane in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 232.629);
--foreground: oklch(0.133 0.019 225.634);
--muted: oklch(0.955 0.009 232.713);
--muted-foreground: oklch(0.428 0.008 232.852);
--popover: oklch(0.985 0.003 232.629);
--popover-foreground: oklch(0.133 0.019 225.634);
--card: oklch(0.985 0.003 232.629);
--card-foreground: oklch(0.133 0.019 225.634);
--border: oklch(0.916 0.006 232.675);
--input: oklch(0.916 0.006 232.675);
--primary: oklch(0.546 0.097 237.818);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.877 0.009 232.726);
--secondary-foreground: oklch(0.362 0.017 233.306);
--accent: oklch(0.877 0.009 232.726);
--accent-foreground: oklch(0.362 0.017 233.306);
--destructive: oklch(0.451 0.158 32.223);
--destructive-foreground: oklch(0.934 0.028 29.602);
--ring: oklch(0.546 0.097 237.818);
--chart-1: oklch(0.546 0.097 237.818);
--chart-2: oklch(0.877 0.009 232.726);
--chart-3: oklch(0.877 0.009 232.726);
--chart-4: oklch(0.9 0.007 232.695);
--chart-5: oklch(0.549 0.101 238.254);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.012 225.805);
--foreground: oklch(0.992 0.001 232.591);
--muted: oklch(0.171 0.013 233.964);
--muted-foreground: oklch(0.757 0.007 232.711);
--popover: oklch(0.116 0.012 225.805);
--popover-foreground: oklch(0.992 0.001 232.591);
--card: oklch(0.116 0.012 225.805);
--card-foreground: oklch(0.992 0.001 232.591);
--border: oklch(0.227 0.009 233.163);
--input: oklch(0.227 0.009 233.163);
--primary: oklch(0.546 0.097 237.818);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.291 0.002 232.675);
--secondary-foreground: oklch(0.821 0.002 232.615);
--accent: oklch(0.291 0.002 232.675);
--accent-foreground: oklch(0.821 0.002 232.615);
--destructive: oklch(0.639 0.199 32.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.546 0.097 237.818);
--chart-1: oklch(0.546 0.097 237.818);
--chart-2: oklch(0.291 0.002 232.675);
--chart-3: oklch(0.291 0.002 232.675);
--chart-4: oklch(0.321 0.002 232.678);
--chart-5: oklch(0.549 0.101 238.254);
}