Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

applyThemeToCSS

Source

Apply theme to CSS variables

applyThemeToCSS(theme: Theme, root?: HTMLElement): void

Parameters

Parameter Type Description Default
theme Theme No additional description.
root HTMLElement No additional description. document.documentElement

Returns

void

libs/@shumoku/core/src/themes/utils.ts:32