Attractive is a shadcn/ui theme built around a vivid blue primary color (#7e97f1) with vivid green accents (#97f17e). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the vivid blue primary (#7e97f1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #000000black |
| Foreground | #020308black | #f5f6fawhitesmoke |
| Card | #f3f5fcaliceblue | #030303black |
| Card foreground | #010204black | #f8f9fcghostwhite |
| Popover | #f3f5fcaliceblue | #030303black |
| Popover foreground | #010204black | #f8f9fcghostwhite |
| Primary | #7e97f1cornflowerblue | #7e97f1cornflowerblue |
| Primary foreground | #061137black | #061137black |
| Secondary | #f17e97lightcoral | #f17e97lightcoral |
| Secondary foreground | #370611black | #370611black |
| Muted | #e3ced3lightgrey | #311c20black |
| Muted foreground | #444142darkslategray | #bebbbcsilver |
| Accent | #97f17elightgreen | #97f17elightgreen |
| Accent foreground | #113706darkgreen | #113706darkgreen |
| Destructive | #932210brown | #e6391eorangered |
| Destructive foreground | #fbdfdamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e97f1cornflowerblue | #7e97f1cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 6.76:1 | AA |
| Accent | 9.69:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 8.38:1 | AAA |
| Accent | 9.69:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Attractive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 273.793);
--foreground: oklch(0.103 0.016 266.546);
--muted: oklch(0.871 0.024 2.808);
--muted-foreground: oklch(0.378 0.004 2.337);
--popover: oklch(0.97 0.009 273.755);
--popover-foreground: oklch(0.081 0.013 266.546);
--card: oklch(0.97 0.009 273.755);
--card-foreground: oklch(0.081 0.013 266.546);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.696 0.136 270.826);
--primary-foreground: oklch(0.196 0.077 266.493);
--secondary: oklch(0.729 0.143 7.535);
--secondary-foreground: oklch(0.224 0.077 13.641);
--accent: oklch(0.877 0.174 139.17);
--accent-foreground: oklch(0.299 0.088 139.821);
--destructive: oklch(0.437 0.152 31.65);
--destructive-foreground: oklch(0.925 0.032 28.146);
--ring: oklch(0.696 0.136 270.826);
--chart-1: oklch(0.696 0.136 270.826);
--chart-2: oklch(0.729 0.143 7.535);
--chart-3: oklch(0.877 0.174 139.17);
--chart-4: oklch(0.755 0.127 6.662);
--chart-5: oklch(0.693 0.141 270.675);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.006 273.801);
--muted: oklch(0.255 0.033 5.574);
--muted-foreground: oklch(0.796 0.003 2.173);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.982 0.004 273.823);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.982 0.004 273.823);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.696 0.136 270.826);
--primary-foreground: oklch(0.196 0.077 266.493);
--secondary: oklch(0.729 0.143 7.535);
--secondary-foreground: oklch(0.224 0.077 13.641);
--accent: oklch(0.877 0.174 139.17);
--accent-foreground: oklch(0.299 0.088 139.821);
--destructive: oklch(0.608 0.213 31.637);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.696 0.136 270.826);
--chart-1: oklch(0.696 0.136 270.826);
--chart-2: oklch(0.729 0.143 7.535);
--chart-3: oklch(0.877 0.174 139.17);
--chart-4: oklch(0.755 0.127 6.662);
--chart-5: oklch(0.693 0.141 270.675);
}