Apply host-provided CSS variables to the document
Sets CSS custom properties on the document root element. Variable names are normalized to include the -- prefix if missing.
--
Record of variable names to values
applyHostStyleVariables({ "primary-color": "#007bff", "--secondary-color": "#6c757d", "font-size-base": "16px",}); Copy
applyHostStyleVariables({ "primary-color": "#007bff", "--secondary-color": "#6c757d", "font-size-base": "16px",});
Apply host-provided CSS variables to the document
Sets CSS custom properties on the document root element. Variable names are normalized to include the
--prefix if missing.