Chart theme (palette). A single object drives chart chrome (background, grid, axes, crosshair), series defaults (up/down, line, area gradient, last price), and the trade layer (buy/sell, profit/loss). Renderers read theme colors when a per-series style field is absent, so one theme restyles the whole chart.

interface ChartTheme {
    areaBottomColor: string;
    areaTopColor: string;
    axisFontSize?: number;
    axisLine: string;
    axisText: string;
    background: string;
    baselineBottomFill: string;
    baselineBottomLine: string;
    baselineTopFill: string;
    baselineTopLine: string;
    buy: string;
    crosshair: string;
    crosshairLabelBackground?: string;
    crosshairLabelVisible?: boolean;
    crosshairStyle?: "solid" | "dashed" | "dotted";
    crosshairWidth?: number;
    downColor: string;
    grid: string;
    gridStyle?: "solid" | "dashed" | "dotted";
    lastPriceDown: string;
    lastPriceText: string;
    lastPriceUp: string;
    lineColor: string;
    loss: string;
    profit: string;
    sell: string;
    upColor: string;
    wickDownColor: string;
    wickUpColor: string;
}

Properties

areaBottomColor: string
areaTopColor: string
axisFontSize?: number

Axis label font size in px (default 11).

axisLine: string
axisText: string
background: string
baselineBottomFill: string
baselineBottomLine: string
baselineTopFill: string
baselineTopLine: string
buy: string
crosshair: string
crosshairLabelBackground?: string

Background of the crosshair value tags (defaults to crosshair).

crosshairLabelVisible?: boolean

Show the crosshair price/time value tags (default true).

crosshairStyle?: "solid" | "dashed" | "dotted"

Crosshair line dash style (default 'dashed').

crosshairWidth?: number

Crosshair line width in device px (default 1 = hairline).

downColor: string
grid: string
gridStyle?: "solid" | "dashed" | "dotted"

Grid line dash style (default 'solid').

lastPriceDown: string
lastPriceText: string
lastPriceUp: string
lineColor: string
loss: string
profit: string
sell: string
upColor: string
wickDownColor: string
wickUpColor: string