A simple start project with an Elm using Tailwind CSS styles with purge included.
Because Tailwind CSS is nice and when use with Elm is a lot of power and beauty.
Ensure you have recent versions of Yarn and Elm installed and then run:
yarn
yarn dev
If that works you may open your favorite browser to http://localhost:5000/ and make changes to your code live.
If you want to export a final optimized version of your code you may run yarn build
.
Please take a look to:
package.json
postcss.config.js
tailwind.config.js
public/assets/pcss/styles.pcss
src/Main.elm
NOTE: Of course you can use NPM instead of Yarn, in that case you may change the
watch scripts from package.json
from yarn
calls to npm
calls.
This repo is initially published at https://github.com/csaltos/elm-tailwindcss/ and you may see a demo at https://csaltos.com/elm/tailwindcss/