@tadashi/daisy
v2.0.0
Published
Generate the theme's vars for use with DaisyUI library >= 4.
Downloads
12
Readme
Daisy
Generate the theme's vars for use with DaisyUI library >= 4.
Install
$ npm i @tadashi/daisy
Usage
<script type="module">
import {convertColorFormat, updateCss} from 'https://unpkg.com/@tadashi/daisy@{version}/src/daisy.js'
const props = convertColorFormat({
'primary': 'hsl(56deg 89% 78%)',
'secondary': '#15106d',
'accent': '#ea0036',
'neutral': '#1d1d30',
'base-100': '#dfe5ec',
'info': '#97a7f7',
'success': '#3de189',
'warning': '#fc9936',
'error': '#e74671'
})
updateCss('[data-theme="punk"]', props)
</script>
Team
Donate ❤️
- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4
License
MIT © Thiago Lagden