> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Fonts, colours and galleries

The lists that fill a font box, a colour grid or a Word gallery, and the CSS that previews a face or a style. Each gallery feeds one `EditorCommand`.

## `FONT_FAMILIES`

```ts theme={null}
const FONT_FAMILIES: readonly ["Calibri", "Cambria", "Arial", "Times New Roman", "Georgia", "Helvetica", "Courier New", "Verdana", "Garamond", "Segoe UI"] = ...
```

The curated faces a font menu offers.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `FONT_SIZES`

```ts theme={null}
const FONT_SIZES: readonly [8, 9, 10, 10.5, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72] = ...
```

The sizes each Office app lists under its Font Size box.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `fontChoices()`

```ts theme={null}
function fontChoices(current: string | undefined): string[]
```

The list always contains the caret's own face, even when it is off-menu.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `faceCss()`

```ts theme={null}
function faceCss(name: string): string
```

A CSS font-family that tries the face itself before the UI face.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `lookCss()`

```ts theme={null}
function lookCss(look: StyleLook | undefined): string | undefined
```

Inline CSS that previews a paragraph style in a menu, at a size a menu row can hold.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `styleLabel()`

```ts theme={null}
function styleLabel(name: string): string
```

Built-in style names are stored lower-case ("heading 1"); Word shows them capitalised.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `TEXT_COLORS`

```ts theme={null}
const TEXT_COLORS: readonly Swatch[] = ...
```

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `HIGHLIGHTS`

```ts theme={null}
const HIGHLIGHTS: readonly { hex: string; label: string; name: HighlightColor }[] = ...
```

Every ST\_HighlightColor except `none`, which the "No colour" row clears with null.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `Swatch`

The text-colour swatch grid every editor offers.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

| Name | Type | Description |
| - | - | - |
| `hex` | `string` | |
| `label` | `string` | |

## `WORD_THEME_COLORS`

```ts theme={null}
const WORD_THEME_COLORS: ReadonlyArray<ThemeColorScheme & { label: string }> = ...
```

Design > Colors, in Word's gallery order; `label` is the gallery's, `name` the one Word writes.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `WORD_THEME_FONTS`

```ts theme={null}
const WORD_THEME_FONTS: ReadonlyArray<ThemeFontScheme & { label: string }> = ...
```

Design > Fonts, in Word's gallery order; `label` is the gallery's, `name` the one Word writes.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `PARAGRAPH_SPACING_PRESETS`

```ts theme={null}
const PARAGRAPH_SPACING_PRESETS: readonly ParagraphSpacingPreset[] = ...
```

Word's Built-In gallery after its Default (Style Set) entry, harvested from Word 16.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `WORD_MULTILEVEL_LISTS`

```ts theme={null}
const WORD_MULTILEVEL_LISTS: Record<string, ListLevelDefinition[]> = ...
```

Word 16's List Library, as Word for Mac writes each tile; heading lists link levels to Heading 1-9.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `RECOLOR_TILES`

```ts theme={null}
const RECOLOR_TILES: readonly PictureRecolor[] = ...
```

Word's Recolor gallery, in Word's order, without No Recolor.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `SHADOW_PRESETS`

```ts theme={null}
const SHADOW_PRESETS: readonly EffectPreset[] = ...
```

Word's Shadow gallery in its order, without No Shadow.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `REFLECTION_PRESETS`

```ts theme={null}
const REFLECTION_PRESETS: readonly EffectPreset[] = ...
```

Word's Reflection gallery in its order, without No Reflection.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `GLOW_PRESETS`

```ts theme={null}
const GLOW_PRESETS: readonly EffectPreset[] = ...
```

Word's Glow gallery in its order, without No Glow: four sizes by the six accents.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `SOFT_EDGE_PRESETS`

```ts theme={null}
const SOFT_EDGE_PRESETS: readonly EffectPreset[] = ...
```

Word's Soft Edges gallery in its order, without None.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `ShadowGroup`

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

```ts theme={null}
type ShadowGroup = "outer" | "inner" | "perspective"
```

## `effectLook()`

```ts theme={null}
function effectLook(
  effect: EffectKind,
  preset: EffectPreset | null,
  row?: readonly string[],
): string
```

CSS for one Shadow, Reflection, Glow or Soft Edges tile; `null` is the gallery's None tile.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `recolorLook()`

```ts theme={null}
function recolorLook(
  recolor: PictureRecolor | null,
  row?: readonly string[],
): { css: string; label: string }
```

A Recolor tile: Word's tooltip and the CSS that paints it; `null` is No Recolor.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `RECOLOR_SAMPLE`

```ts theme={null}
const RECOLOR_SAMPLE: "linear-gradient(90deg,#e33,#fc3,#3c6,#39f,#c3c)" = "linear-gradient(90deg,#e33,#fc3,#3c6,#39f,#c3c)"
```

The rainbow strip a Recolor tile tints.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `THEME_GALLERY_SLOTS`

```ts theme={null}
const THEME_GALLERY_SLOTS: readonly ["dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6"] = ...
```

The eight swatches of a Design > Colors gallery entry.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `themeRow()`

```ts theme={null}
function themeRow(scheme: ThemeColorScheme | undefined): string[] | undefined
```

The Theme Colors row of every colour picker: background, text, then the accents.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `themeSlotHex()`

```ts theme={null}
function themeSlotHex(row: readonly string[] | undefined, slot: string): string
```

A scheme slot (`accent2`, `tx2`) as CSS hex, read from a `themeRow`; mid grey without one.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `tableThumb()`

```ts theme={null}
function tableThumb(
  style: Partial<Record<TableStyleRegionName, TableStyleRegion>> | undefined,
  flags: Required<TableLook> | undefined,
): string
```

An SVG data URL of the style as the gallery shows it under the table's current look.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `SHAPE_GROUPS`

```ts theme={null}
const SHAPE_GROUPS: ReadonlyArray<readonly [name: string, presets: readonly ShapePreset[]]> = ...
```

Word's gallery groups in order; Change Shape and Crop to Shape leave out Lines.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `ShapePreset`

One Insert > Shapes tile: the `a:prstGeom` name, Word's tooltip and a 24×24 SVG body.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

```ts theme={null}
type ShapePreset = [geom: string, label: string, svg: string]
```

## `shapePreview()`

```ts theme={null}
function shapePreview(svg: string): string
```

A tile's preview as a CSS `url()`.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `SYMBOL_SUBSETS`

```ts theme={null}
const SYMBOL_SUBSETS: [string, number, number][] = ...
```

Insert > Symbol > Advanced Symbol: Word's Unicode subsets and its Special Characters list.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `SPECIAL_CHARACTERS`

```ts theme={null}
const SPECIAL_CHARACTERS: [string, string][] = ...
```

The Special Characters tab: Word's name for each and the character it types.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `subsetChars()`

```ts theme={null}
function subsetChars(index: number): string[]
```

Every character of one `SYMBOL_SUBSETS` entry, by its index.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `codeOf()`

```ts theme={null}
function codeOf(ch: string): string
```

Word's Character code box: four or more uppercase hex digits.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `LANGUAGES`

```ts theme={null}
const LANGUAGES: string[] = ...
```

Proofing languages the Language dialog offers, by BCP 47 tag.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `languageName()`

```ts theme={null}
function languageName(tag: string | undefined, locale?: string): string
```

Word's spelling of a language in the editor's language: "English (United States)".

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `sortedLanguages()`

```ts theme={null}
function sortedLanguages(locale?: string): string[]
```

`LANGUAGES` in the order Word's dialog lists them: by name.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `MANUAL_TOC`

```ts theme={null}
const MANUAL_TOC: string = ...
```

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `quickLayoutThumb()`

```ts theme={null}
function quickLayoutThumb(n: number): string
```

The thumbnail of Quick Layout `n` (1-based) as a CSS `url(...)`.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `isAuthoredChartType()`

```ts theme={null}
function isAuthoredChartType(
  type: string,
): type is "Line" | "ColumnClustered" | "ColumnStacked" | "ColumnStacked100" | "BarClustered" | "BarStacked" | "BarStacked100" | "LineMarkers" | "LineStacked" | "LineMarkersStacked" | "LineStacked100" | "LineMarkersStacked100" | "Area" | "AreaStacked" | "AreaStacked100" | "Pie" | "Doughnut" | "XYScatter" | "XYScatterLines" | "XYScatterLinesNoMarkers" | "XYScatterSmooth" | "XYScatterSmoothNoMarkers" | "Radar" | "RadarMarkers" | "RadarFilled" | "PieExploded" | "DoughnutExploded" | "PieOfPie" | "BarOfPie" | "3DLine" | "3DArea" | "3DAreaStacked" | "3DAreaStacked100" | "3DPie" | "3DPieExploded" | "Bubble" | "Bubble3DEffect" | "StockHLC" | "StockOHLC" | "StockVHLC" | "StockVOHLC" | "Surface" | "SurfaceWireframe" | "SurfaceTopView" | "SurfaceTopViewWireframe" | "3DColumn" | "3DColumnClustered" | "3DColumnStacked" | "3DColumnStacked100" | "3DBarClustered" | "3DBarStacked" | "3DBarStacked100" | "CylinderCol" | "CylinderColClustered" | "CylinderColStacked" | "CylinderColStacked100" | "CylinderBarClustered" | "CylinderBarStacked" | "CylinderBarStacked100" | "ConeCol" | "ConeColClustered" | "ConeColStacked" | "ConeColStacked100" | "ConeBarClustered" | "ConeBarStacked" | "ConeBarStacked100" | "PyramidCol" | "PyramidColClustered" | "PyramidColStacked" | "PyramidColStacked100" | "PyramidBarClustered" | "PyramidBarStacked" | "PyramidBarStacked100"
```

A type `sampleChartSpec` can build: the classic charts, not the chartex ones (treemap, waterfall).

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

## `AuthoredChartType`

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

```ts theme={null}
type AuthoredChartType = keyof typeof AUTHORED_CHART_TYPES
```

## `ChartDesign`

What Word's Chart Design menus check; an absent member is a menu Word greys out for this chart.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

| Name | Type | Description |
| - | - | - |
| `axes?` | `ChartAxisPair` | |
| `axisTitles?` | `ChartAxisPair` | |
| `chartStyles` | `number` | How many Chart Styles apply; 0 where Word's gallery for this chart type is not known. |
| `chartType` | `string` | |
| `colorScheme` | `ChartColorScheme` | |
| `dataLabels` | `ChartDesignDataLabels \| "Other"` | |
| `dataTable?` | `ChartDesignDataTable` | |
| `errorBars?` | `ChartDesignErrorBars` | |
| `labelPositions` | `ChartDesignDataLabels[]` | The positions Data Labels offers for this chart's plot. |
| `legend` | `ChartDesignLegend \| "Other"` | |
| `lines?` | `ChartDesignLines` | Line and area charts only. |
| `majorGridlines?` | `ChartAxisPair` | |
| `minorGridlines?` | `ChartAxisPair` | |
| `quickLayouts` | `number` | How many Quick Layouts apply; 0 where Word's presets for this chart type are not known. |
| `switchable` | `boolean` | Switch Row/Column applies: one category plot reading one block of cells. |
| `title` | `ChartDesignTitle` | |
| `trendline?` | `ChartDesignTrendline` | |
| `upDownBars?` | `boolean` | Line charts only. |

## `ChartDesignPatch`

One Chart Design menu pick; absent members keep their value.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

| Name | Type | Description |
| - | - | - |
| `axes?` | `Partial<ChartAxisPair>` | |
| `axisTitles?` | `Partial<ChartAxisPair>` | |
| `chartStyle?` | `number` | Word's Chart Styles gallery, 1-based. |
| `chartType?` | `AuthoredChartType` | |
| `colorScheme?` | `ChartColorScheme` | |
| `dataLabels?` | `ChartDesignDataLabels` | |
| `dataTable?` | `ChartDesignDataTable` | |
| `errorBars?` | `ChartDesignErrorBars` | |
| `legend?` | `ChartDesignLegend` | |
| `lines?` | `ChartDesignLines` | |
| `majorGridlines?` | `Partial<ChartAxisPair>` | |
| `minorGridlines?` | `Partial<ChartAxisPair>` | |
| `quickLayout?` | `number` | Word's Quick Layout, 1-based. |
| `series?` | `number` | The series a new trendline goes on, 0-based: Excel's selected series. The first when absent. |
| `switchRowColumn?` | `true` | Word's Switch Row/Column: each category becomes a series. |
| `title?` | `ChartDesignTitle` | |
| `trendline?` | `ChartDesignTrendline` | |
| `upDownBars?` | `boolean` | |
