# TailwindCSS for Prolog

**URL:** <https://swi-prolog.discourse.group/t/tailwindcss-for-prolog/4151>\
**Category:** Pack\
**Created:** [July 9, 2021, 5:23pm UTC](https://swi-prolog.discourse.group/t/tailwindcss-for-prolog/4151 "2021-07-09T17:23:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesnvc](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jamesnvc/32/14_2.png) [@jamesnvc](https://swi-prolog.discourse.group/u/jamesnvc)\
**Post date:** [July 9, 2021, 5:23pm UTC](https://swi-prolog.discourse.group/t/tailwindcss-for-prolog/4151/1 "2021-07-09T17:23:50Z")

</div>

I’ve just spun out the first version of [a little Prolog pack](https://github.com/jamesnvc/tailwind_pl) for using [Tailwind-style](https://tailwindcss.com) CSS generation. It’s based on the Clojure library [Girouette](https://github.com/green-coder/girouette) and watches your code for atoms or strings that are valid Tailwind CSS classes, generating a CSS file that contains only the selectors you use.

This is a building block for a Prolog framework for making SPAs that I hope to release in the near future, but this is functional enough now that I wanted to release it separately. Hopefully this is useful to someone else too!
