As I begin my journey with Angular, I am delving into the workings of the styles.scss file in relation to individual css files within component folders. I have observed that styles.scss is loaded upon app bootstrapping, displaying the required styles accordingly. However, we are also importing another stylesheet at the beginning as shown below:
@import "./assets/styles/general-theme.css";
Further down in styles.scss, a variable is defined to store the desired font:
$font-stack: Roboto, Arial, Helvetica, sans-serif;
This variable is then applied using the * selector to assign the font to each element:
* {
font-family: $font-stack;
}
While this method works throughout styles.scss, it seems that I may need to create another variable in the general-theme stylesheet or explicitly mention the font. Considering that we are unlikely to switch between fonts, I believe this approach should suffice for our needs. Do you think this is a sensible way to achieve this?