Like styles.css
, I want to add my own CSS (like my_custom.css
, not Bootstrap) globally in my Angular project.
What's the correct way to do this?
Like styles.css
, I want to add my own CSS (like my_custom.css
, not Bootstrap) globally in my Angular project.
What's the correct way to do this?
You can add you style file(i.e custom.css) at project root level(same level as styles.css) and then you can register it in angular-cli.json i.e
"apps":[
{
"styles":["style.css","custom.css"]
}
]
you can import CSS files in your global style style.css
file.
@import 'custom.css';