(color: string)
| 61 | } |
| 62 | |
| 63 | function hcmColor(color: string) { |
| 64 | // In the docs, HCM colors can be simulated. |
| 65 | if (process.env.DOCS_ENV) { |
| 66 | return `var(--hcm-${color.toLowerCase()}, ${color})`; |
| 67 | } |
| 68 | |
| 69 | return color; |
| 70 | } |
| 71 | |
| 72 | const baseColors = { |
| 73 | transparent: 'transparent', |