Bootstrap compatibility
How to have both "kth-style" and "@kth/style" packages in the same project
If you are importing the entire kth-bootstrap.scss
-
Declare CSS layers
old-kth-style
andkth-style
// Import @kth/style artifacts @use "@kth/style/scss/..." + @layer old-kth-style, kth-style; // Import kth-style @import "kth-style/public/scss/kth-bootstrap.scss";
-
Import
dist/kth-bootstrap.css
instead of the.scss
file, and add it to theold-kth-style
layer:- @import "kth-style/public/scss/kth-bootstrap.scss"; + @import "kth-style/dist/kth-bootstrap.css" layer(old-kth-style);
Read more: