File size: 650 Bytes
2471af3 61db3dc 2471af3 | 1 2 3 4 5 6 7 8 9 10 11 | /** Each modality keeps one colour everywhere (validated in this stack order, light and dark).
* Brand hues: language the orange-red, video the multimodal purple, image the blue, music the wine accent. */
export const CAT_ORDER = ["language", "video", "music", "image", "audio"]
export const catColor = (c: string) => `var(--cat-${c}, var(--neutral-series))`
export const catFrom = (c: string) => `var(--cat-${c}-from, var(--neutral-series))`
export const catTo = (c: string) => `var(--cat-${c}-to, var(--neutral-series))`
/** "MiniMax-M2.7" -> "M2.7" for tight places. */
export const shortName = (name: string) => name.replace(/^MiniMax-/, "")
|