Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to use TailwindCSS in static_content?

    General Discussion
    2
    2
    97
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pwnz22 last edited by

      Hey!

      I want to add a static_content from admin panel in theme section. For example i have this HTML:

      <div class="mt-2 font-bold text-xl">A static content section</div>
      

      So the class mt-2 font-bold text-xl will not be purged by TW, because they are in th database. Is there any solution for this!?

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @pwnz22

        For Static Content, only native normal CSS will be used there if we add a tailwind there then the build is not able to get created for classes, and if some classes are already build and used then it will apply to the static content.

        Thanks & Regards

        1 Reply Last reply Reply Quote 0
        • First post
          Last post