Skip to content

Some custom utilities not working #11283

@Say-M

Description

@Say-M

Node: v18.15.0
Next.js: 13.4.0
tailwindcss: v3.3.2
postcss: 8.4.23
Browser: Chrome, Firefox
OS: Windows

I created some custom utilities using tailwind @layer
but some of them are not compiling.
For example:
I have .btn utility it compiling properly
but when I define .btn-sm/.btn-lg utilities then its not compiling.
but instead of .btn-sm/.btn-lg class if I write .sm/.lg then its compiling properly.

here is using .btn-sm class its not compiling
image
image

here is using only .sm class its compiling
image
image

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