Required is a shadcn/ui theme built around a vivid pink primary color (#f26ec6) with vivid red accents (#f26e84). The light mode uses a neutral background (#fdf6fb). Dark mode keeps the vivid pink primary (#f26ec6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fbsnow | #000000black |
| Foreground | #000000black | #faf4f8whitesmoke |
| Card | #fdf6fbsnow | #000000black |
| Card foreground | #000000black | #faf4f8whitesmoke |
| Popover | #fdf6fbsnow | #000000black |
| Popover foreground | #000000black | #faf4f8whitesmoke |
| Primary | #f26ec6hotpink | #f26ec6hotpink |
| Primary foreground | #2a041dblack | #2a041dblack |
| Secondary | #dc6ef2violet | #dc6ef2violet |
| Secondary foreground | #24042ablack | #24042ablack |
| Muted | #eee6eflavender | #181019black |
| Muted foreground | #565257dimgray | #ada8addarkgray |
| Accent | #f26e84lightcoral | #f26e84lightcoral |
| Accent foreground | #2a040ablack | #2a040ablack |
| Destructive | #991b0adarkred | #e1270eorangered |
| Destructive foreground | #fdddd9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f26ec6hotpink | #f26ec6hotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 6.70:1 | AA |
| Muted text | 6.26:1 | AA |
| Accent | 6.54:1 | AA |
| Destructive | 6.55:1 | AA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 6.70:1 | AA |
| Muted text | 7.99:1 | AAA |
| Accent | 6.54:1 | AA |
| Destructive | 4.65:1 | AA |
Paste this into your globals.css to use Required in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.009 337.457);
--foreground: oklch(0 0 0);
--muted: oklch(0.933 0.016 320.557);
--muted-foreground: oklch(0.443 0.01 320.565);
--popover: oklch(0.981 0.009 337.457);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.009 337.457);
--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.723 0.19 342.229);
--primary-foreground: oklch(0.198 0.073 344.184);
--secondary: oklch(0.715 0.212 320.712);
--secondary-foreground: oklch(0.194 0.081 320.598);
--accent: oklch(0.702 0.164 11.994);
--accent-foreground: oklch(0.19 0.065 14.863);
--destructive: oklch(0.443 0.164 30.986);
--destructive-foreground: oklch(0.922 0.036 26.745);
--ring: oklch(0.723 0.19 342.229);
--chart-1: oklch(0.723 0.19 342.229);
--chart-2: oklch(0.715 0.212 320.712);
--chart-3: oklch(0.702 0.164 11.994);
--chart-4: oklch(0.739 0.193 320.749);
--chart-5: oklch(0.724 0.196 342.398);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.008 337.43);
--muted: oklch(0.186 0.023 320.704);
--muted-foreground: oklch(0.738 0.009 320.55);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.008 337.43);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.008 337.43);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.723 0.19 342.229);
--primary-foreground: oklch(0.198 0.073 344.184);
--secondary: oklch(0.715 0.212 320.712);
--secondary-foreground: oklch(0.194 0.081 320.598);
--accent: oklch(0.702 0.164 11.994);
--accent-foreground: oklch(0.19 0.065 14.863);
--destructive: oklch(0.586 0.221 30.889);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.723 0.19 342.229);
--chart-1: oklch(0.723 0.19 342.229);
--chart-2: oklch(0.715 0.212 320.712);
--chart-3: oklch(0.702 0.164 11.994);
--chart-4: oklch(0.739 0.193 320.749);
--chart-5: oklch(0.724 0.196 342.398);
}