TailwindCSS classes don't seem to work on a brand-new 'mix phx.new' project, Phoenix v1.6.13

Phoenix 1.7 will have tailwind generators (Add new component based generators with tailwind by chrismccord · Pull Request #4955 · phoenixframework/phoenix · GitHub)

But for 1.6 you need to install it. There’s a guide in the tailwind docs or here: GitHub - phoenixframework/tailwind: An installer for tailwind

6 Likes