Themes and palettes
Built-in chart themes
Section titled “Built-in chart themes”Pass theme: "light", theme: "dark", or theme: "auto" to createChart or applyOptions. The presets are exported as themes. Explicit color options always take precedence and survive theme changes.
| Option | Light | Dark |
|---|---|---|
layout.background |
#ffffff |
#0e1116 |
layout.textColor |
#4a5160 |
#aab2c0 |
grid.*.color |
#eceef2 |
#1c2230 |
priceScale / timeScale.borderColor |
#dcdfe5 |
#2a3140 |
crosshair.*.color |
#6b7280 |
#5c6578 |
crosshair.*.labelBackgroundColor |
#4a5160 |
#363d4c |
watermark.color |
rgba(74, 81, 96, 0.12) |
rgba(170, 178, 192, 0.1) |
sessions.breaks.color |
rgba(74, 81, 96, 0.4) |
rgba(170, 178, 192, 0.35) |
sessions.extendedHours.color |
rgba(74, 81, 96, 0.06) |
rgba(170, 178, 192, 0.06) |
Built-in mark palettes
Section titled “Built-in mark palettes”Heatmap and scatter series accept any built-in palette name from PALETTES, or an array of CSS color strings (#rgb, #rrggbb, #rrggbbaa, rgb(), rgba(), or transparent).
viridis
Section titled “viridis”Stops: #440154, #472d7b, #3b528b, #2c728e, #21918c, #28ae80, #5ec962, #addc30, #fde725
inferno
Section titled “inferno”Stops: #000004, #1b0c41, #4a0c6b, #781c6d, #a52c60, #cf4446, #ed6925, #fb9b06, #f7d13d, #fcffa4
Stops: #30123b, #4662d7, #36aaf9, #1ae4b6, #72fe5e, #c7ef34, #faba39, #f66b19, #cb2a04, #7a0403
Stops: #f7f7f7, #252525
Stops: rgba(41, 98, 255, 0), rgba(41, 98, 255, 0.55), #f6c343, #ef5350
blue-red
Section titled “blue-red”Stops: #2166ac, #92c5de, #f7f7f7, #f4a582, #b2182b