load custom css after a package is loaded
perhaps this doesn't belong in this forum, I apoloize
I'm trying to override the variables from a css file that belongs to a package, but can't seem to do that because what I write in
index.css
file gets overriden by the package file's css which loads later.
Is there a way for me to import an additional css file after the package is loaded?3 Replies
A certain way is to make more specific selectors in the CSS that aims to override the package's styles. You can just add the same classname or attribute selector twice to increase the specificy.
If the package's CSS is included in the header, it is also possible to add your style tag to the body so that even if it is added later, your styles are lower in the DOM tree and thus evaluated after the package's style.
thank you, this works :prayge:
You can also override css variables in a style tag. Then the scope will be within the element.