Skip to content

Utility classes can't be built with @apply and custom props #6321

@RedRiderX

Description

@RedRiderX

What version of Tailwind CSS are you using?

v3.0.0

What build tool (or framework if it abstracts the build tool) are you using?

PostCSS

What version of Node.js are you using?

v14.13.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction URL

https://play.tailwindcss.com/qm3e5FDSEr

Describe your issue

I've made utility classes that have both Tailwind tokens and custom css. But these classes could no longer be used with @apply after upgrading to v3.

This seems to be a regression from v2->v3.

I can mitigate the issue for now by duplicating some classes, but that's not a great solution.

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