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

Easy way to set color palette #94

Closed
GrantCuster opened this issue May 2, 2022 · 6 comments · Fixed by #97
Closed

Easy way to set color palette #94

GrantCuster opened this issue May 2, 2022 · 6 comments · Fixed by #97
Assignees
Labels
Color Feature New feature or request Theme

Comments

@GrantCuster
Copy link

GrantCuster commented May 2, 2022

I'd like an easy way to set some preset colors for the color picker input. This may be possible through the theme option but I didn't get it to work on my naive try of feeding { colors: { red: "red", blue: "blue" } } into the theme prop of the editor.

@johno johno added Feature New feature or request Color Theme labels May 2, 2022
@mrmrs
Copy link
Contributor

mrmrs commented May 2, 2022

@GrantCuster on it! Should have something soon.

johno added a commit that referenced this issue May 2, 2022
@johno johno closed this as completed in #97 May 2, 2022
@johno
Copy link
Contributor

johno commented May 2, 2022

In the near future we'll be working on making this more streamlined, but I'll link the latest docs as soon as they finish building.

To be continued in #99

@johno
Copy link
Contributor

johno commented May 2, 2022

Should now be published as @compai/css-gui@0.0.22. The docs: https://components.ai/open-source/css-gui/imports/color

@johno johno self-assigned this May 2, 2022
@GrantCuster
Copy link
Author

Cool, yea this is working great for the color palette -- and I think I'm now understanding more how a theme could be utilized in general -- lots of interesting possiblities!

@mrmrs
Copy link
Contributor

mrmrs commented May 3, 2022

@GrantCuster part of the thinking is we want a user / team to be able to define any set of constraints for any css property input and that data can live in a theme. This was part of the original thinking around design tokens and what you could do with them. Can take something like css stats, scrape a site for it's CSS, reduce it to discrete values, than use that to collapse generative space for styling a set of headless ui components. We're really excited about the possibilities there.

@GrantCuster
Copy link
Author

Can take something like css stats, scrape a site for it's CSS, reduce it to discrete values, than use that to collapse generative space for styling a set of headless ui components.

Ah yea that is a cool idea!

For Sprout I think we'll start with pretty freeform individual block styling (already in progress). Ultimately I'm thinking we'd like to rebuild the current styling entirely as a theme you could swap out -- so you'd have base theme level and then you could further tweak on top of that... that seems really cool! But taking it one step at a time for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Color Feature New feature or request Theme
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants