Optimize CSS with SAT Solving

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • sat-css-tool

    Minify CSS files through refactoring

  • csso

    CSS minifier with structural optimizations

  • I may have skipped a step or 2 but that was basically it. I then used satcss' output with this tool

    https://css.github.io/csso/csso.html

    to beautify and further organize it

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • critters

    🦔 A Webpack plugin to inline your critical CSS and lazy-load the rest.

  • https://github.com/GoogleChromeLabs/critters Might be a good starting point. It’s designed to inline the css afterward so it’s more focused on extracting used css than removing unused.

  • uncss

    Remove unused styles from CSS

  • Check out: https://github.com/uncss/uncss

    I've only used it once but it did the job (NOTE: Plain HTML, plain CSS, no build pipeline. So YMMV)

  • purgecss

    Remove unused CSS

  • As a starting point, Tailwind used to use PurgeCSS [0] but I'm not sure what they use now.

    [0] https://purgecss.com

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts