-
Notifications
You must be signed in to change notification settings - Fork 14
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
Original color not kept? #3
Comments
Hi, cheers for the issue. I agree that's a bit annoying. It's down to how the color scales are generated, but I suppose I could make it work. If you look here: https://github.com/tomhicks/themera/blob/main/src/atom.ts#L51 you can see that we take your input color, set its lightness to 50, then work from there up and down to make the scale. Could change that to do something like:
So if you gave it a very dark color, it might place that at position 800 and generate one darker and the rest lighter shades. Do you fancy trying that yourself? I can help if you would like. Probably best to start by extracting the color scale generation into its own function, away from the atom! This code isn't very well factored at all - I wrote the whole thing in an afternoon! |
Thanks for the quick response! I could try and fix it, but I'm kinda really busy these next few weeks with school and personal projects, so I might not be able to do it soon. Also how would step 2 work? Side not, we could take a look at this https://www.npmjs.com/package/chakra-ui-color-generator and take some inspiration from it if it works the way we expect it. |
Step two would be
You'd probably need to generate all the desired lightnesses first, then do the same step up/down logic as is there now, just factored slightly more nicely |
I tried creating a theme by changing the gray color to "#0f1015", but when generating the colorscheme, this color is nowhere to be found. Is that supposed to be like that? Can it be changed?
The text was updated successfully, but these errors were encountered: