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

I want flexible markup for color controls #37

Open
mirisuzanne opened this issue Dec 14, 2023 · 1 comment
Open

I want flexible markup for color controls #37

mirisuzanne opened this issue Dec 14, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mirisuzanne
Copy link
Member

mirisuzanne commented Dec 14, 2023

This comes from oddbird/oddleventy#250 - where we would like to replace the radio-button light/dark/auto with a group of toggle buttons. But it seems to me like there might be ways to make this generally more flexible.

@mirisuzanne mirisuzanne self-assigned this Dec 14, 2023
@mirisuzanne mirisuzanne added the enhancement New feature or request label Dec 14, 2023
@mirisuzanne
Copy link
Member Author

Already, the main feature of CCS is that it generates all the variables required on the CSS side. Any JS could be used to update those variables. There's already an assumption that you can add the controls you want. The JS simply provides shortcuts for wiring up form controls to HTML attributes and CSS custom properties. I think this would be a great place use-case for custom elements.

I have started on some high level elements for quickly wiring form controls to attrs/props:

Those could be cleaned up and packaged as stand-alone tools, but then also CCS could use them (or recommend them) to provide more CSS-specific wiring for color controls?

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

No branches or pull requests

2 participants