Misty is a shadcn/ui theme built around a muted blue primary color (#9396a5) with muted light blue accents (#b6bbd2). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted blue primary (#9396a5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #000000black |
| Foreground | #010104black | #f4f6fawhitesmoke |
| Card | #f3f5fcaliceblue | #030303black |
| Card foreground | #000000black | #f8f9fcghostwhite |
| Popover | #f3f5fcaliceblue | #030303black |
| Popover foreground | #000000black | #f8f9fcghostwhite |
| Primary | #9396a5darkgray | #9396a5darkgray |
| Primary foreground | #020203black | #020203black |
| Secondary | #d6d8e1gainsboro | #141415black |
| Secondary foreground | #383c4cdarkslategray | #adadaedarkgray |
| Muted | #e6e8eflavender | #101219black |
| Muted foreground | #464a5ddarkslategray | #a2a6b9darkgray |
| Accent | #b6bbd2lightsteelblue | #202227black |
| Accent foreground | #212536darkslategray | #b7b9c3silver |
| Destructive | #822d03saddlebrown | #fb7532tomato |
| Destructive foreground | #fed0b9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9396a5darkgray | #9396a5darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 7.68:1 | AAA |
Paste this into your globals.css to use Misty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 276.079);
--foreground: oklch(0.077 0.018 266.037);
--muted: oklch(0.931 0.01 276.031);
--muted-foreground: oklch(0.414 0.032 275.035);
--popover: oklch(0.97 0.01 276.033);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0.01 276.033);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.675 0.022 275.723);
--primary-foreground: oklch(0.09 0.002 275.324);
--secondary: oklch(0.883 0.012 275.984);
--secondary-foreground: oklch(0.359 0.029 274.986);
--accent: oklch(0.797 0.033 275.589);
--accent-foreground: oklch(0.268 0.032 274.274);
--destructive: oklch(0.418 0.126 41.202);
--destructive-foreground: oklch(0.891 0.06 48.023);
--ring: oklch(0.675 0.022 275.723);
--chart-1: oklch(0.675 0.022 275.723);
--chart-2: oklch(0.883 0.012 275.984);
--chart-3: oklch(0.797 0.033 275.589);
--chart-4: oklch(0.908 0.009 276.029);
--chart-5: oklch(0.669 0.029 275.555);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.972 0.006 276.079);
--muted: oklch(0.182 0.015 274.979);
--muted-foreground: oklch(0.728 0.027 275.646);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.981 0.004 276.109);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.981 0.004 276.109);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.675 0.022 275.723);
--primary-foreground: oklch(0.09 0.002 275.324);
--secondary: oklch(0.193 0.001 276.12);
--secondary-foreground: oklch(0.747 0.002 276.132);
--accent: oklch(0.252 0.01 275.611);
--accent-foreground: oklch(0.787 0.014 275.929);
--destructive: oklch(0.712 0.181 44.09);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.675 0.022 275.723);
--chart-1: oklch(0.675 0.022 275.723);
--chart-2: oklch(0.193 0.001 276.12);
--chart-3: oklch(0.252 0.01 275.611);
--chart-4: oklch(0.226 0.001 276.114);
--chart-5: oklch(0.669 0.029 275.555);
}