Home > Back-end >  Drying up identical tailwind classes
Drying up identical tailwind classes

Time:07-28

In my app i have a lot of form inputs that often use identical styling with endless classes that make my eyes bleed. Tailwind encourages to just repeat the classes but i feel like that violates dry principles and is bloating up the code. Im searching for a way to centralize and reuse Tailwind classes

Example

 <div >
      <div >
        <p >           
  • Related