@layer Directive doesn't work
See original GitHub issueRelated to #112 the @layer
directive should work.
I’m using Vite with Vue and this directive doesn’t work properly with either a custom css file or css in a component.
This feature is important. For my case, for example, I would like to customize the forms plugin.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Tailwind CSS @layer directive does not work - Stack Overflow
I'm trying to set base styles for my project but @layer directive does not seem to work. My package.json : { "name": "tailwind-base-layer", ......
Read more >Custom class need to be declared inside layer directive #5989
I am getting an error randomly on my NextJS application where it gives a message telling me I have to declare a custom...
Read more >Functions & Directives - Tailwind CSS
Use the @layer directive to tell Tailwind which “bucket” a set of custom styles belong to. Valid layers are base , components ,...
Read more >Organize your CSS in the Tailwind style with @layer directive
Tailwind provides a @layer directive to help you better organize your CSS. This post is a detailed breakdown of the directive for my...
Read more >the `@apply` class does not exist. if `@apply` is a custom ...
The text-paragraph class does not exist. If text-paragraph is a custom class, make sure it is defined within a @layer directive. E:/XAMPP/htdocs ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/windicss/vite-plugin-windicss/pull/138
A possible workaround could be the creation of a plugin in your
tailwind.config.js
Even Auto-Inferred Variables work! (
theme("padding['2.5']")
) But unfortunately @apply does not work. (As shown here: https://play.tailwindcss.com/gPsuO3Kx7k?file=config)I think that’s okay for some minor modifications.