Skip to content

SemanticRole

SemanticRole = "muted" | "info" | "success" | "warning" | "error" | "critical" | "winner" | "better" | "worse" | "unchanged"

Defined in: semantic-palette.ts:15

What a piece of text means, rather than what colour it should be.

Shares its vocabulary with GlyphRole wherever the two overlap, so a glyph and the colour beside it are asked for by the same name. Roles a glyph has no answer for (muted, critical) and glyphs no colour applies to (bullet, more) are why the two are separate lists rather than one.