Questions tagged [tailwind-ui]

Beautiful UI components, crafted with Tailwind CSS. By the makers of Tailwind CSS.

249 questions
5
votes
4 answers

Tailwind bg opacity

I was curious about the CSS behind tailwinds bg opacity. I could only find 'opacity' in pure CSS but that affects everything rather than just the background. Could somebody please explain this?
r1a2k3i4b
  • 157
  • 4
  • 6
4
votes
3 answers

Applying an effect to multiple pseudo classes at once in tailwind

I am looking for a good shorthand to apply the same effect to multiple pseudo classes in tailwind. For example, I may want to apply a blue background to both :hover and :focus states on a div. Currently I'd have to write the following:
PeteG
  • 421
  • 3
  • 17
4
votes
3 answers

How to set input full width on mobile devices in tailwind?

I have a input element. It takes 50% of available parent width. Property w-6/12. How to set width full for mobile devices? Code is: