Skip to main content

css_class

Function css_class 

Source
pub fn css_class(kind: TokenKind) -> &'static str
Expand description

The stable CSS class name for a token kind, e.g. TokenKind::Keyword => "tok-keyword". This is the shared class-name contract every HTML/web presenter agrees on; the matching CSS lives in the consuming surface’s stylesheet. Native presenters ignore this and map TokenKind straight to a color.