Skip to main content

Type Alias: VroomTheme

type VroomTheme = {
accentBear?: VroomColor;
accentBull?: VroomColor;
axisText?: VroomColor;
background?: VroomColor;
bear?: VroomColor;
borderBear?: VroomColor;
borderBull?: VroomColor;
bull?: VroomColor;
candleRadius?: number;
crosshair?: VroomColor;
crosshairTarget?: VroomColor;
grid?: VroomColor;
lineColor?: VroomColor;
lineWidth?: number;
volumeRadius?: number;
wickBear?: VroomColor;
wickBull?: VroomColor;
wickRoundCap?: boolean;
wickWidth?: number;
};

Defined in: types/src/index.ts:66

Color overrides for the chart, passed via the theme prop.

Properties

accentBear?

optional accentBear?: VroomColor;

Defined in: types/src/index.ts:76

Generic down color for the price indicator, volume bars, and MACD histogram. Defaults to red; independent of bear.


accentBull?

optional accentBull?: VroomColor;

Defined in: types/src/index.ts:74

Generic up color for the price indicator, volume bars, and MACD histogram. Defaults to teal-green; independent of bull.


axisText?

optional axisText?: VroomColor;

Defined in: types/src/index.ts:96

Axis label text (price + time).


background?

optional background?: VroomColor;

Defined in: types/src/index.ts:68

Chart + axis-strip background.


bear?

optional bear?: VroomColor;

Defined in: types/src/index.ts:72

Down candle body fill. Wick and border default to this unless overridden.


borderBear?

optional borderBear?: VroomColor;

Defined in: types/src/index.ts:80

Down candle body border (1px, drawn inside the body so it never changes candle width). Omit or set to the bear fill color to hide it.


borderBull?

optional borderBull?: VroomColor;

Defined in: types/src/index.ts:78

Up candle body border (1px, drawn inside the body so it never changes candle width). Omit or set to the bull fill color to hide it.


bull?

optional bull?: VroomColor;

Defined in: types/src/index.ts:70

Up candle body fill. Wick and border default to this unless overridden.


candleRadius?

optional candleRadius?: number;

Defined in: types/src/index.ts:88

Corner radius (px) of candle bodies. Defaults to 0 (square).


crosshair?

optional crosshair?: VroomColor;

Defined in: types/src/index.ts:98

Crosshair dashed lines.


crosshairTarget?

optional crosshairTarget?: VroomColor;

Defined in: types/src/index.ts:100

Crosshair target — the hollow ring/dot at the intersection.


grid?

optional grid?: VroomColor;

Defined in: types/src/index.ts:94

Gridlines.


lineColor?

optional lineColor?: VroomColor;

Defined in: types/src/index.ts:102

Line-chart-mode close polyline color. Defaults to a neutral foreground.


lineWidth?

optional lineWidth?: number;

Defined in: types/src/index.ts:104

Line-chart-mode polyline stroke width in px. Defaults to 1.5.


volumeRadius?

optional volumeRadius?: number;

Defined in: types/src/index.ts:92

Corner radius (px) of the top of volume bars. Defaults to 0 (square).


wickBear?

optional wickBear?: VroomColor;

Defined in: types/src/index.ts:84

Down candle wick color. Defaults to the bear fill color.


wickBull?

optional wickBull?: VroomColor;

Defined in: types/src/index.ts:82

Up candle wick color. Defaults to the bull fill color.


wickRoundCap?

optional wickRoundCap?: boolean;

Defined in: types/src/index.ts:90

Round the wick end caps. Defaults to false.


wickWidth?

optional wickWidth?: number;

Defined in: types/src/index.ts:86

Wick stroke width in px (applies to both up and down wicks). Defaults to 1.