Skip to content

dx doesn't respect tailwind_input when autodetecting v3/v4 #5152

@LilahTovMoon

Description

@LilahTovMoon

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

#5151

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions