Reflection is a shadcn/ui theme built around a vivid deep violet primary color (#14041b) with muted light violet accents (#d5c8da). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the vivid deep violet primary (#14041b) on a violet-tinted background (#0c060e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #0c060eblack |
| Foreground | #070109black | #ffffffwhite |
| Card | #faf2fcghostwhite | #0f0712black |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #faf2fcghostwhite | #0f0712black |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #14041bblack | #14041bblack |
| Primary foreground | #c566eborchid | #c566eborchid |
| Secondary | #e9e6ealavender | #171618black |
| Secondary foreground | #524757darkslategray | #b1aeb2darkgray |
| Muted | #f2eaf6whitesmoke | #120915black |
| Muted foreground | #574d5cdimgray | #aea3b2darkgray |
| Accent | #d5c8dathistle | #332b36darkslategray |
| Accent foreground | #3d2d43darkslategray | #ccc4cfthistle |
| Destructive | #6d2009maroon | #e74413orangered |
| Destructive foreground | #f8c0aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #14041bblack | #14041bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.81:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 20.03:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.09:1 | AA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Reflection in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.01 316.578);
--foreground: oklch(0.102 0.031 319.175);
--muted: oklch(0.947 0.018 316.554);
--muted-foreground: oklch(0.435 0.028 316.42);
--popover: oklch(0.971 0.015 316.562);
--popover-foreground: oklch(0.081 0.025 319.175);
--card: oklch(0.971 0.015 316.562);
--card-foreground: oklch(0.081 0.025 319.175);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.153 0.056 315.968);
--primary-foreground: oklch(0.674 0.207 315.363);
--secondary: oklch(0.928 0.007 316.586);
--secondary-foreground: oklch(0.416 0.03 316.4);
--accent: oklch(0.849 0.027 316.514);
--accent-foreground: oklch(0.325 0.042 316.218);
--destructive: oklch(0.362 0.113 36.298);
--destructive-foreground: oklch(0.854 0.07 37.598);
--ring: oklch(0.153 0.056 315.968);
--chart-1: oklch(0.153 0.056 315.968);
--chart-2: oklch(0.928 0.007 316.586);
--chart-3: oklch(0.849 0.027 316.514);
--chart-4: oklch(0.952 0.005 316.594);
--chart-5: oklch(0.152 0.058 315.977);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.023 316.894);
--foreground: oklch(1 0 180);
--muted: oklch(0.16 0.027 316.08);
--muted-foreground: oklch(0.73 0.025 316.51);
--popover: oklch(0.148 0.026 316.301);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.148 0.026 316.301);
--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.153 0.056 315.968);
--primary-foreground: oklch(0.674 0.207 315.363);
--secondary: oklch(0.203 0.003 316.564);
--secondary-foreground: oklch(0.754 0.008 316.579);
--accent: oklch(0.302 0.022 316.399);
--accent-foreground: oklch(0.829 0.019 316.543);
--destructive: oklch(0.62 0.207 35.434);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.153 0.056 315.968);
--chart-1: oklch(0.153 0.056 315.968);
--chart-2: oklch(0.203 0.003 316.564);
--chart-3: oklch(0.302 0.022 316.399);
--chart-4: oklch(0.236 0.004 316.559);
--chart-5: oklch(0.152 0.058 315.977);
}