Registration is a shadcn/ui theme built around a vivid deep green primary color (#0d7820) with vivid deep purple accents (#780d64). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid deep green primary (#0d7820) on a neutral background (#040704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #040704black |
| Foreground | #031106black | #fbfdfcwhite |
| Card | #f7fdf8mintcream | #050a06black |
| Card foreground | #030d04black | #ffffffwhite |
| Popover | #fbfefcwhite | #040704black |
| Popover foreground | #031106black | #fbfdfcwhite |
| Primary | #0d7820forestgreen | #0d7820forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #780d64purple | #780d64purple |
| Secondary foreground | #f8beeepink | #f8beeepink |
| Muted | #e6dbe4gainsboro | #241922black |
| Muted foreground | #725a6edimgray | #a58da1rosybrown |
| Accent | #780d64purple | #780d64purple |
| Accent foreground | #f8beeepink | #f8beeepink |
| Destructive | #711b0amaroon | #eb401eorangered |
| Destructive foreground | #f8bfb4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d7820forestgreen | #0d7820forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.01:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 5.63:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 4.59:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.63:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 5.58:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Registration in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 151.346);
--foreground: oklch(0.16 0.032 149.569);
--muted: oklch(0.903 0.016 331.657);
--muted-foreground: oklch(0.498 0.044 332.598);
--popover: oklch(0.994 0.004 151.346);
--popover-foreground: oklch(0.16 0.032 149.569);
--card: oklch(0.988 0.008 151.285);
--card-foreground: oklch(0.142 0.028 150.158);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.499 0.153 144.799);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.395 0.163 337.654);
--secondary-foreground: oklch(0.869 0.09 332.8);
--accent: oklch(0.395 0.163 337.654);
--accent-foreground: oklch(0.869 0.09 332.8);
--destructive: oklch(0.364 0.122 33.007);
--destructive-foreground: oklch(0.854 0.068 31.416);
--ring: oklch(0.499 0.153 144.799);
--chart-1: oklch(0.499 0.153 144.799);
--chart-2: oklch(0.395 0.163 337.654);
--chart-3: oklch(0.395 0.163 337.654);
--chart-4: oklch(0.427 0.178 337.744);
--chart-5: oklch(0.505 0.156 144.636);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.011 150.906);
--foreground: oklch(0.993 0.003 151.365);
--muted: oklch(0.232 0.022 332.719);
--muted-foreground: oklch(0.671 0.041 332.24);
--popover: oklch(0.119 0.011 150.906);
--popover-foreground: oklch(0.993 0.003 151.365);
--card: oklch(0.137 0.013 150.906);
--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.499 0.153 144.799);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.395 0.163 337.654);
--secondary-foreground: oklch(0.869 0.09 332.8);
--accent: oklch(0.395 0.163 337.654);
--accent-foreground: oklch(0.869 0.09 332.8);
--destructive: oklch(0.624 0.213 32.932);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.499 0.153 144.799);
--chart-1: oklch(0.499 0.153 144.799);
--chart-2: oklch(0.395 0.163 337.654);
--chart-3: oklch(0.395 0.163 337.654);
--chart-4: oklch(0.427 0.178 337.744);
--chart-5: oklch(0.505 0.156 144.636);
}