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

Add tint-shade color stack #36

Open
wants to merge 1 commit into
base: 1.x.x
Choose a base branch
from

Conversation

VinSpee
Copy link

@VinSpee VinSpee commented Aug 30, 2013

Allow users to create a stack that includes both shaded and tinted versions of
a color at the same time.

Not sure how you want to approach things like the conjoin method that @scottkellum helped with – there didn't seem to be a global place to put it.

sample output:

sample output: tint-shade-stack

allow users to create a stack that includes both shaded and tinted versions of
a color.
@Snugug
Copy link
Member

Snugug commented Aug 30, 2013

Thanks for the PR! I have some comments I'd like addressed before pulling this in.

  1. Please refer to the Contributing Guidelines. Specifically, all new features need to include documentation and any argument with a defaulted argument needs a globally namespaced variable to be able to control it from outside of the mixin/function
  2. The conjoin function is not a color function, and therefore does not belong in the colours partial.
  3. You are hard-coding list positions into the stack even though the number of tints and shades that could exist could be more or less than 6
  4. I'd like to see the list start dark and end light by default so popping off colors happens in the same way as tint-stack and shade-stack. This will mean that the chosen color will be in the middle of the stack
  5. Because of the nature of this stack, I'd like to see a different default amounts stack used, with negative percentages for shade and positive percentages for tint.

For 4 and 5, take a look at this quick SassMeister I drew up to kinda explain what I mean.

@VinSpee
Copy link
Author

VinSpee commented Aug 30, 2013

Thanks, I'll dig into this this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants