oss-ecosystem-data / code /web /src /lib /category.ts
saladday1's picture
code: sync from git
61db3dc verified
Raw History Blame Contribute Delete
650 Bytes
/** 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-/, "")