Sentiment is a shadcn/ui theme built around a muted light purple primary color (#e0dbe1) with muted light purple accents (#ccb1d3). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light purple primary (#e0dbe1) on a purple-tinted background (#0a040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0a040bblack |
| Foreground | #040105black | #fbf8fcghostwhite |
| Card | #fdfbfewhite | #0a040bblack |
| Card foreground | #040105black | #fbf8fcghostwhite |
| Popover | #fdfbfewhite | #0a040bblack |
| Popover foreground | #040105black | #fbf8fcghostwhite |
| Primary | #e0dbe1gainsboro | #e0dbe1gainsboro |
| Primary foreground | #493e4cdarkslategray | #493e4cdarkslategray |
| Secondary | #e0d4e2gainsboro | #1a191ablack |
| Secondary foreground | #4a3550darkslategray | #b3b1b4darkgray |
| Muted | #ede7eelavender | #161118black |
| Muted foreground | #48404adarkslategray | #bdb5bfsilver |
| Accent | #ccb1d3thistle | #2d282edarkslategray |
| Accent foreground | #301d34darkslategray | #c7c0c8silver |
| Destructive | #92170cdarkred | #ec2a18orangered |
| Destructive foreground | #fcd8d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0dbe1gainsboro | #e0dbe1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 8.19:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 9.33:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Sentiment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 319.445);
--foreground: oklch(0.081 0.027 322.11);
--muted: oklch(0.935 0.011 319.448);
--muted-foreground: oklch(0.383 0.019 319.458);
--popover: oklch(0.991 0.004 319.445);
--popover-foreground: oklch(0.081 0.027 322.11);
--card: oklch(0.991 0.004 319.445);
--card-foreground: oklch(0.081 0.027 322.11);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.896 0.011 319.448);
--primary-foreground: oklch(0.38 0.027 319.462);
--secondary: oklch(0.884 0.023 319.452);
--secondary-foreground: oklch(0.364 0.052 319.458);
--accent: oklch(0.794 0.056 319.462);
--accent-foreground: oklch(0.266 0.048 319.439);
--destructive: oklch(0.427 0.159 30.047);
--destructive-foreground: oklch(0.911 0.04 24.066);
--ring: oklch(0.896 0.011 319.448);
--chart-1: oklch(0.896 0.011 319.448);
--chart-2: oklch(0.884 0.023 319.452);
--chart-3: oklch(0.794 0.056 319.462);
--chart-4: oklch(0.909 0.018 319.45);
--chart-5: oklch(0.895 0.014 319.449);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.023 320.865);
--foreground: oklch(0.983 0.006 319.446);
--muted: oklch(0.187 0.016 319.464);
--muted-foreground: oklch(0.783 0.016 319.45);
--popover: oklch(0.123 0.023 320.865);
--popover-foreground: oklch(0.983 0.006 319.446);
--card: oklch(0.123 0.023 320.865);
--card-foreground: oklch(0.983 0.006 319.446);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.896 0.011 319.448);
--primary-foreground: oklch(0.38 0.027 319.462);
--secondary: oklch(0.215 0.002 319.447);
--secondary-foreground: oklch(0.763 0.005 319.446);
--accent: oklch(0.286 0.013 319.457);
--accent-foreground: oklch(0.816 0.013 319.449);
--destructive: oklch(0.608 0.229 30.071);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.896 0.011 319.448);
--chart-1: oklch(0.896 0.011 319.448);
--chart-2: oklch(0.215 0.002 319.447);
--chart-3: oklch(0.286 0.013 319.457);
--chart-4: oklch(0.247 0.003 319.448);
--chart-5: oklch(0.895 0.014 319.449);
}