Wocart

@wocart/theme v4.1.0


@wocart/theme / index / colorSchemeCss

Function: colorSchemeCss()

colorSchemeCss(schemes): string

The store's color schemes as CSS: each scheme's roles as custom properties (--wc-color-background, --wc-color-button-text, …) with its background and text applied, on .wc-scheme-<id>. A scheme with a malformed id or color is left out whole.

Parameters

schemes

readonly ColorScheme[]

Returns

string