-
What version of Tailwind CSS are you using? For example: 4.1.10 What build tool (or framework if it abstracts the build tool) are you using? {
"dependencies": {
"next": "15.3.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/oxide-darwin-x64": "^4.1.9",
"@tailwindcss/postcss": "^4.1.10",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.3.3",
"eslint-config-prettier": "^10.1.5",
"prettier": "^3.5.3",
"tailwindcss": "^4.1.10",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5"
}
} What version of Node.js are you using? v20.19.2 What browser are you using? Chrome What operating system are you using? Reproduction URL Describe your issue When the project is running, an error will be reported when accessed by chrome:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Consider checking:
Otherwise, consider providing a git repo that reproduces the unexpected behavior. |
Beta Was this translation helpful? Give feedback.
-
@layer utilities {
.shad-no-focus {
@apply outline-none ring-offset-transparent focus:ring-transparent focus:ring-offset-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-transparent focus-visible:ring-offset-0;
}
.shad-input {
@apply border-none shadow-none p-0 shad-no-focus placeholder:text-light-200 body-2;
}
}
so In v4, how should one refer to another class within one class @wongjn |
Beta Was this translation helpful? Give feedback.
Consider checking:
.button
rule is registered into Tailwind with@utility
:@utility button { … }
@reference
if you are using@apply
in some other separated CSS file:Otherwise, consider providing a git repo that reproduces the unexpected behavior.