I lazily didn't want to refactor my CSS myself, so after a failed attempt using ChatGPT for this, I found this CSS sat solver tool.
Just a note on macOS I managed to get this work by:
- Editing the pyproject.toml and changing
- lxml version to 5.1.0
- python to ^3.8
- then running poetry install
- then, also in the repo, running cd satcss && ln -s $(which z3) z3
- then poetry run satcss --help
I may have skipped a step or 2 but that was basically it. I then used satcss' output with this toolhttps://css.github.io/csso/csso.html
to beautify and further organize it