Panda Syntax is a shadcn/ui theme built around a vivid teal primary color (#1af9d8) with neutral gray accents (#4d4f51). The light mode uses a neutral background (#28292a). Dark mode keeps the vivid teal primary (#1af9d8) on a neutral background (#28292a).
| Token | Light | Dark |
|---|---|---|
| Background | #28292adarkslategray | #28292adarkslategray |
| Foreground | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Card | #232424black | #232424black |
| Card foreground | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover | #202122black | #202122black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #1af9d8turquoise | #1af9d8turquoise |
| Primary foreground | #02463bdarkslategray | #02463bdarkslategray |
| Secondary | #2d534ddarkslategray | #2d534ddarkslategray |
| Secondary foreground | #cde4e1gainsboro | #cde4e1gainsboro |
| Muted | #2d3339darkslategray | #2d3339darkslategray |
| Muted foreground | #a9b3bcdarkgray | #a9b3bcdarkgray |
| Accent | #4d4f51darkslategray | #4d4f51darkslategray |
| Accent foreground | #e8e8e9lavender | #e8e8e9lavender |
| Destructive | #e83921orangered | #e83921orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #363636darkslategray | #363636darkslategray |
| Input | #3d3d3ddarkslategray | #3d3d3ddarkslategray |
| Ring | #1af9d8turquoise | #1af9d8turquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.70:1 | AAA |
| Text on card | 13.93:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 5.99:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 4.18:1 | AA Large |
| Text on background | 11.70:1 | AAA |
| Text on card | 13.93:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 5.99:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Panda Syntax in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.28 0.002 247.893);
--foreground: oklch(0.923 0 153.435);
--muted: oklch(0.318 0.014 248.262);
--muted-foreground: oklch(0.761 0.017 248.048);
--popover: oklch(0.248 0.002 247.889);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.259 0.002 247.89);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.331 0 180);
--input: oklch(0.361 0 180);
--primary: oklch(0.88 0.159 178.054);
--primary-foreground: oklch(0.352 0.064 178.741);
--secondary: oklch(0.411 0.045 183.377);
--secondary-foreground: oklch(0.902 0.025 185.886);
--accent: oklch(0.427 0.003 247.903);
--accent-foreground: oklch(0.931 0.001 247.83);
--destructive: oklch(0.611 0.214 31.033);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.88 0.159 178.054);
--chart-1: oklch(0.88 0.159 178.054);
--chart-2: oklch(0.411 0.045 183.377);
--chart-3: oklch(0.427 0.003 247.903);
--chart-4: oklch(0.445 0.049 183.319);
--chart-5: oklch(0.889 0.162 177.823);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.28 0.002 247.893);
--foreground: oklch(0.923 0 153.435);
--muted: oklch(0.318 0.014 248.262);
--muted-foreground: oklch(0.761 0.017 248.048);
--popover: oklch(0.248 0.002 247.889);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.259 0.002 247.89);
--card-foreground: oklch(0.962 0 180);
--border: oklch(0.331 0 180);
--input: oklch(0.361 0 180);
--primary: oklch(0.88 0.159 178.054);
--primary-foreground: oklch(0.352 0.064 178.741);
--secondary: oklch(0.411 0.045 183.377);
--secondary-foreground: oklch(0.902 0.025 185.886);
--accent: oklch(0.427 0.003 247.903);
--accent-foreground: oklch(0.931 0.001 247.83);
--destructive: oklch(0.611 0.214 31.033);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.88 0.159 178.054);
--chart-1: oklch(0.88 0.159 178.054);
--chart-2: oklch(0.411 0.045 183.377);
--chart-3: oklch(0.427 0.003 247.903);
--chart-4: oklch(0.445 0.049 183.319);
--chart-5: oklch(0.889 0.162 177.823);
}