0.0.2 • Published 3 years ago
@deuscx/unocss-preset-daisy v0.0.2
@deuscx/unocss-preset-daisy
The daisyui preset for UnoCSS.
Installation
npm install @deuscx/unocss-preset-daisy -D
import { defineConfig } from 'unocss'
import { presetDaisy } from '@deuscx/unocss-preset-daisy'
export default defineConfig({
presets: [
presetDaisy(),
],
})
Features
Component Code Split
Base on the Unocss Rule, the daisyui component import dynamically.
Theme
You can fully customize your theme property in your config, and UnoCSS will eventually deeply merge it to the default theme.
theme: {
themes: ['emerald']
}