Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Error on Postcss if I want to use custom classes with tailwind on Nuxt3 - Nuxt
N
Nuxt
•
12mo ago
•
6 replies
pedropcruz
Error on Postcss if I want to use custom classes with tailwind on Nuxt3
So I have a component that I
'm using tailwind
, some of the classes are customised
, and they
're already inside
@layer components
{
}
, so I can use them
:
something {
@apply text-title1;
}
something {
@apply text-title1;
}
for some reason
, everytime I refresh i got an error from posts
, but only when I hard refresh during development
[postcss
] The
text-title1
text-title1
class does not exist
. If
text-title1
text-title1
is a custom class
, make sure it is defined within a
@layer
@layer
directive
.
I
'm trying to use shadcn
-nuxt in nuxt3
.
Attached is my custom class in assets
/css
/tailwind
.css and also the nuxt config with the various modules
.
So what am I missing here
? Thanks
Nuxt
Join
Nuxt Community Chat Server
31,817
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
postcss error (tailwind)
N
Nuxt / ❓・help
11mo ago
Nuxt3 with Tailwind v4
N
Nuxt / ❓・help
9mo ago
@nuxt/ui issue with tailwind classes.
N
Nuxt / ❓・help
13mo ago