Skip to content

Button, checkbox/radio and input field design inconsistency #2892

Answered by saadeghi
testtwf asked this question in Q&A
Discussion options

You must be logged in to vote
  corePlugins: {
    preflight: false,
  }

The problem is, you're disabling Tailwind CSS preflight. This not only breaks daisyUI components, it also breaks any Tailwind CSS class name that relies on those styles.

Here's how you can fix the borders if you really need to disable preflight:
https://play.tailwindcss.com/4qTpirURmO?file=css

@layer base {
  * {
    border-style: solid;
    border-width: 0;
  }
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@florianjea
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants