Skip to Content
Md2Docx logo Md2Docx

getTokenColor()

Updated 10 Nov 2026

getTokenColor(type, theme): string

Defined in: code.ts:30

Maps a token type to its respective theme color.

Parameters

type

TokenType

theme

ICodeTheme

Returns

string

On this page