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

This is a feature request. Is it possible to write functions that also choose how the color palette is applied? #11

Open
gautam1168 opened this issue Mar 16, 2017 · 0 comments

Comments

@gautam1168
Copy link

Using the functions I can create a color palette. The next hurdle is to actually apply that color palette to the elements on my page. As far as I understand this is still to be done by humans who know what they are doing. For example, I could make everything in the sidebar pop and make the button in the navbar neutral if I wanted to, using the same color palette. So is there a set of principles that you follow when you decide which elements grab attention that are simple enough to be coded?

In other words I am asking if it is possible to switch the entire theme of a website using a function that only takes a color palette as an input. Taking this to the extreme I would start off with a website that has a color palette of a single color (much like you start in the color-theory page with just red) and then give the function a color palette with say five colors and expect the output to be a page with the color palette applied to the elements without specifying which color goes on which element. The only way I can think of to do this is to somehow write a function that can decide an element's css by analyzing its relationship with other dom elements in its tree and a color palette.

To write such a function I would need to be able to code what goes on in the head of a designer when she is given a dom element and a color palette and she chooses a color from the palette. Is this possible? Can you write down the rules that you use to perform the above task?

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

No branches or pull requests

1 participant