import type { ColorPaletteEntry, PostextConfig, ResourceType } from '../types.js'; import type { VDTDocument } from '../vdt.js'; /** The colour of a block's text a setting sets: its running text, bold and * italic runs, references, list marker (a bullet or a number), or a * number's separator. */ export type TextColorRole = 'color' | 'bold' | 'italic' | 'ref' | 'bullet' | 'separator' | 'dropCap' | 'code'; /** The colours of a contents row: the entry's text (bold and italic runs * included), its number, and its page number and subtitle. */ export type TocColorRole = 'color' | 'number' | 'segment'; /** The part of a callout frame a setting colours: the fills (background, * stripe, label tab), the border, the rules (the marker's and the * label's) and the text (title, icon and marker glyphs, label). */ export type FrameColorRole = 'fill' | 'border' | 'rule' | 'text'; /** * The kinds of flow colour. A kind names the settings a colour of the VDT * can come from: * - `text:` ({@link TextColorRole}): body text, blockquotes, * paragraph styles, lists, the text inside boxes, section and part * bodies, display maths; * - `toc:` ({@link TocColorRole}): the rows of the contents; * - `heading:` (a heading level), `heading@