@pie-players/pie-theme-daisyui
v0.3.67
Published
DaisyUI token bridge for PIE theme variables
Readme
@pie-players/pie-theme-daisyui
Bridge DaisyUI theme tokens to PIE --pie-* variables.
When using @pie-players/pie-theme, Daisy token translation is applied automatically by the built-in Daisy provider in pie-theme.
This package is token-focused: it maps DaisyUI CSS variables to PIE theme variables only.
Shared pie-* component class styling (for example debugger overlays or answer-eliminator classes) belongs in @pie-players/pie-theme/components.css.
Usage
import "@pie-players/pie-theme-daisyui/bridge.css";Or apply variables with JavaScript:
import { applyDaisyThemeToElement } from "@pie-players/pie-theme-daisyui";You can also read resolved Daisy tokens from an element and map them:
import {
readDaisyThemeTokensFromElement,
mapResolvedDaisyThemeToPieVariables
} from "@pie-players/pie-theme-daisyui";There is no provider adapter to register. @pie-players/pie-theme registers one
under the id daisyui at import time; both resolve the same table, so a second
adapter under that id could only overwrite the built-in with a clone of itself.
