UI kit reference
theme/stylesheet
import { … } from 'zidane-ui'ui/src/theme/stylesheet.ts
Functions#
themeCssVarsFunction#
Every var the app writes for one theme at one contrast level.
Parameters
Returns
themeStylesheetFunction#
:root.dark { … } :root.light { … }. The class must be set before first
paint (an inline script reading the stored / OS preference).
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| options? | { contrast?: number; dark?: string | Theme; light?: string | Theme } | {} |
|
Returns
stringThe CSS text.