Within the global stylesheet, I have defined the following:
:root {
--font: {
font-family: "Source Sans Pro", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
Then in the style.css file of a react component, I include the following:
.rightnav {
@apply --font;
float: right;
color: white;
}
When using this component in my code, I encounter an error stating: No custom properties set declared for font
.