petros

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

Pal

Add it to the config and it should be bundled on restart phx.server

Also Liked

LostKobrakai

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

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

kevinschweikert

@MatijaL this is still true

See tailwindcss/packages/@tailwindcss-standalone/package.json at 3e53e2566990607c928c2306447e6bf5e199e78e · tailwindlabs/tailwindcss · GitHub

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

Where Next?

Popular in Questions Top

Kurisu
For example for a current url like http://localhost:4000/cosmetic/products?_utf8=✓&query=perfume&page=2, I would like to get: ...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36128 110
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 47930 226
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement