Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Offer shades of base color #4

Open
lachlanjc opened this issue Jan 10, 2017 · 2 comments
Open

Offer shades of base color #4

lachlanjc opened this issue Jan 10, 2017 · 2 comments

Comments

@lachlanjc
Copy link

I’m inputting the primary color of my page to palx. I can access that as .base, which is great, but I’d like to get a “shades of base” array as well, with lighter and darker shades of the primary hue.

@hellais
Copy link

hellais commented Sep 2, 2017

Since the steps of the hue are generated from hue of your base color, to get shades of your base color all you need to do is figure out in which named hue it falls under ([0,30), [30, 60), etc.) and then your base color will be under $huename5.

For example if your base color is a green, your base color will actually be palx.green5 and the shades of your base color will be palx.green[0-9].

@royalfig
Copy link

It would still be great to figure that out programmatically. In my use case, I want to determine that value without any input from the use, so it would be great to have easily accessible as shades of base.

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

No branches or pull requests

3 participants