Skip to content

Use plugins with tailwind v4 #502

Closed
Closed
@bogdan

Description

@bogdan

I didn't find any way of adding a plugin in v4 setup.
Adding package.json doesn't help:

{
  "name": "realphotos-marketplace",
  "packageManager": "yarn@4.5.2",
  "dependencies": {
    "daisyui": "5.0.0-beta.8"
  }
}
@import "tailwindcss";
@plugin "daisyui";
=> Booting Puma
=> Rails 8.0.1 application starting in development
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Puma version: 6.6.0 ("Return to Forever")
* Ruby version: ruby 3.3.4 (2024-07-09 revision be1089c8ec) [arm64-darwin23]
*  Min threads: 3
*  Max threads: 3
*  Environment: development
*          PID: 25858
* Listening on http://127.0.0.1:3000
* Listening on http://[::1]:3000
Use Ctrl-C to stop
Error: Can't resolve 'daisyui' in '/Users/bogdan/makabu/brad/realphotos-marketplace/app/assets/tailwind'
Detected tailwind has gone away, stopping Puma...
- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2025-02-20 11:30:39 +0100 ===

Please suggest the doc on how to use plugins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions