Skip to content

Dioxus 0.7-rc.1 Tailwind inclusion doesn't include plugins (DaisyUI)Β #4786

@BitVortex

Description

@BitVortex

Problem

In the migration from 0.6 to 0.7-rc.1, I noticed that the current method of including plugins from input.css does not work anymore. Tailwind CSS classes and adaptations are rendered, but DaisyUI-specific styles are not.

https://daisyui.com/docs/install/dioxus/ refers to the inclusion via tailwind.css and not input.css, but no noteable difference is observed. The dx serve Tailwind runner just copies the @plugin directives without expanding them.

Steps To Reproduce

Steps to reproduce the behavior:

Expected behavior

The manual watcher used in 0.6 was npx @tailwindcss/cli -i ./input.css -o ./assets/tailwind.css --watch, which correctly included the plugin. Either enable the built-in watcher to recognize plugins or allow to use the dedicated Tailwind watcher for non-standard configurations.

Rendering via Tailwind CLI to a separate CSS file (e.g. main.css) does work, but separates the workflow and creates duplicate Tailwind classes when also including the Dioxus file.

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