daisyui icon indicating copy to clipboard operation
daisyui copied to clipboard

provide safelists for components

Open arily opened this issue 3 years ago โ€ข 0 comments

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,
  ]
}

arily avatar Sep 19 '22 11:09 arily