Skip to content

basalt / dashboard/src / brandingStyleSheet

Function: brandingStyleSheet() ​

> brandingStyleSheet(branding, selector?): string

Defined in: dashboard/src/branding.ts:121

Render the brand's custom properties as a :root { … } stylesheet string. Only entries that pass brandingCssVars validation appear; the selector itself is fixed by the caller (never derived from branding).

Parameters ​

branding ​

Branding

selector? ​

string = ':root'

Returns ​

string

Released under the MIT License.