Call NPM CSS packages



if I install npm javascript packages I can call it through require but how I do it with npm css?
Have I declare it traditionally with in the header or is there also a require way for CSS?



What exactly do you mean by npm css? Modules that pack your styles for renderer process in a single JS file? Something like Webpack?

If that’s the case, this should work:
import style from './path/to/file.css' (ES6 modules) or require('./path/to/file.css')


You would probably want to just require it traditionally in the head tag, using the link tag.