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

Possible use-case: user-defined styles #53

Open
GrantCuster opened this issue Apr 27, 2022 · 3 comments
Open

Possible use-case: user-defined styles #53

GrantCuster opened this issue Apr 27, 2022 · 3 comments
Assignees
Labels
Feature New feature or request

Comments

@GrantCuster
Copy link

I've only half thought through this but thought it might be helpful for you all as a possible use-case:

There's a good chance we'll use css.gui to let users style their own blocks, something like this:
shotwin-2022-04-27_16-10-53

I think it will make sense to pre-define some commonly used styles for them to edit. Working on that now.

Someday I'd also love to let them add any CSS property to that styling block -- maybe something like a combobox where it suggests valid style properties as you start typing....

I think (as you cover more and more of the spec) css.gui could be a good fit for this -- a user adding a style would just mean setting in the style state, then the editor component should pick it up automatically.

Another piece would be that combobox -- I guess it would need to be powered by a list of valid style properties, I'm sure I could put that together but there also might be a way for css.gui to expose that? Or provide the combobox "add a style property" functionality out of the box?

@johno johno added the Feature New feature or request label Apr 28, 2022
@mrmrs
Copy link
Contributor

mrmrs commented May 3, 2022

@GrantCuster Believe I follow you and I think we are totally aligned. Vision is to be able to create any DOM structure and then expose blocks of predefined CSS Properties that people can edit. We want to make that entire creation and editing process as easy as possible.

@johno
Copy link
Contributor

johno commented May 19, 2022

We've gotten part of the way there with #201! When we have full support and docs I'll link them here (should be in the next day or so).

@GrantCuster
Copy link
Author

awesome! looks great so far

This was referenced May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants