Swing is a shadcn/ui theme built around a vivid pink primary color (#a30a69) with vivid blue accents (#0a69a3). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid pink primary (#a30a69) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #040103black |
| Foreground | #13060eblack | #ffffffwhite |
| Card | #fdf7fbsnow | #080306black |
| Card foreground | #0f050bblack | #ffffffwhite |
| Popover | #fdf7fbsnow | #080306black |
| Popover foreground | #0f050bblack | #ffffffwhite |
| Primary | #a30a69darkmagenta | #a30a69darkmagenta |
| Primary foreground | #fde2f3lavenderblush | #fde2f3lavenderblush |
| Secondary | #69a30aolivedrab | #69a30aolivedrab |
| Secondary foreground | #000000black | #000000black |
| Muted | #f3f7edwhitesmoke | #0e1208black |
| Muted foreground | #616954dimgray | #a3ab96darkgray |
| Accent | #0a69a3darkcyan | #0a69a3darkcyan |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d00801red | #f90901red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a30a69darkmagenta | #a30a69darkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 5.29:1 | AA |
| Accent | 5.92:1 | AA |
| Destructive | 5.64:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 7.97:1 | AAA |
| Accent | 5.92:1 | AA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Swing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 339.564);
--foreground: oklch(0.15 0.028 342.622);
--muted: oklch(0.971 0.013 123.844);
--muted-foreground: oklch(0.507 0.033 124.637);
--popover: oklch(0.981 0.009 339.661);
--popover-foreground: oklch(0.137 0.025 341.46);
--card: oklch(0.981 0.009 339.661);
--card-foreground: oklch(0.137 0.025 341.46);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.474 0.192 351.174);
--primary-foreground: oklch(0.94 0.036 340.305);
--secondary: oklch(0.65 0.174 130.74);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.501 0.121 244.538);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.541 0.219 29.526);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.192 351.174);
--chart-1: oklch(0.474 0.192 351.174);
--chart-2: oklch(0.65 0.174 130.74);
--chart-3: oklch(0.501 0.121 244.538);
--chart-4: oklch(0.692 0.186 130.817);
--chart-5: oklch(0.478 0.194 351.588);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.014 339.643);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.02 125.268);
--muted-foreground: oklch(0.729 0.031 124.269);
--popover: oklch(0.108 0.018 339.643);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.018 339.643);
--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.474 0.192 351.174);
--primary-foreground: oklch(0.94 0.036 340.305);
--secondary: oklch(0.65 0.174 130.74);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.501 0.121 244.538);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.618 0.251 29.467);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.192 351.174);
--chart-1: oklch(0.474 0.192 351.174);
--chart-2: oklch(0.65 0.174 130.74);
--chart-3: oklch(0.501 0.121 244.538);
--chart-4: oklch(0.692 0.186 130.817);
--chart-5: oklch(0.478 0.194 351.588);
}