@eigenpal/docx-editor-core/utils/highlightColors
OOXML highlight color name - hex mapping. Used by both adapter toolbars when serialising highlight selections to the w:highlight attribute (which only accepts named colors).
Lifted from packages/react/src/components/toolbarUtils.ts so both sides share the same canonical table.
Functions (1)
mapHexToHighlightNamefunctionSource ↗
declare function mapHexToHighlightName(hex: string): string | null;Variables (1)
HIGHLIGHT_HEX_TO_NAMEconstSource ↗
OOXML highlight color name - hex mapping. Used by both adapter toolbars when serialising highlight selections to the w:highlight attribute (which only accepts named colors).
Lifted from packages/react/src/components/toolbarUtils.ts so both sides share the same canonical table.
HIGHLIGHT_HEX_TO_NAME: Record<string, string>