Sentence is a shadcn/ui theme built around a vivid purple primary color (#be19aa) with muted light purple accents (#e1dbe0). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid purple primary (#be19aa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #000000black |
| Foreground | #120310black | #fcf8fbsnow |
| Card | #fcf8fbsnow | #000000black |
| Card foreground | #120310black | #fcf8fbsnow |
| Popover | #fcf8fbsnow | #000000black |
| Popover foreground | #120310black | #fcf8fbsnow |
| Primary | #be19aamediumvioletred | #be19aamediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e1dbe0gainsboro | #392d38darkslategray |
| Secondary foreground | #4a3f49darkslategray | #d2c6d1thistle |
| Muted | #f5f0f4whitesmoke | #0f0a0fblack |
| Muted foreground | #5d565cdimgray | #a9a2a8darkgray |
| Accent | #e1dbe0gainsboro | #392d38darkslategray |
| Accent foreground | #4a3f49darkslategray | #d2c6d1thistle |
| Destructive | #7d1a0cmaroon | #d12b15firebrick |
| Destructive foreground | #f9c9c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #be19aamediumvioletred | #be19aamediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 5.38:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 5.38:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 5.17:1 | AA |
Paste this into your globals.css to use Sentence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 329.201);
--foreground: oklch(0.136 0.044 331.719);
--muted: oklch(0.959 0.008 329.235);
--muted-foreground: oklch(0.461 0.014 329.471);
--popover: oklch(0.983 0.006 329.201);
--popover-foreground: oklch(0.136 0.044 331.719);
--card: oklch(0.983 0.006 329.201);
--card-foreground: oklch(0.136 0.044 331.719);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.557 0.236 334.116);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.898 0.009 329.243);
--secondary-foreground: oklch(0.384 0.022 329.779);
--accent: oklch(0.898 0.009 329.243);
--accent-foreground: oklch(0.384 0.022 329.779);
--destructive: oklch(0.388 0.137 31.037);
--destructive-foreground: oklch(0.876 0.056 26.993);
--ring: oklch(0.557 0.236 334.116);
--chart-1: oklch(0.557 0.236 334.116);
--chart-2: oklch(0.898 0.009 329.243);
--chart-3: oklch(0.898 0.009 329.243);
--chart-4: oklch(0.921 0.007 329.215);
--chart-5: oklch(0.562 0.241 334.242);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.006 329.205);
--muted: oklch(0.155 0.013 330.098);
--muted-foreground: oklch(0.721 0.012 329.327);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.006 329.205);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.006 329.205);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.557 0.236 334.116);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.315 0.026 330.041);
--secondary-foreground: oklch(0.839 0.02 329.408);
--accent: oklch(0.315 0.026 330.041);
--accent-foreground: oklch(0.839 0.02 329.408);
--destructive: oklch(0.559 0.204 31.019);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.557 0.236 334.116);
--chart-1: oklch(0.557 0.236 334.116);
--chart-2: oklch(0.315 0.026 330.041);
--chart-3: oklch(0.315 0.026 330.041);
--chart-4: oklch(0.344 0.029 330.067);
--chart-5: oklch(0.562 0.241 334.242);
}