Naughty is a shadcn/ui theme built around a deep blue primary color (#273062) with deep yellow accents (#625a27). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#273062) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #000000black | #f4f5fawhitesmoke |
| Card | #fcfcfcsnow | #020308black |
| Card foreground | #000000black | #f8f8fcghostwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #000000black | #f4f5fawhitesmoke |
| Primary | #273062midnightblue | #273062midnightblue |
| Primary foreground | #d0d4ecgainsboro | #d0d4ecgainsboro |
| Secondary | #625a27darkolivegreen | #625a27darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f7f6eewhitesmoke | #111008black |
| Muted foreground | #6f6c5ddimgray | #a29f90darkgray |
| Accent | #625a27darkolivegreen | #625a27darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b85014sienna | #e6671echocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #273062midnightblue | #273062midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.46:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 4.85:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 5.00:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.46:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 7.16:1 | AAA |
| Accent | 6.99:1 | AA |
| Destructive | 6.33:1 | AA |
Paste this into your globals.css to use Naughty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.971 0.011 98.472);
--muted-foreground: oklch(0.531 0.024 98.9);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.33 0.089 273.076);
--primary-foreground: oklch(0.874 0.034 277.73);
--secondary: oklch(0.463 0.071 99.443);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.463 0.071 99.443);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.557 0.149 45.159);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.089 273.076);
--chart-1: oklch(0.33 0.089 273.076);
--chart-2: oklch(0.463 0.071 99.443);
--chart-3: oklch(0.463 0.071 99.443);
--chart-4: oklch(0.498 0.077 99.432);
--chart-5: oklch(0.327 0.095 272.572);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.014 271.815);
--foreground: oklch(0.972 0.007 278.214);
--muted: oklch(0.172 0.016 99.484);
--muted-foreground: oklch(0.702 0.022 98.744);
--popover: oklch(0.08 0.014 271.815);
--popover-foreground: oklch(0.972 0.007 278.214);
--card: oklch(0.1 0.017 271.815);
--card-foreground: oklch(0.981 0.005 278.249);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.33 0.089 273.076);
--primary-foreground: oklch(0.874 0.034 277.73);
--secondary: oklch(0.463 0.071 99.443);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.463 0.071 99.443);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.661 0.176 45.35);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.33 0.089 273.076);
--chart-1: oklch(0.33 0.089 273.076);
--chart-2: oklch(0.463 0.071 99.443);
--chart-3: oklch(0.463 0.071 99.443);
--chart-4: oklch(0.498 0.077 99.432);
--chart-5: oklch(0.327 0.095 272.572);
}