Custom hook to interface with CSS custom properties.
const [get, set] = useCssVar('--color-bg') get() // 'papayawhip' set('rebeccapurple')
Name of CSS property.
DOM element on which the CSS property will be looked up/set on.
Tuple with a getter and setter.
Generated using TypeDoc
Custom hook to interface with CSS custom properties.
const [get, set] = useCssVar('--color-bg') get() // 'papayawhip' set('rebeccapurple')