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
:tailwind
frommix.exs
- remove commands like
tailwind.install
,tailwind default
fromaliases
inmix.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 :tailwind
fromconfig.exs
- remove
tailwind: {Tailwind, :install_and_run, [:default, ~w(--watch)]}
fromwatchers
insidedev.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!