Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we add individual color variables to a "palette" that is shown combined? #221

Open
mirisuzanne opened this issue Dec 8, 2017 · 1 comment

Comments

@mirisuzanne
Copy link
Member

At OddBird, our color-use is built around maps, but that's many teams prefer individual variables. I'm wondering, particularly with the move to sass-extract, if we can provide an annotation for adding colors to a palette?

// each color is added to the palette…

/// @palette brand-colors
$brand-blue: hsl(195, 52%, 31%);

/// @palette brand-colors
$brand-orange: hsl(24, 100%, 62%);

/// @palette brand-colors
$brand-pink: hsl(330, 100%, 45%);

// the palette is displayed and documented as a group
/// @colors brand-colors
@jgerigmeyer
Copy link
Member

@mirisuzanne Yes, something like this would be doable. I'll start by requiring @colors to be in a map, but if you confirm the API you'd like to use for this, we can add it.

@mirisuzanne mirisuzanne added this to the Backlog milestone Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants