Software Alternatives, Accelerators & Startups

Removing unused CSS in a Django template-based project

Purgecss Bootstrap Bulma
  1. Easily remove unused CSS
    Pricing:
    • Open Source
    When I searched online I couldn't find an "industry standard" solution to this problem. What I ended up doing was using the popular tool PurgeCSS along with a quick Python script to generate the appropriate command. What the PurgeCSS tool does is search for all your HTML files, gather all the CSS classes used, and then "purge" all the unused ones from the CSS file. You just need to declare all the HTML files you have.

    #Developer Tools #Design Tools #Development 33 social mentions

  2. Simple and flexible HTML, CSS, and JS for popular UI components and interactions
    Pricing:
    • Open Source
    This is almost a trivial task if you are working with a modern client-side JS framework. But if you are developing a web app using Django's template language with some CSS library (such as Bulma or Bootstrap), and potentially using HTMx for more dynamic behavior, this is not an easily solved problem.

    #Developer Tools #Design Tools #Web Frameworks 329 social mentions

  3. 3
    Bulma is an open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free.
    Pricing:
    • Open Source
    This is almost a trivial task if you are working with a modern client-side JS framework. But if you are developing a web app using Django's template language with some CSS library (such as Bulma or Bootstrap), and potentially using HTMx for more dynamic behavior, this is not an easily solved problem.

    #CSS Framework #Development Tools #Design Tools 109 social mentions

Discuss: Removing unused CSS in a Django template-based project

Log in or Post with