Skip to content

How to have a custom class name for html tag or body tag for every next js page ? #13260

Closed Answered by Vijaykv5
1mehdifaraji asked this question in Help
Discussion options

You must be logged in to vote

Ok from my understanding, I assume that you need to have separate styles for your whole app right?
The styles defined in your global CSS file imported in _app.tsx will be available throughout your application, including the about.tsx page component.

One way to fix this, you can define different styles on different routes and all the style can be written in global.css. This link may help.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@1mehdifaraji
Comment options

Comment options

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

@1mehdifaraji
Comment options

Comment options

You must be logged in to vote
1 reply
@1mehdifaraji
Comment options

Answer selected by 1mehdifaraji
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