Is there a way to have the font in vega auto adjust when the theme is changed in Kibana (light/dark modes)? I've tried the code below but it's not working. Basically, looking for white font when in dark mode and black font when in light mode.
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"signals": [
{
"name": "isLightMode",
"value": false,
"update": "'#FFFFFF' === '#FFFFFF'"
},
{
"name": "textColor",
"update": "isLightMode ? 'black' : 'white'"
}
],
"marks": [
{
"type": "text",
"encode": {
"enter": {
"fill": {"signal": "textColor"},
"fontWeight": {"value": "Bold"},
"fontSize": {"value": 15},
"text": {"value": "Event List"},
"x": {"value": 10},
"y": {"value": 20}
}
}
}
]
}