In my vue project I'm using bootstrap (5.0) and a font from google fonts.
I noticed, that even though the import is written first in the screen.css file and the own style second that the import rewrites the own styles. when inspecting the h1 element the own style gets cancelled out and the font-weight: 500 comes from the bootstrap css file.
is there any way to ensure a sequential reading of the screen.css file?
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;800&display=swap');
@import url('./bootstrap/bootstrap.min.css');
:root{
--text-primary: rgb(17, 24, 39);
--sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
body{
font-family: var(--sans-serif);
color: var(--text-primary);
}
h1, h2, h3{
font-family: var(--sans-serif);
font-weight: 800;
}
