Just in case someone stumbles upon this page like I did: if you have already generated a Phoenix application, and only later decided that you want to get rid of Tailwind, then you should do the following:
- remove
:tailwindfrommix.exs - remove commands like
tailwind.install,tailwind defaultfromaliasesinmix.exs(make sure to preserveesbuild-related commands, if you still plan to use that!) - remove
@import "tailwindcss/...fromapp.css - delete file
/assets/tailwind.config.js - remove block starting with
config :tailwindfromconfig.exs - remove
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]}fromwatchersinsidedev.exs - run
mix deps.clean --unlock --unused
Boom! Your app has been de-tailwindizied! Now all that remains is to remove god awful Tailwind classes in core_components.exs and fix layouts, but that is on you!




















