I have a component where I style a link globally with blue and in local component I override this with white variant. I do this using variables.
In preview this looks perfectly fine but in build/preview the local styling gets overwritten by the global styling like in the image.
Any clue why this is or what I am doing wrong?
I load css in the global.css file like so
a {
color: var(--blue);
}
In the component I use this:
a {
display: block;
text-decoration: none;
color: var(--color-text);
}
a:hover {
color: var(--color-accent-secondary);
}
The hover does work as intended.