Swim is a shadcn/ui theme built around a deep red primary color (#481919) with deep indigo accents (#191948). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#481919) on a red-tinted background (#0f0505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0505black |
| Foreground | #040101black | #fdfbfbsnow |
| Card | #ffffffwhite | #0f0505black |
| Card foreground | #040101black | #fdfbfbsnow |
| Popover | #ffffffwhite | #0f0505black |
| Popover foreground | #040101black | #fdfbfbsnow |
| Primary | #481919maroon | #481919maroon |
| Primary foreground | #e3b0b0lightpink | #e3b0b0lightpink |
| Secondary | #194819darkgreen | #194819darkgreen |
| Secondary foreground | #b0e3b0palegreen | #b0e3b0palegreen |
| Muted | #ebf5ebhoneydew | #0a140ablack |
| Muted foreground | #515c51dimgray | #a3aea3darkgray |
| Accent | #191948midnightblue | #191948midnightblue |
| Accent foreground | #b0b0e3lightsteelblue | #b0b0e3lightsteelblue |
| Destructive | #721b03maroon | #f94310orangered |
| Destructive foreground | #fdbcaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #481919maroon | #481919maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Swim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.082 0.015 20.892);
--muted: oklch(0.959 0.017 145.441);
--muted-foreground: oklch(0.462 0.021 145.224);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.082 0.015 20.892);
--card: oklch(1 0 180);
--card-foreground: oklch(0.082 0.015 20.892);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.286 0.072 22.7);
--primary-foreground: oklch(0.803 0.06 18.486);
--secondary: oklch(0.356 0.091 143.381);
--secondary-foreground: oklch(0.867 0.088 144.77);
--accent: oklch(0.246 0.085 278.19);
--accent-foreground: oklch(0.774 0.073 284.568);
--destructive: oklch(0.367 0.125 35.057);
--destructive-foreground: oklch(0.851 0.079 36.032);
--ring: oklch(0.286 0.072 22.7);
--chart-1: oklch(0.286 0.072 22.7);
--chart-2: oklch(0.356 0.091 143.381);
--chart-3: oklch(0.246 0.085 278.19);
--chart-4: oklch(0.393 0.102 143.333);
--chart-5: oklch(0.286 0.076 23.15);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.019 19.941);
--foreground: oklch(0.991 0.002 17.193);
--muted: oklch(0.179 0.025 144.43);
--muted-foreground: oklch(0.738 0.019 145.382);
--popover: oklch(0.134 0.019 19.941);
--popover-foreground: oklch(0.991 0.002 17.193);
--card: oklch(0.134 0.019 19.941);
--card-foreground: oklch(0.991 0.002 17.193);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.286 0.072 22.7);
--primary-foreground: oklch(0.803 0.06 18.486);
--secondary: oklch(0.356 0.091 143.381);
--secondary-foreground: oklch(0.867 0.088 144.77);
--accent: oklch(0.246 0.085 278.19);
--accent-foreground: oklch(0.774 0.073 284.568);
--destructive: oklch(0.648 0.224 34.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.286 0.072 22.7);
--chart-1: oklch(0.286 0.072 22.7);
--chart-2: oklch(0.356 0.091 143.381);
--chart-3: oklch(0.246 0.085 278.19);
--chart-4: oklch(0.393 0.102 143.333);
--chart-5: oklch(0.286 0.076 23.15);
}