Skip to content

Tailwind css classes dont work properly #17611

Answered by Fluffy2908
Fluffy2908 asked this question in Help
Discussion options

You must be logged in to vote

Okay i just solved the problem. I had to make a script:

"scripts": {
"start": "react-scripts start",
"build-css": "tailwindcss -i style.css -o output.css",
"watch-css": "tailwindcss -i style.css -o output.css --watch",
"dev": "concurrently \"npm run watch-css\" \"npm start\""

and put it into the package.json. Then i typed into the terminal npm run build-css and after that npm run watch-css. Now all the styling is showing and aplying. Sorry to bother you guys but i hope this will be a solution for someone with similar problems.

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@Fluffy2908
Comment options

@wongjn
Comment options

@Fluffy2908
Comment options

@wongjn
Comment options

@Fluffy2908
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wongjn
Comment options

@Fluffy2908
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Fluffy2908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants