Nightclub is a shadcn/ui theme built around a violet primary color (#452f6f) with green accents (#2f6f45). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#452f6f) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #000000black | #f7f5f9whitesmoke |
| Card | #ffffffwhite | #050307black |
| Card foreground | #000000black | #f7f5f9whitesmoke |
| Popover | #ffffffwhite | #050307black |
| Popover foreground | #000000black | #f7f5f9whitesmoke |
| Primary | #452f6fdarkslateblue | #452f6fdarkslateblue |
| Primary foreground | #e5dff1lavender | #e5dff1lavender |
| Secondary | #6f452fsaddlebrown | #6f452fsaddlebrown |
| Secondary foreground | #f1e5dfantiquewhite | #f1e5dfantiquewhite |
| Muted | #f3efedlinen | #120e0cblack |
| Muted foreground | #49403cdarkslategray | #c3bbb6silver |
| Accent | #2f6f45seagreen | #2f6f45seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8a300asaddlebrown | #db4c0fchocolate |
| Destructive foreground | #fbd9cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #452f6fdarkslateblue | #452f6fdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 8.81:1 | AAA |
| Accent | 6.00:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 10.12:1 | AAA |
| Accent | 6.00:1 | AA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Nightclub in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.954 0.005 50.589);
--muted-foreground: oklch(0.38 0.014 50.201);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.365 0.108 296.851);
--primary-foreground: oklch(0.913 0.026 301.762);
--secondary: oklch(0.435 0.068 48.621);
--secondary-foreground: oklch(0.93 0.016 50.44);
--accent: oklch(0.489 0.095 152.713);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.437 0.131 39.717);
--destructive-foreground: oklch(0.911 0.043 44.565);
--ring: oklch(0.365 0.108 296.851);
--chart-1: oklch(0.365 0.108 296.851);
--chart-2: oklch(0.435 0.068 48.621);
--chart-3: oklch(0.489 0.095 152.713);
--chart-4: oklch(0.464 0.073 48.584);
--chart-5: oklch(0.362 0.115 296.312);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.013 302.581);
--foreground: oklch(0.974 0.005 302.129);
--muted: oklch(0.17 0.008 50.087);
--muted-foreground: oklch(0.797 0.012 50.471);
--popover: oklch(0.107 0.013 302.581);
--popover-foreground: oklch(0.974 0.005 302.129);
--card: oklch(0.107 0.013 302.581);
--card-foreground: oklch(0.974 0.005 302.129);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.365 0.108 296.851);
--primary-foreground: oklch(0.913 0.026 301.762);
--secondary: oklch(0.435 0.068 48.621);
--secondary-foreground: oklch(0.93 0.016 50.44);
--accent: oklch(0.489 0.095 152.713);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.609 0.189 38.949);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.365 0.108 296.851);
--chart-1: oklch(0.365 0.108 296.851);
--chart-2: oklch(0.435 0.068 48.621);
--chart-3: oklch(0.489 0.095 152.713);
--chart-4: oklch(0.464 0.073 48.584);
--chart-5: oklch(0.362 0.115 296.312);
}