Syntax Light is a shadcn/ui theme built around a neutral gray primary color (#9c9c9c) with neutral gray accents (#c2c2c2). The light mode uses a neutral background (#e8e8e8). Dark mode keeps the neutral gray primary (#9c9c9c) on a neutral background (#e8e8e8).
| Token | Light | Dark |
|---|---|---|
| Background | #e8e8e8lavender | #e8e8e8lavender |
| Foreground | #404040darkslategray | #404040darkslategray |
| Card | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Card foreground | #333333darkslategray | #333333darkslategray |
| Popover | #e0e0e0gainsboro | #e0e0e0gainsboro |
| Popover foreground | #262626darkslategray | #262626darkslategray |
| Primary | #9c9c9cdarkgray | #9c9c9cdarkgray |
| Primary foreground | #030303black | #030303black |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #e2dadagainsboro | #e2dadagainsboro |
| Muted foreground | #4d3d3ddarkslategray | #4d3d3ddarkslategray |
| Accent | #c2c2c2silver | #c2c2c2silver |
| Accent foreground | #292929darkslategray | #292929darkslategray |
| Destructive | #7a160bmaroon | #7a160bmaroon |
| Destructive foreground | #f9c3bdlightpink | #f9c3bdlightpink |
| Border | #dbdbdbgainsboro | #dbdbdbgainsboro |
| Input | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Ring | #9c9c9cdarkgray | #9c9c9cdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.46:1 | AAA |
| Text on card | 9.84:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 8.46:1 | AAA |
| Text on card | 9.84:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 6.97:1 | AA |
Paste this into your globals.css to use Syntax Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.931 0 180);
--foreground: oklch(0.371 0 168.69);
--muted: oklch(0.894 0.009 17.32);
--muted-foreground: oklch(0.376 0.023 18.237);
--popover: oklch(0.908 0 180);
--popover-foreground: oklch(0.27 0 180);
--card: oklch(0.916 0 180);
--card-foreground: oklch(0.321 0 180);
--border: oklch(0.892 0 180);
--input: oklch(0.869 0 165.964);
--primary: oklch(0.691 0 180);
--primary-foreground: oklch(0.092 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.813 0 165.964);
--accent-foreground: oklch(0.28 0 180);
--destructive: oklch(0.378 0.136 30.488);
--destructive-foreground: oklch(0.864 0.063 25.747);
--ring: oklch(0.691 0 180);
--chart-1: oklch(0.691 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.813 0 165.964);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.687 0.007 17.327);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.931 0 180);
--foreground: oklch(0.371 0 168.69);
--muted: oklch(0.894 0.009 17.32);
--muted-foreground: oklch(0.376 0.023 18.237);
--popover: oklch(0.908 0 180);
--popover-foreground: oklch(0.27 0 180);
--card: oklch(0.916 0 180);
--card-foreground: oklch(0.321 0 180);
--border: oklch(0.892 0 180);
--input: oklch(0.869 0 165.964);
--primary: oklch(0.691 0 180);
--primary-foreground: oklch(0.092 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.813 0 165.964);
--accent-foreground: oklch(0.28 0 180);
--destructive: oklch(0.378 0.136 30.488);
--destructive-foreground: oklch(0.864 0.063 25.747);
--ring: oklch(0.691 0 180);
--chart-1: oklch(0.691 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.813 0 165.964);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.687 0.007 17.327);
}