Graceful Twinkle Night is a shadcn/ui theme built around a muted blue primary color (#626fa3) with muted green accents (#6fa362). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted blue primary (#626fa3) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #04050bblack |
| Foreground | #000000black | #f9fafaghostwhite |
| Card | #f5f6fawhitesmoke | #05070fblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f8f9fcghostwhite | #04050bblack |
| Popover foreground | #000000black | #f9fafaghostwhite |
| Primary | #626fa3slategray | #626fa3slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a3626findianred | #a3626findianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f2e3e6mistyrose | #1c0d10black |
| Muted foreground | #5c5154dimgray | #aea3a5darkgray |
| Accent | #6fa362gray | #6fa362gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #8e3806saddlebrown | #dc5709chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eaeaeblavender | #222325black |
| Input | #eaeaeblavender | #222325black |
| Ring | #626fa3slategray | #626fa3slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.92:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 4.88:1 | AA |
| Secondary button | 4.66:1 | AA |
| Muted text | 6.13:1 | AA |
| Accent | 7.05:1 | AAA |
| Destructive | 7.73:1 | AAA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 4.88:1 | AA |
| Secondary button | 4.66:1 | AA |
| Muted text | 7.70:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Graceful Twinkle Night in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 274.986);
--foreground: oklch(0 0 0);
--muted: oklch(0.929 0.016 3.66);
--muted-foreground: oklch(0.448 0.014 4.024);
--popover: oklch(0.982 0.004 274.986);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.006 274.961);
--card-foreground: oklch(0 0 0);
--border: oklch(0.938 0.002 275.011);
--input: oklch(0.938 0.002 275.011);
--primary: oklch(0.551 0.083 272.703);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.57 0.086 7.196);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.661 0.108 139.492);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.454 0.129 43.779);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.551 0.083 272.703);
--chart-1: oklch(0.551 0.083 272.703);
--chart-2: oklch(0.57 0.086 7.196);
--chart-3: oklch(0.661 0.108 139.492);
--chart-4: oklch(0.597 0.079 6.712);
--chart-5: oklch(0.546 0.092 272.344);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.016 269.26);
--foreground: oklch(0.984 0.001 275.019);
--muted: oklch(0.182 0.026 6.954);
--muted-foreground: oklch(0.725 0.012 3.644);
--popover: oklch(0.119 0.016 269.26);
--popover-foreground: oklch(0.984 0.001 275.019);
--card: oklch(0.132 0.019 270.018);
--card-foreground: oklch(0.992 0.001 275.027);
--border: oklch(0.256 0.004 274.822);
--input: oklch(0.256 0.004 274.822);
--primary: oklch(0.551 0.083 272.703);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.57 0.086 7.196);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.661 0.108 139.492);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.623 0.182 42.67);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.551 0.083 272.703);
--chart-1: oklch(0.551 0.083 272.703);
--chart-2: oklch(0.57 0.086 7.196);
--chart-3: oklch(0.661 0.108 139.492);
--chart-4: oklch(0.597 0.079 6.712);
--chart-5: oklch(0.546 0.092 272.344);
}