Emotional is a shadcn/ui theme built around a muted violet primary color (#b8adcd) with muted purple accents (#c8adcd). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted violet primary (#b8adcd) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #050307black |
| Foreground | #080311black | #ffffffwhite |
| Card | #fcfbfewhite | #050307black |
| Card foreground | #080311black | #ffffffwhite |
| Popover | #fcfbfewhite | #050307black |
| Popover foreground | #080311black | #ffffffwhite |
| Primary | #b8adcdsilver | #b8adcdsilver |
| Primary foreground | #211b2cblack | #211b2cblack |
| Secondary | #adb1cdlightsteelblue | #adb1cdlightsteelblue |
| Secondary foreground | #1b1d2cblack | #1b1d2cblack |
| Muted | #e6e7f0lavender | #0f111ablack |
| Muted foreground | #434556darkslategray | #a9abbcdarkgray |
| Accent | #c8adcdsilver | #c8adcdsilver |
| Accent foreground | #2a1b2cdarkslategray | #2a1b2cdarkslategray |
| Destructive | #b3140ffirebrick | #ee312bcrimson |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8adcdsilver | #b8adcdsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 7.65:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 8.29:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Emotional in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 302.87);
--foreground: oklch(0.122 0.036 302.074);
--muted: oklch(0.929 0.012 279.144);
--muted-foreground: oklch(0.396 0.029 278.114);
--popover: oklch(0.99 0.004 302.87);
--popover-foreground: oklch(0.122 0.036 302.074);
--card: oklch(0.99 0.004 302.87);
--card-foreground: oklch(0.122 0.036 302.074);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.767 0.047 302.001);
--primary-foreground: oklch(0.238 0.033 300.74);
--secondary: oklch(0.766 0.04 278.509);
--secondary-foreground: oklch(0.237 0.029 277.223);
--accent: oklch(0.781 0.054 321.779);
--accent-foreground: oklch(0.249 0.038 321.974);
--destructive: oklch(0.489 0.191 28.99);
--destructive-foreground: oklch(0.979 0.009 19.735);
--ring: oklch(0.767 0.047 302.001);
--chart-1: oklch(0.767 0.047 302.001);
--chart-2: oklch(0.766 0.04 278.509);
--chart-3: oklch(0.781 0.054 321.779);
--chart-4: oklch(0.794 0.035 278.645);
--chart-5: oklch(0.763 0.052 301.878);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.015 303.465);
--foreground: oklch(1 0 180);
--muted: oklch(0.179 0.018 277.585);
--muted-foreground: oklch(0.745 0.025 278.818);
--popover: oklch(0.105 0.015 303.465);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.105 0.015 303.465);
--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.767 0.047 302.001);
--primary-foreground: oklch(0.238 0.033 300.74);
--secondary: oklch(0.766 0.04 278.509);
--secondary-foreground: oklch(0.237 0.029 277.223);
--accent: oklch(0.781 0.054 321.779);
--accent-foreground: oklch(0.249 0.038 321.974);
--destructive: oklch(0.617 0.224 28.137);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.767 0.047 302.001);
--chart-1: oklch(0.767 0.047 302.001);
--chart-2: oklch(0.766 0.04 278.509);
--chart-3: oklch(0.781 0.054 321.779);
--chart-4: oklch(0.794 0.035 278.645);
--chart-5: oklch(0.763 0.052 301.878);
}