petros
How can I install @tailwindcss/typography to latest Phoenix?
I think I may be mixing things, but how do I install Tailwind plugins? Is it just a matter of adding the require statement to tailwind.config.js? Do I still need to use npm to first install the plugin?
Marked As Solved
Pal
Add it to the config and it should be bundled on restart phx.server
Also Liked
LostKobrakai
The used tailwind cli comes with all official plugins, which you can just add to the config. For third party plugins you‘d need to figure out how to install the plugin as well as tailwind itself, because the cli afaik cannot integrate with those third party plugins for being a precompiled binary.
MarcusRiemer
For me the proposed syntax did not quite work, but required double quotes: @plugin "@tailwindcss/typography"; After that everything was golden with the 1.8.0 Phoenix RC, Tailwind 4 and Daisy UI.
kevinschweikert
@MatijaL this is still true
That means, that if you’re using the standalone CLI you can just @plugin @tailwindcss/typography; in your CSS file where you do your @import 'tailwindcss';. If you’re using the NPM installed version you have to add it as a package dependecy and then import it in the same way
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








