Our 4.1.0
React examples use theme switching so we load the CSS file in public/index.html
:
<link
rel="stylesheet"
href="%PUBLIC_URL%/themes/scheduler.stockholm.css"
id="bryntum-theme"
/>
The themes are copied to public/themes
folder by postinstall script in package.json
:
"postinstall": {
"node_modules/@bryntum/scheduler/*.css": "copy public/themes/",
"node_modules/@bryntum/scheduler/fonts": "copy public/themes/fonts"
},
Another option (if you do not need theme switching) would be to import CSS file in your App.(s)css
:
@import '~@bryntum/scheduler/scss/scheduler.stockholm.css';
Study please: https://bryntum.com/docs/scheduler/#guides/integration/react.md#include%2Fimport-css and sources of our demos