Answer the question
In order to leave comments, you need to log in
How to use css variables in nuxt?
Good afternoon!!
Tell me how you can include variables in nuxt.js css and use them in any component without importing them into each component
<style lang="scss">
@import "@/theme/variables";
.header {
&__wrapper {
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 auto;
padding: 0;
max-width: 1200px;
@media screen and (min-width: $break_lg) {
padding: 0 16px;
}
}
}
</style>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question