Skip to content
EliteChart

ResolvedTheme

Documentation


Documentation / @elitechart/themes / ResolvedTheme

Defined in: core/dist/index.d.ts:1482

Theme flattened into the exact fields the chart renderer needs.

Produced by resolveTheme(theme). Keeping a dedicated resolved shape (versus reading tokens on each paint) avoids map lookups in the hot path.

Example

code
const resolved: ResolvedTheme = chart.getResolvedTheme();
console.log(resolved.bgCanvas); // '#0b0e13'

Properties

accent

code
readonly accent: string;

Defined in: core/dist/index.d.ts:1497


accentFill

code
readonly accentFill: string;

Defined in: core/dist/index.d.ts:1498


bgCanvas

code
readonly bgCanvas: string;

Defined in: core/dist/index.d.ts:1484


bgSurface

code
readonly bgSurface: string;

Defined in: core/dist/index.d.ts:1485


borderDefault

code
readonly borderDefault: string;

Defined in: core/dist/index.d.ts:1490


borderSubtle

code
readonly borderSubtle: string;

Defined in: core/dist/index.d.ts:1489


crosshair

code
readonly crosshair: string;

Defined in: core/dist/index.d.ts:1492


crosshairLabelBg

code
readonly crosshairLabelBg: string;

Defined in: core/dist/index.d.ts:1493


crosshairLabelFg

code
readonly crosshairLabelFg: string;

Defined in: core/dist/index.d.ts:1494


fontMono

code
readonly fontMono: string;

Defined in: core/dist/index.d.ts:1500


fontSans

code
readonly fontSans: string;

Defined in: core/dist/index.d.ts:1499


grid

code
readonly grid: string;

Defined in: core/dist/index.d.ts:1491


name

code
readonly name: string;

Defined in: core/dist/index.d.ts:1483


seriesDown

code
readonly seriesDown: string;

Defined in: core/dist/index.d.ts:1496


seriesUp

code
readonly seriesUp: string;

Defined in: core/dist/index.d.ts:1495


textMuted

code
readonly textMuted: string;

Defined in: core/dist/index.d.ts:1488


textPrimary

code
readonly textPrimary: string;

Defined in: core/dist/index.d.ts:1486


textSecondary

code
readonly textSecondary: string;

Defined in: core/dist/index.d.ts:1487