some tailwind properties not working as expected #19315
Unanswered
I-am-Pritam-20
asked this question in
Help
Replies: 1 comment 4 replies
-
|
Consider checking:
Otherwise, consider providing a git repo that reproduces the unexpected behavior and we can take a look for you. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am facing some issues while defining CSS properties for the elements In my React + Vite Project with Tailwind included. 😭😭
Issue Description:
While I am defining
mt-20in the above code it is not actually getting applied.But when I do the thing in
global.cssby doing (adding a custom class name , heretest-text) and define the property as follows:and in
global.cssIt works perfectly.
What could be the cause ? Any help is appreciated 😊
Here is the
package.json{ "name": "test_website", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "lint": "eslint .", "preview": "vite preview" }, "dependencies": { "@tailwindcss/forms": "^0.5.10", "@tailwindcss/vite": "^4.1.12", "lucide-react": "^0.536.0", "react": "^19.1.0", "react-dom": "^19.1.0", "react-router-dom": "^7.7.1", "react-transition-group": "^4.4.5", "tailwindcss": "^4.1.12" }, "devDependencies": { "@eslint/js": "^9.30.1", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@vitejs/plugin-react": "^4.6.0", "eslint": "^9.30.1", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.20", "globals": "^16.3.0", "vite": "^7.0.4" } }Beta Was this translation helpful? Give feedback.
All reactions