Where to Put Common CSS in Angular

When using SCSS, then it's a good way to create a shared/shared.scss file that contains the common styles. And import the other components you add a @import '../shared/shared'; on top of your scss-file to use that common styles.


If you create your project using angular cli you will find a file styles.css under src folder. Put all your common styles in this file.

.angular-cli.json file mentions this file to be bundled as a style

"styles": [
        "styles.css"
      ],

Tags:

Css

Sass

Angular