Sentimental is a shadcn/ui theme built around a muted deep violet primary color (#3c2f41) with neutral gray accents (#d1d0d2). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted deep violet primary (#3c2f41) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #030204black |
| Foreground | #000000black | #f8f6f9whitesmoke |
| Card | #f9f4fbghostwhite | #060307black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #fbf8fcghostwhite | #030204black |
| Popover foreground | #000000black | #f8f6f9whitesmoke |
| Primary | #3c2f41darkslategray | #3c2f41darkslategray |
| Primary foreground | #d4cad8lightgrey | #d4cad8lightgrey |
| Secondary | #d1d0d2lightgrey | #332b36darkslategray |
| Secondary foreground | #393739darkslategray | #ccc4cfthistle |
| Muted | #decde5gainsboro | #2b1a32darkslategray |
| Muted foreground | #68596edimgray | #a091a6darkgray |
| Accent | #d1d0d2lightgrey | #332b36darkslategray |
| Accent foreground | #393739darkslategray | #ccc4cfthistle |
| Destructive | #981010darkred | #e71818crimson |
| Destructive foreground | #fcdfdfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c2f41darkslategray | #3c2f41darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.69:1 | AAA |
| Muted text | 4.29:1 | AA Large |
| Accent | 7.69:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.62:1 | AA |
Paste this into your globals.css to use Sentimental in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 315.998);
--foreground: oklch(0 0 0);
--muted: oklch(0.868 0.038 315.865);
--muted-foreground: oklch(0.485 0.039 315.733);
--popover: oklch(0.982 0.006 315.998);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.01 315.986);
--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.327 0.035 315.631);
--primary-foreground: oklch(0.851 0.023 315.925);
--secondary: oklch(0.86 0.003 316.01);
--secondary-foreground: oklch(0.339 0.004 315.975);
--accent: oklch(0.86 0.003 316.01);
--accent-foreground: oklch(0.339 0.004 315.975);
--destructive: oklch(0.435 0.168 28.007);
--destructive-foreground: oklch(0.926 0.032 17.744);
--ring: oklch(0.327 0.035 315.631);
--chart-1: oklch(0.327 0.035 315.631);
--chart-2: oklch(0.86 0.003 316.01);
--chart-3: oklch(0.86 0.003 316.01);
--chart-4: oklch(0.883 0.002 316.012);
--chart-5: oklch(0.325 0.042 315.55);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.013 317.394);
--foreground: oklch(0.975 0.005 316.005);
--muted: oklch(0.252 0.05 315.236);
--muted-foreground: oklch(0.676 0.036 315.831);
--popover: oklch(0.086 0.013 317.394);
--popover-foreground: oklch(0.975 0.005 316.005);
--card: oklch(0.108 0.017 317.394);
--card-foreground: oklch(0.983 0.003 316.01);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.327 0.035 315.631);
--primary-foreground: oklch(0.851 0.023 315.925);
--secondary: oklch(0.302 0.022 315.767);
--secondary-foreground: oklch(0.829 0.019 315.942);
--accent: oklch(0.302 0.022 315.767);
--accent-foreground: oklch(0.829 0.019 315.942);
--destructive: oklch(0.589 0.232 28.341);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.327 0.035 315.631);
--chart-1: oklch(0.327 0.035 315.631);
--chart-2: oklch(0.302 0.022 315.767);
--chart-3: oklch(0.302 0.022 315.767);
--chart-4: oklch(0.331 0.024 315.759);
--chart-5: oklch(0.325 0.042 315.55);
}