Generate the theme's vars for use with DaisyUI library >= 4.
$ npm i @tadashi/daisy
<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>
- BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4
MIT © Thiago Lagden