Skip to content
EliteChart

ResolvedTheme

Documentation


Documentation / @elitechart/core / ResolvedTheme

Defined in: theme/types.ts:48

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: theme/types.ts:63


accentFill

code
readonly accentFill: string;

Defined in: theme/types.ts:64


bgCanvas

code
readonly bgCanvas: string;

Defined in: theme/types.ts:50


bgSurface

code
readonly bgSurface: string;

Defined in: theme/types.ts:51


borderDefault

code
readonly borderDefault: string;

Defined in: theme/types.ts:56


borderSubtle

code
readonly borderSubtle: string;

Defined in: theme/types.ts:55


crosshair

code
readonly crosshair: string;

Defined in: theme/types.ts:58


crosshairLabelBg

code
readonly crosshairLabelBg: string;

Defined in: theme/types.ts:59


crosshairLabelFg

code
readonly crosshairLabelFg: string;

Defined in: theme/types.ts:60


fontMono

code
readonly fontMono: string;

Defined in: theme/types.ts:66


fontSans

code
readonly fontSans: string;

Defined in: theme/types.ts:65


grid

code
readonly grid: string;

Defined in: theme/types.ts:57


name

code
readonly name: string;

Defined in: theme/types.ts:49


seriesDown

code
readonly seriesDown: string;

Defined in: theme/types.ts:62


seriesUp

code
readonly seriesUp: string;

Defined in: theme/types.ts:61


textMuted

code
readonly textMuted: string;

Defined in: theme/types.ts:54


textPrimary

code
readonly textPrimary: string;

Defined in: theme/types.ts:52


textSecondary

code
readonly textSecondary: string;

Defined in: theme/types.ts:53