daisyui
daisyui copied to clipboard
provide safelists for components
concatenated class names will not be detected by tailwind according to the document. It would be much more convenient to have some pre-defined safelists for users to import.
// safelist
export const button = [
{
pattern: /btn-.+/
}
]
// tailwind.config.js
const { button } = require('daisyui/config/safelist')
module.exports = {
safelist: [
...button,
]
}