I was initially facing an issue while trying to import CSS through index.html as I kept getting a MIME type error: enter image description here The browser refused to apply the stylesheet from 'http://localhost:4200/css/pink-bluegrey.css' because its MIME type ('text/html') is not supported, and strict MIME checking is enabled.
When attempting to import it via angular.json instead, I encountered difficulties adding an ID tag with id="themeAsset".
The reason why I wanted to add the ID is because of my interest in following the theme selection process outlined on https://material.angular.io/guide/theming
The function changeTheme(themeName) was suggested to dynamically update the styles for the entire application by altering the style sheet when a user clicks, rather than applying classes to each component individually: