Attractive is a shadcn/ui theme built around a near-black primary color (#030303) with near-black accents (#030303). The light mode uses a neutral background (#fbf8f8). Dark mode keeps the near-black primary (#030303) on a red-tinted background (#0b0404).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8f8snow | #0b0404black |
| Foreground | #000000black | #faf5f5whitesmoke |
| Card | #faf5f5whitesmoke | #0e0606black |
| Card foreground | #000000black | #fbf8f8snow |
| Popover | #fbf8f8snow | #0b0404black |
| Popover foreground | #000000black | #faf5f5whitesmoke |
| Primary | #030303black | #030303black |
| Primary foreground | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Secondary | #030303black | #030303black |
| Secondary foreground | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Muted | #e3dedegainsboro | #211c1cblack |
| Muted foreground | #6e5353dimgray | #ac9191rosybrown |
| Accent | #030303black | #030303black |
| Accent foreground | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Destructive | #6f2e0csaddlebrown | #ea7739coral |
| Destructive foreground | #f7ccb5peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030303black | #030303black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 5.20:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.53:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 7.18:1 | AAA |
Paste this into your globals.css to use Attractive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 17.215);
--foreground: oklch(0 0 0);
--muted: oklch(0.904 0.005 17.256);
--muted-foreground: oklch(0.472 0.036 18.525);
--popover: oklch(0.983 0.003 17.215);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.005 17.244);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.092 0 180);
--primary-foreground: oklch(0.691 0 180);
--secondary: oklch(0.092 0 180);
--secondary-foreground: oklch(0.691 0 180);
--accent: oklch(0.092 0 180);
--accent-foreground: oklch(0.691 0 180);
--destructive: oklch(0.387 0.102 44.64);
--destructive-foreground: oklch(0.877 0.058 49.878);
--ring: oklch(0.092 0 180);
--chart-1: oklch(0.092 0 180);
--chart-2: oklch(0.092 0 180);
--chart-3: oklch(0.092 0 180);
--chart-4: oklch(0.146 0 180);
--chart-5: oklch(0.091 0.001 17.277);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.015 19.407);
--foreground: oklch(0.974 0.005 17.241);
--muted: oklch(0.233 0.008 17.714);
--muted-foreground: oklch(0.68 0.033 17.986);
--popover: oklch(0.123 0.015 19.407);
--popover-foreground: oklch(0.974 0.005 17.241);
--card: oklch(0.136 0.017 19.524);
--card-foreground: oklch(0.983 0.003 17.213);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.092 0 180);
--primary-foreground: oklch(0.691 0 180);
--secondary: oklch(0.092 0 180);
--secondary-foreground: oklch(0.691 0 180);
--accent: oklch(0.092 0 180);
--accent-foreground: oklch(0.691 0 180);
--destructive: oklch(0.691 0.161 46.299);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.092 0 180);
--chart-1: oklch(0.092 0 180);
--chart-2: oklch(0.092 0 180);
--chart-3: oklch(0.092 0 180);
--chart-4: oklch(0.146 0 180);
--chart-5: oklch(0.091 0.001 17.277);
}