Polymer Syntax Theme is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#485b7a). The light mode uses a blue-tinted background (#2b374a). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#2b374a).
| Token | Light | Dark |
|---|---|---|
| Background | #2b374adarkslategray | #2b374adarkslategray |
| Foreground | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Card | #283243darkslategray | #283243darkslategray |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #263040darkslategray | #263040darkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #3d434ddarkslategray | #3d434ddarkslategray |
| Muted foreground | #bdc3cbsilver | #bdc3cbsilver |
| Accent | #485b7adarkslateblue | #485b7adarkslateblue |
| Accent foreground | #f9fafbghostwhite | #f9fafbghostwhite |
| Destructive | #ec3427crimson | #ec3427crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3c4553darkslategray | #3c4553darkslategray |
| Input | #424c5cdarkslategray | #424c5cdarkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.19:1 | AAA |
| Text on card | 12.86:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 4.11:1 | AA Large |
| Text on background | 11.19:1 | AAA |
| Text on card | 12.86:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Polymer Syntax Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.335 0.037 259.765);
--foreground: oklch(0.977 0 180);
--muted: oklch(0.381 0.019 259.916);
--muted-foreground: oklch(0.815 0.014 259.946);
--popover: oklch(0.307 0.033 259.775);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.316 0.034 259.771);
--card-foreground: oklch(1 0 180);
--border: oklch(0.387 0.027 259.879);
--input: oklch(0.414 0.029 259.877);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.468 0.056 259.736);
--accent-foreground: oklch(0.984 0.002 259.937);
--destructive: oklch(0.616 0.221 29.264);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.468 0.056 259.736);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.335 0.037 259.765);
--foreground: oklch(0.977 0 180);
--muted: oklch(0.381 0.019 259.916);
--muted-foreground: oklch(0.815 0.014 259.946);
--popover: oklch(0.307 0.033 259.775);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.316 0.034 259.771);
--card-foreground: oklch(1 0 180);
--border: oklch(0.387 0.027 259.879);
--input: oklch(0.414 0.029 259.877);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.468 0.056 259.736);
--accent-foreground: oklch(0.984 0.002 259.937);
--destructive: oklch(0.616 0.221 29.264);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.468 0.056 259.736);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}