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

Added yiq-is-light function, refactored yiq-contrast-color to take advantage #1

Merged
merged 1 commit into from
Oct 31, 2013

Conversation

Snugug
Copy link
Contributor

@Snugug Snugug commented Oct 30, 2013

It'd be really nice if we could determine if the color is light or not without needing to call yiq-contrast-color and comparing it to the color variable names. So, in that vein, I added a yiq-is-light function that simply returns true or false based on color and threshold input. Also refactored yiq-contrast-color to take advantage of the new function.

timhettler added a commit that referenced this pull request Oct 31, 2013
Added yiq-is-light function, refactored yiq-contrast-color to take advantage
@timhettler timhettler merged commit b3f96fc into timhettler:master Oct 31, 2013
@timhettler
Copy link
Owner

This is great, thanks dude!

@Snugug
Copy link
Contributor Author

Snugug commented Oct 31, 2013

Very welcome! I'm teaching a zero to hero Sass+Compass training next week and am using this as an example of a Compass extension for everyone to work with. It's fantastic.

@timhettler
Copy link
Owner

❤️

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.

2 participants