# \#tailwindcss

**URL:** https://forum.elixirforum.com/tag/tailwindcss/1046.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [No Tailwind binary for FreeBSD](https://forum.elixirforum.com/t/no-tailwind-binary-for-freebsd/73687)

<div class="topic-metadata">

**Author:** [@achenet](https://forum.elixirforum.com/u/achenet)\
**Replies:** 14\
**Last updated:** [September 27, 2026, 5:16pm UTC](https://forum.elixirforum.com/t/no-tailwind-binary-for-freebsd/73687 "2026-09-27T17:16:38Z")

</div>

Hello, I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind. However, when I launch mix phx.server, I get an error: \*\* (RuntimeError) The tailwind binary couldn’t be found at: https://github.com/t…

---

## [Tailwind CSS RISC-V Node Wrapper - a Linux RISC-V compatible Tailwind CSS v4 CLI distribution](https://forum.elixirforum.com/t/tailwind-css-risc-v-node-wrapper-a-linux-risc-v-compatible-tailwind-css-v4-cli-distribution/75815)

<div class="topic-metadata">

**Author:** [@arcanemachine](https://forum.elixirforum.com/u/arcanemachine)\
**Replies:** 1\
**Last updated:** [June 30, 2026, 6:22am UTC](https://forum.elixirforum.com/t/tailwind-css-risc-v-node-wrapper-a-linux-risc-v-compatible-tailwind-css-v4-cli-distribution/75815 "2026-06-30T06:22:23Z")

</div>

I (with the help of an LLM-based agent) put together a Node-backed Tailwind CSS v4.3.1 wrapper for Linux RISC-V GNU systems: This repo offers a prebuilt binary and a simple tailwindcss CLI wrapper. The binary is reprodu…

---

## [canonical\_tailwind - Tailwind class canonicalization via mix format](https://forum.elixirforum.com/t/canonical-tailwind-tailwind-class-canonicalization-via-mix-format/74726)

<div class="topic-metadata">

**Author:** [@aptinio](https://forum.elixirforum.com/u/aptinio)\
**Replies:** 15\
**Last updated:** [June 28, 2026, 3:09pm UTC](https://forum.elixirforum.com/t/canonical-tailwind-tailwind-class-canonicalization-via-mix-format/74726 "2026-06-28T15:09:54Z")

</div>

I just published canonical\_tailwind, a formatter plugin that canonicalizes Tailwind CSS utility classes in HEEx templates. - mr-4 custom-btn flex ml-\[1rem\] flex + custom-btn mx-4 flex It delegates to the tailwindcss CL…

---

## [TailwindFormatter - Opinionated tailwind class sorter for HEEx templates](https://forum.elixirforum.com/t/tailwindformatter-opinionated-tailwind-class-sorter-for-heex-templates/50410)

<div class="topic-metadata">

**Author:** [@100phlecs](https://forum.elixirforum.com/u/100phlecs)\
**Replies:** 10\
**Last updated:** [June 8, 2026, 4:02pm UTC](https://forum.elixirforum.com/t/tailwindformatter-opinionated-tailwind-class-sorter-for-heex-templates/50410 "2026-06-08T16:02:49Z")

</div>

Here’s the repo link: GitHub - 100phlecs/tailwind\_formatter: Sorts tailwind classes within elixir projects · GitHub The idea is to have a consistent ordering of tailwind classes so it is easier to read through. The sol…

---

## [Working with Phoenix on OpenBSD (tailwind, esbuild)](https://forum.elixirforum.com/t/working-with-phoenix-on-openbsd-tailwind-esbuild/66924)

<div class="topic-metadata">

**Author:** [@VlkrS](https://forum.elixirforum.com/u/VlkrS)\
**Replies:** 8\
**Last updated:** [May 29, 2026, 8:27am UTC](https://forum.elixirforum.com/t/working-with-phoenix-on-openbsd-tailwind-esbuild/66924 "2026-05-29T08:27:38Z")

</div>

Note: This is a HOWTO, not a question. I hope this is an appropriate place to share this, so it can be found by others who might run into problems getting Phoenix to work fully on OpenBSD. Recent versions of Phoenix are…

---

## ["Petal Components" package - a set of Tailwind styled components written in HEEX](https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633)

<div class="topic-metadata">

**Author:** [@mplatts](https://forum.elixirforum.com/u/mplatts)\
**Replies:** 67\
**Last updated:** [May 14, 2026, 7:08am UTC](https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633 "2026-05-14T07:08:45Z")

</div>

With HEEX released we decided to start a components library using Tailwind CSS - check it out here: Petal Components. We also have a boilerplate project if you want to get up and running quickly - it’s just a fresh inst…

---

## [DaisyUI modal in phoenix 1.8 - code example](https://forum.elixirforum.com/t/daisyui-modal-in-phoenix-1-8-code-example/71951)

<div class="topic-metadata">

**Author:** [@ppff01](https://forum.elixirforum.com/u/ppff01)\
**Replies:** 16\
**Last updated:** [April 23, 2026, 4:02am UTC](https://forum.elixirforum.com/t/daisyui-modal-in-phoenix-1-8-code-example/71951 "2026-04-23T04:02:07Z")

</div>

Hi there, I’ve been testing Phoenix 1.8 a lot lately and noticed the modal component from 1.7 had disappeared. Since we now have DaisyUI which comes with a Modal component, I figured I’d try to use it. It’s not that eas…

---

## [Anyone not using Tailwind in a Phoenix project?](https://forum.elixirforum.com/t/anyone-not-using-tailwind-in-a-phoenix-project/72401)

<div class="topic-metadata">

**Author:** [@AstonJ](https://forum.elixirforum.com/u/AstonJ)\
**Replies:** 88\
**Last updated:** [January 24, 2026, 9:04am UTC](https://forum.elixirforum.com/t/anyone-not-using-tailwind-in-a-phoenix-project/72401 "2026-01-24T09:04:57Z")

</div>

Curious whether there’s anyone here not using Tailwind - if you’re not, what are you using instead and was there any specific reason why you decided against Tailwind?

---

## [Theme switcher: "system" theme](https://forum.elixirforum.com/t/theme-switcher-system-theme/73876)

<div class="topic-metadata">

**Author:** [@lcabrini](https://forum.elixirforum.com/u/lcabrini)\
**Replies:** 3\
**Last updated:** [January 5, 2026, 2:12pm UTC](https://forum.elixirforum.com/t/theme-switcher-system-theme/73876 "2026-01-05T14:12:12Z")

</div>

I tried setting background color by theme using bg-blue-500 dark:bg-yellow-300 and that worked fine. However, the system/auto theme in the theme switcher (the one that is supposed to use the desktop theme) uses bg-blue-5…

---

## [Do you prefer to use Tailwind in your Phoenix projects? (Poll)](https://forum.elixirforum.com/t/do-you-prefer-to-use-tailwind-in-your-phoenix-projects-poll/72408)

<div class="topic-metadata">

**Author:** [@arcanemachine](https://forum.elixirforum.com/u/arcanemachine)\
**Replies:** 50\
**Last updated:** [September 14, 2025, 5:57pm UTC](https://forum.elixirforum.com/t/do-you-prefer-to-use-tailwind-in-your-phoenix-projects-poll/72408 "2025-09-14T17:57:27Z")

</div>

This was the first question on my mind when I saw this other thread by @AstonJ. I’m curious how many Phoenix users actually like using Tailwind. Do you prefer to use Tailwind in your Phoenix projects? poll

---

## [What do you think of Tailwind + daisyUI? (Poll)](https://forum.elixirforum.com/t/what-do-you-think-of-tailwind-daisyui-poll/72500)

<div class="topic-metadata">

**Author:** [@arcanemachine](https://forum.elixirforum.com/u/arcanemachine)\
**Replies:** 9\
**Last updated:** [September 14, 2025, 5:09pm UTC](https://forum.elixirforum.com/t/what-do-you-think-of-tailwind-daisyui-poll/72500 "2025-09-14T17:09:31Z")

</div>

Now that the results are in from the Tailwind-only poll, what do you think of the combination of Tailwind and daisyUI? poll

---

## [Phoenix 1.8 upgrade Tailwind issues](https://forum.elixirforum.com/t/phoenix-1-8-upgrade-tailwind-issues/72134)

<div class="topic-metadata">

**Author:** [@satb](https://forum.elixirforum.com/u/satb)\
**Replies:** 6\
**Last updated:** [August 17, 2025, 7:54pm UTC](https://forum.elixirforum.com/t/phoenix-1-8-upgrade-tailwind-issues/72134 "2025-08-17T19:54:03Z")

</div>

While upgrading an older phonix 1.7 app to the newer phoenix 1.8, I am running into an issue with the new tailwind css config mix assets.build 13:45:27.039 \[debug\] Downloading tailwind from https://github.com/tailwindl…

---

## [HeroIcons component not working in Phoenix 1.8.0 with Tailwind CSS 4.1.10](https://forum.elixirforum.com/t/heroicons-component-not-working-in-phoenix-1-8-0-with-tailwind-css-4-1-10/72008)

<div class="topic-metadata">

**Author:** [@pupdogg](https://forum.elixirforum.com/u/pupdogg)\
**Replies:** 1\
**Last updated:** [August 12, 2025, 4:21pm UTC](https://forum.elixirforum.com/t/heroicons-component-not-working-in-phoenix-1-8-0-with-tailwind-css-4-1-10/72008 "2025-08-12T16:21:17Z")

</div>

I’m going through Pragmatic Studio’s Full-Stack Phoenix course, but the HeroIcons aren’t working for me. Has anyone else run into this issue? Tailwind CSS classes seem to be applying just fine. Below are my config.exs an…

---

## [Porting TailwindPlus's Catalyst into Phoenix 1.8.0-rc.4](https://forum.elixirforum.com/t/porting-tailwindpluss-catalyst-into-phoenix-1-8-0-rc-4/71928)

<div class="topic-metadata">

**Author:** [@lessless](https://forum.elixirforum.com/u/lessless)\
**Replies:** 0\
**Last updated:** [August 1, 2025, 11:28pm UTC](https://forum.elixirforum.com/t/porting-tailwindpluss-catalyst-into-phoenix-1-8-0-rc-4/71928 "2025-08-01T23:28:01Z")

</div>

Hi, I copied button’s html markup onto my live view and colours looks different and hover effect doesn’t work. You can see on the screenshot that markup yielded exactly the same colours I deleted everything related…

---

## [How to Prevent Duplicate CSS When Merging Tailwind 4 Output at Build and Runtime?](https://forum.elixirforum.com/t/how-to-prevent-duplicate-css-when-merging-tailwind-4-output-at-build-and-runtime/71689)

<div class="topic-metadata">

**Author:** [@shahryarjb](https://forum.elixirforum.com/u/shahryarjb)\
**Replies:** 1\
**Last updated:** [July 14, 2025, 8:24pm UTC](https://forum.elixirforum.com/t/how-to-prevent-duplicate-css-when-merging-tailwind-4-output-at-build-and-runtime/71689 "2025-07-14T20:24:10Z")

</div>

Hi. Recently, I’ve been building a page builder in Phoenix that runs in the runtime environment and actively accepts Tailwind code (Runtime compiling module and assets). I’ve recently been working on implementing a syst…

---

## [HOWTO: Adding Material Design Icons to tailwind in a Phoenix project](https://forum.elixirforum.com/t/howto-adding-material-design-icons-to-tailwind-in-a-phoenix-project/71650)

<div class="topic-metadata">

**Author:** [@ponychicken](https://forum.elixirforum.com/u/ponychicken)\
**Replies:** 0\
**Last updated:** [July 10, 2025, 2:22pm UTC](https://forum.elixirforum.com/t/howto-adding-material-design-icons-to-tailwind-in-a-phoenix-project/71650 "2025-07-10T14:22:51Z")

</div>

Hello! Hero Icons are nice, but sometimes you might need an icon set with a larger set. Material Design Icons are visually quite compatible (imo). To add them efficiently to your Phoenix project without loading the wh…

---

## [No utility classes were detected in your source files](https://forum.elixirforum.com/t/no-utility-classes-were-detected-in-your-source-files/71540)

<div class="topic-metadata">

**Author:** [@NaN](https://forum.elixirforum.com/u/NaN)\
**Replies:** 0\
**Last updated:** [July 2, 2025, 6:12pm UTC](https://forum.elixirforum.com/t/no-utility-classes-were-detected-in-your-source-files/71540 "2025-07-02T18:12:48Z")

</div>

I keep getting this message on compile warn - No utility classes were detected in your source files. If this is unexpected, double-check the \`content\` option in your Tailwind CSS configuration. warn - https://tailwindcs…

---

## [How to customize live view template](https://forum.elixirforum.com/t/how-to-customize-live-view-template/71246)

<div class="topic-metadata">

**Author:** [@ariandanim](https://forum.elixirforum.com/u/ariandanim)\
**Replies:** 1\
**Last updated:** [June 12, 2025, 10:06am UTC](https://forum.elixirforum.com/t/how-to-customize-live-view-template/71246 "2025-06-12T10:06:20Z")

</div>

I tried make page live view of inventory … mix phx.gen.live Inventory Item items name:string brand:string quantity:integer unit:string price:integer \* creating lib/stock\_web/live/item\_live/show.ex \* creating lib/stock\_…

---

## [How can I install @tailwindcss/typography to latest Phoenix?](https://forum.elixirforum.com/t/how-can-i-install-tailwindcss-typography-to-latest-phoenix/62687)

<div class="topic-metadata">

**Author:** [@petros](https://forum.elixirforum.com/u/petros)\
**Replies:** 6\
**Last updated:** [May 28, 2025, 3:10pm UTC](https://forum.elixirforum.com/t/how-can-i-install-tailwindcss-typography-to-latest-phoenix/62687 "2025-05-28T15:10:48Z")

</div>

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?

---

## [Enable tailwind dark: and light: mode prefix](https://forum.elixirforum.com/t/enable-tailwind-dark-and-light-mode-prefix/70780)

<div class="topic-metadata">

**Author:** [@mythicalprogrammer](https://forum.elixirforum.com/u/mythicalprogrammer)\
**Replies:** 1\
**Last updated:** [May 8, 2025, 4:03pm UTC](https://forum.elixirforum.com/t/enable-tailwind-dark-and-light-mode-prefix/70780 "2025-05-08T16:03:32Z")

</div>

Hello, since the 1.8rc0 was out, DaisyUI was noted to have the benefit of light and dark mode. From the elixir subreddit, it seem a few people (two) realize the dark and light class prefix is not enabled by default and …

---

## [Any suggestions on a HTML/CSS/JS TreeView that fits into the LiveView environment](https://forum.elixirforum.com/t/any-suggestions-on-a-html-css-js-treeview-that-fits-into-the-liveview-environment/68949)

<div class="topic-metadata">

**Author:** [@MarthinL](https://forum.elixirforum.com/u/MarthinL)\
**Replies:** 29\
**Last updated:** [April 30, 2025, 9:37am UTC](https://forum.elixirforum.com/t/any-suggestions-on-a-html-css-js-treeview-that-fits-into-the-liveview-environment/68949 "2025-04-30T09:37:51Z")

</div>

Hi, I have some hierarchical data, think topics with recursive sub-topics, or folders and files, or an inbox with folders or, well, I think you get what I’m saying, which I would ideally like to show as a tree. (Actuall…

---

## [Mix tailwind - 4.0.0-beta.1 support](https://forum.elixirforum.com/t/mix-tailwind-4-0-0-beta-1-support/67636)

<div class="topic-metadata">

**Author:** [@tcoopman](https://forum.elixirforum.com/u/tcoopman)\
**Replies:** 21\
**Last updated:** [April 26, 2025, 2:23am UTC](https://forum.elixirforum.com/t/mix-tailwind-4-0-0-beta-1-support/67636 "2025-04-26T02:23:10Z")

</div>

I thought I’d try to install tailwind 4.0.0-beta.1 (Release v4.0.0-beta.1 · tailwindlabs/tailwindcss · GitHub) that was released today and see how far I got. Tailwind 4 has some big changes so I don’t expect this to wor…

---

## [Error: Cannot apply unknown utility class](https://forum.elixirforum.com/t/error-cannot-apply-unknown-utility-class/70549)

<div class="topic-metadata">

**Author:** [@saleyn](https://forum.elixirforum.com/u/saleyn)\
**Replies:** 1\
**Last updated:** [April 19, 2025, 8:48pm UTC](https://forum.elixirforum.com/t/error-cannot-apply-unknown-utility-class/70549 "2025-04-19T20:48:27Z")

</div>

After upgrading from Tailwindcss v3.3 to v4.1, I am getting the following error: $ mix assets.build ... Generated utilx app Error: Cannot apply unknown utility class: checked:border-brand-500 The assets/css/app.css con…

---

## [Yatm - Yet Another Tailwind Merge](https://forum.elixirforum.com/t/yatm-yet-another-tailwind-merge/70043)

<div class="topic-metadata">

**Author:** [@raulrpearson](https://forum.elixirforum.com/u/raulrpearson)\
**Replies:** 0\
**Last updated:** [March 20, 2025, 8:31am UTC](https://forum.elixirforum.com/t/yatm-yet-another-tailwind-merge/70043 "2025-03-20T08:31:55Z")

</div>

Yatm provides a Tailwind class merging utility to resolve conflicts, i.e. classes targeting the same CSS property. When using Tailwind with component abstractions, authors usually provide some styling out of the box and…

---

## [Moving phoenix\_storybook to Tailwind 4.0](https://forum.elixirforum.com/t/moving-phoenix-storybook-to-tailwind-4-0/69645)

<div class="topic-metadata">

**Author:** [@cblavier](https://forum.elixirforum.com/u/cblavier)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 4:35pm UTC](https://forum.elixirforum.com/t/moving-phoenix-storybook-to-tailwind-4-0/69645 "2025-02-26T16:35:02Z")

</div>

I started working on moving phoenix\_storybook to Tailwind 4.0 and I’m struggling :exploding\_head: First, it’s important to mention that the Tailwind version used in the Storybook and the version used in the hosting appl…

---

## [Turboprop - Toolkit to create accessible component libraries](https://forum.elixirforum.com/t/turboprop-toolkit-to-create-accessible-component-libraries/64228)

<div class="topic-metadata">

**Author:** [@cschmatzler](https://forum.elixirforum.com/u/cschmatzler)\
**Replies:** 26\
**Last updated:** [February 14, 2025, 5:56am UTC](https://forum.elixirforum.com/t/turboprop-toolkit-to-create-accessible-component-libraries/64228 "2025-02-14T05:56:01Z")

</div>

Hey all! There’s been a lot of conversation lately both around server/client-side interactivity and a bunch of component libraries popping up for Phoenix. That’s great - and if we’re honest, many of the components that …

---

## [Advanced Tailwind tricks inspired by Shadcn](https://forum.elixirforum.com/t/advanced-tailwind-tricks-inspired-by-shadcn/69368)

<div class="topic-metadata">

**Author:** [@RicoTrevisan](https://forum.elixirforum.com/u/RicoTrevisan)\
**Replies:** 1\
**Last updated:** [February 12, 2025, 5:21pm UTC](https://forum.elixirforum.com/t/advanced-tailwind-tricks-inspired-by-shadcn/69368 "2025-02-12T17:21:46Z")

</div>

These tips just solved a big problem for me, figured I would share it here: I was struggling to make this work: ~H""" \<div class={"ml-\[#{@level / 2}rem\]"} \</div\> """ But this worked: ~H""" \<div cla…

---

## [Rendering multiple LiveView Streams with Infinite Scroll based on viewport size](https://forum.elixirforum.com/t/rendering-multiple-liveview-streams-with-infinite-scroll-based-on-viewport-size/56913)

<div class="topic-metadata">

**Author:** [@zporter](https://forum.elixirforum.com/u/zporter)\
**Replies:** 2\
**Last updated:** [February 10, 2025, 7:10am UTC](https://forum.elixirforum.com/t/rendering-multiple-liveview-streams-with-infinite-scroll-based-on-viewport-size/56913 "2025-02-10T07:10:36Z")

</div>

I have a LiveView page in which I would like to render a stream of items differently depending on viewport size. Currently, I use Tailwind classes like hidden and lg:inline-table to render a \<table\> on wider viewports an…

---

## [Hex package for Heroicons used in default Phoenix apps](https://forum.elixirforum.com/t/hex-package-for-heroicons-used-in-default-phoenix-apps/62496)

<div class="topic-metadata">

**Author:** [@altdsoy](https://forum.elixirforum.com/u/altdsoy)\
**Replies:** 2\
**Last updated:** [January 30, 2025, 1:35pm UTC](https://forum.elixirforum.com/t/hex-package-for-heroicons-used-in-default-phoenix-apps/62496 "2025-01-30T13:35:50Z")

</div>

Hi there :wave:, I hope everyone is doing well… Tl;Dr: Is there a use case to have Heroicons from an actual hex.pm package instead of Github? Right now, Heroicons is integrated in Phoenix in the following way: A gi…

---

## [Tailwind CSS classes are not loaded in production release deployments (docker/fly.io)](https://forum.elixirforum.com/t/tailwind-css-classes-are-not-loaded-in-production-release-deployments-docker-fly-io/49359)

<div class="topic-metadata">

**Author:** [@sreenadh\_tc](https://forum.elixirforum.com/u/sreenadh_tc)\
**Replies:** 13\
**Last updated:** [November 13, 2024, 11:46pm UTC](https://forum.elixirforum.com/t/tailwind-css-classes-are-not-loaded-in-production-release-deployments-docker-fly-io/49359 "2024-11-13T23:46:08Z")

</div>

I am trying to migrate our app (that uses Tailwindcss, and React on the frontend) from Phoenix v1.5 to v1.6.11 Everything works perfectly on local, but the CSS classes are not being loaded in production deployments. ▶ d…

[Next page](https://forum.elixirforum.com/tag/tailwindcss/1046.md?match_all_tags=true&page=1&tags%5B%5D=tailwindcss)
