Nantucket Mist Swift is a shadcn/ui theme built around a muted light red primary color (#cabfbe) with muted light red accents (#d5c9c8). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted light red primary (#cabfbe) on a neutral background (#070403).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #070403black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fefbfbsnow | #070403black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfbsnow | #070403black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #cabfbesilver | #cabfbesilver |
| Primary foreground | #302827darkslategray | #302827darkslategray |
| Secondary | #d5c9c8lightgrey | #171716black |
| Secondary foreground | #3d302fdarkslategray | #b2afaedarkgray |
| Muted | #ece4e4linen | #1b1313black |
| Muted foreground | #4c4848darkslategray | #b7b3b3darkgray |
| Accent | #d5c9c8lightgrey | #171716black |
| Accent foreground | #3d302fdarkslategray | #b2afaedarkgray |
| Destructive | #bd3b14firebrick | #e85021chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #f1efefwhitesmoke | #1e1b1ablack |
| Input | #f1efefwhitesmoke | #1e1b1ablack |
| Ring | #cabfbesilver | #cabfbesilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 20.46:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 8.04:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 8.77:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Nantucket Mist Swift in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 22.247);
--foreground: oklch(0 0 0);
--muted: oklch(0.926 0.008 22.317);
--muted-foreground: oklch(0.406 0.006 22.372);
--popover: oklch(0.991 0.003 22.247);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 22.247);
--card-foreground: oklch(0 0 0);
--border: oklch(0.953 0.002 22.236);
--input: oklch(0.953 0.002 22.236);
--primary: oklch(0.814 0.012 22.389);
--primary-foreground: oklch(0.284 0.012 22.74);
--secondary: oklch(0.845 0.013 22.394);
--secondary-foreground: oklch(0.321 0.019 22.972);
--accent: oklch(0.845 0.013 22.394);
--accent-foreground: oklch(0.321 0.019 22.972);
--destructive: oklch(0.539 0.173 35.997);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.012 22.389);
--chart-1: oklch(0.814 0.012 22.389);
--chart-2: oklch(0.845 0.013 22.394);
--chart-3: oklch(0.845 0.013 22.394);
--chart-4: oklch(0.87 0.011 22.359);
--chart-5: oklch(0.812 0.016 22.446);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.009 24.332);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.013 23.051);
--muted-foreground: oklch(0.77 0.005 22.283);
--popover: oklch(0.11 0.009 24.332);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.009 24.332);
--card-foreground: oklch(1 0 180);
--border: oklch(0.224 0.005 22.472);
--input: oklch(0.224 0.005 22.472);
--primary: oklch(0.814 0.012 22.389);
--primary-foreground: oklch(0.284 0.012 22.74);
--secondary: oklch(0.204 0.001 22.29);
--secondary-foreground: oklch(0.755 0.003 22.265);
--accent: oklch(0.204 0.001 22.29);
--accent-foreground: oklch(0.755 0.003 22.265);
--destructive: oklch(0.634 0.196 36.377);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.012 22.389);
--chart-1: oklch(0.814 0.012 22.389);
--chart-2: oklch(0.204 0.001 22.29);
--chart-3: oklch(0.204 0.001 22.29);
--chart-4: oklch(0.237 0.002 22.298);
--chart-5: oklch(0.812 0.016 22.446);
}