How branding is applied
When a widget loads, it reads theworkspace config value and fetches your workspace’s branding from the Tallysight API. The API response contains your light and dark color palettes, which the widget applies via CSS variables inside its Shadow DOM.
You pass your workspace slug to widgets using the data-tallysight-widget-config-workspace attribute on the widget element. Or, use data-tallysight-defaults-widget-config-workspace on the script tag to set it for every widget on the page at once.
Branding properties
Each workspace defines 24 color properties — 12 for light mode and 12 for dark mode. The properties are grouped into three categories: Border colors
Background colors
Text colors
Each property exists for both
light and dark themes.
Setting your workspace slug
The recommended way to apply your workspace to all widgets on a page is to setdata-tallysight-defaults-widget-config-workspace on the script tag:
Brand precedence
If you need a single widget to use a different workspace, setdata-tallysight-widget-config-workspace directly on that widget element. A per-widget value always takes precedence over the script-level default.