dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

dx doesn't respect tailwind_input when autodetecting v3/v4

Open LilahTovMoon opened this issue 1 month ago • 0 comments

Problem

TailwindCli looks for tailwind.css, tailwind.config.js, or tailwind.config.ts in the manifest_dir. If you're using a custom tailwind_input in the Dioxus.toml, it will see no tailwind.css and not compile your custom tailwind CSS file.

Steps To Reproduce

Steps to reproduce the behavior:

  • dx new
  • mv tailwind.css tw.css
  • edit Dioxus.toml to add tailwind_input = "tw.css" under [application]
  • dx serve --web
  • look at assets/tailwind.css and see that it's empty since it didn't compile the contents of tw.css into it.

Expected behavior

It should determine that it's using Tailwind v4 based on the location specified with tailwind_input

Environment:

  • Dioxus version: 0.72
  • Rust version: 1.92.0 (ded5c06cf 2025-12-08)
  • OS info: macOS 26.2 (Tahoe)
  • App platform: web

PR

https://github.com/DioxusLabs/dioxus/pull/5151

LilahTovMoon avatar Dec 28 '25 21:12 LilahTovMoon