Like the article, but quick question. I am trying to create a Vue Component Library, where all of the components have a default scss variable in them, for example:
$color: #000 !default
The intention is that the component will have default styling that could easily be configured/overridden when I later install my component library but override the styles in a configurable variables scss file. I can't seem to figure out on how to have the vue library's config file to accept that scss file.
Hi Mark, do you have a code example of the config file and where you're trying to add the scss?
I'd imagine that you could probably override based on the order you're importing the scss files into the component, but I'm not sure I understand what you're looking to do.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Like the article, but quick question. I am trying to create a Vue Component Library, where all of the components have a default scss variable in them, for example:
The intention is that the component will have default styling that could easily be configured/overridden when I later install my component library but override the styles in a configurable variables scss file. I can't seem to figure out on how to have the vue library's config file to accept that scss file.
Any insights?
Hi Mark, do you have a code example of the config file and where you're trying to add the scss?
I'd imagine that you could probably override based on the order you're importing the scss files into the component, but I'm not sure I understand what you're looking to do.