You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2021. It is now read-only.
I would like to get your input on the way the color swatches are set up right now and suggest a possible solution that I have found that makes the workflow a lot better.
The way the current workflow works in regards to colors is this:
Create New Color Swatch
Edit toolkit.scss and add new color. By doing this, it updates the color swatches on the overview page.
Use Color in Sass
Add color as a variable or as hardcoded (not recommend) inside Sass.
This might seem alright at first, but once you have to add several colors, this can become cumbersome quickly. One thing that I would like to suggest is streamlining this process. We have done this on our own projects by:
Bringing the colors out of toolkit.yml and placing it in a color.yml file inside the data directory. By doing this you separate your content from your colors.
Creating a gulp task that takes the data inside color.yml and outputs to the overview page as it does now, but it also creates a _colors.scss file that stores all the colors in color.yml as Sass variables.
What do you think of this and do you think this would be something you would like to add to core Fabricator? If so, I will make a PR.
Hey @lukeaskew -
I would like to get your input on the way the color swatches are set up right now and suggest a possible solution that I have found that makes the workflow a lot better.
The way the current workflow works in regards to colors is this:
Create New Color Swatch
Use Color in Sass
This might seem alright at first, but once you have to add several colors, this can become cumbersome quickly. One thing that I would like to suggest is streamlining this process. We have done this on our own projects by:
What do you think of this and do you think this would be something you would like to add to core Fabricator? If so, I will make a PR.
Thanks!