Disabling Static CSS Layout Styles
Answered
British Shorthair posted this in #help-forum
British ShorthairOP
These inbuilt css styles seem to be overriding my css module styles. How do I get rid of that? Is disabling them an option?
Answered by Rafael Almeida
are you importing
next/font anywhere in the project? as joulev said if you don't use it then it won't be added to the css output5 Replies
@British Shorthair These inbuilt css styles seem to be overriding my css module styles. How do I get rid of that? Is disabling them an option?
The font-face looks like they come from next/font, if you want to disable them then don’t use next/font
The text_small stuff is not built in by nextjs, it’s from somewhere else
British ShorthairOP
These styles seem to be auto-generated by next, as found in the .next folder in a file with this title: "layout.css?v=1692653614108". Is it possible to get rid of these styles?
are you importing
next/font anywhere in the project? as joulev said if you don't use it then it won't be added to the css outputAnswer
@Rafael Almeida are you importing `next/font` anywhere in the project? as joulev said if you don't use it then it won't be added to the css output
British ShorthairOP
Yes I am. In fact, I've found the description of how next handles css. Thank you so much!