Attraction is a shadcn/ui theme built around a vivid pink primary color (#f386c0) with vivid red accents (#f3868a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid pink primary (#f386c0) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #11030bblack | #fbf9fasnow |
| Card | #ffffffwhite | #040103black |
| Card foreground | #11030bblack | #fbf9fasnow |
| Popover | #ffffffwhite | #040103black |
| Popover foreground | #11030bblack | #fbf9fasnow |
| Primary | #f386c0hotpink | #f386c0hotpink |
| Primary foreground | #410626maroon | #410626maroon |
| Secondary | #ef86f3violet | #ef86f3violet |
| Secondary foreground | #3f0641midnightblue | #3f0641midnightblue |
| Muted | #e3cee3gainsboro | #301c31darkslategray |
| Muted foreground | #4d474ddarkslategray | #b8b2b8silver |
| Accent | #f3868alightcoral | #f3868alightcoral |
| Accent foreground | #410608maroon | #410608maroon |
| Destructive | #ac110cfirebrick | #e51710red |
| Destructive foreground | #feedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f386c0hotpink | #f386c0hotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 7.57:1 | AAA |
| Accent | 6.86:1 | AA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Attraction in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.035 345.882);
--muted: oklch(0.875 0.037 324.881);
--muted-foreground: oklch(0.406 0.012 324.809);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.035 345.882);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.035 345.882);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.756 0.148 348.002);
--primary-foreground: oklch(0.253 0.093 353.668);
--secondary: oklch(0.772 0.185 325.963);
--secondary-foreground: oklch(0.266 0.112 326.643);
--accent: oklch(0.741 0.133 18.694);
--accent-foreground: oklch(0.245 0.088 25.014);
--destructive: oklch(0.473 0.185 29.05);
--destructive-foreground: oklch(0.958 0.019 19.884);
--ring: oklch(0.756 0.148 348.002);
--chart-1: oklch(0.756 0.148 348.002);
--chart-2: oklch(0.772 0.185 325.963);
--chart-3: oklch(0.741 0.133 18.694);
--chart-4: oklch(0.795 0.164 325.802);
--chart-5: oklch(0.756 0.153 348.17);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.015 343.363);
--foreground: oklch(0.983 0.003 343.527);
--muted: oklch(0.261 0.049 325.698);
--muted-foreground: oklch(0.77 0.01 324.705);
--popover: oklch(0.085 0.015 343.363);
--popover-foreground: oklch(0.983 0.003 343.527);
--card: oklch(0.085 0.015 343.363);
--card-foreground: oklch(0.983 0.003 343.527);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.756 0.148 348.002);
--primary-foreground: oklch(0.253 0.093 353.668);
--secondary: oklch(0.772 0.185 325.963);
--secondary-foreground: oklch(0.266 0.112 326.643);
--accent: oklch(0.741 0.133 18.694);
--accent-foreground: oklch(0.245 0.088 25.014);
--destructive: oklch(0.585 0.231 29.158);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.756 0.148 348.002);
--chart-1: oklch(0.756 0.148 348.002);
--chart-2: oklch(0.772 0.185 325.963);
--chart-3: oklch(0.741 0.133 18.694);
--chart-4: oklch(0.795 0.164 325.802);
--chart-5: oklch(0.756 0.153 348.17);
}