Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.
This repository was archived by the owner on May 5, 2021. It is now read-only.

Colors #150

@jonorherrington

Description

@jonorherrington

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

  • 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.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions