MCPcopy Create free account
hub / github.com/pollinations/pollinations / modalityColorVar

Function modalityColorVar

packages/ui/src/modules/gen/themes.ts:30–31  ·  view source on GitHub ↗
(key: ModalityKey)

Source from the content-addressed store, hash-verified

28
29/** CSS var for a modality's solid color (dot / border / icon). */
30export const modalityColorVar = (key: ModalityKey): string =>
31 `var(--polli-color-modality-${key})`;
32
33/** CSS var for a modality's faint chip background. */
34export const modalityBgVar = (key: ModalityKey): string =>

Callers 2

ModalityChipFunction · 0.90
ModalityDotFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected