getDocumentationKindColor()function
getDocumentationKindColor(kind: string): ColorVariant | undefined
| Param | Type | |
|---|---|---|
kind | string | The documented symbol's kind (e.g. "function", "class", "method"). required |
| Return | |
|---|---|
ColorVariant | undefined | The matching ColorVariant, or undefined when the kind is unrecognised. |
Get the raw colour variant for a documented symbol's kind, or undefined for an unknown kind.
- Shared source of truth so the kind tag and its surrounding card pick the same hue.
Examples
getDocumentationKindColor("class") // "pink"