"projectname.styles.css" referrs to which file?

Viewed 178

Which file does Projectname.styles.css actually load? the project's site.css or which file?

<link href="Projectname.styles.css" rel="stylesheet" />

Not sure in which file I have to put my styles to make it referenced like that. If it is the same file as site.css, then why not just referring as "_content/css/site.css"?

1 Answers

It is all the scoped css classes from your app, for isolation. Note the unique identifier after each class name. The comments in the file say what components they are from. For example the css classes from MainLayout.razor.css will be in there.

Related