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

Add constructible stylesheet as an output format #466

Open
calebdwilliams opened this issue Feb 2, 2024 · 3 comments
Open

Add constructible stylesheet as an output format #466

calebdwilliams opened this issue Feb 2, 2024 · 3 comments

Comments

@calebdwilliams
Copy link

As a developer who often works with custom elements and shadow DOM, I would love to have access to open-props using constructible stylesheets as an output target. I'd be happy to contribute this feature if there's interest but limited bandwidth.

@argyleink
Copy link
Owner

Open Props offers props on :host, is that what you need? otherwise, cSS are a loading strategy and composability feature, the props don't know or care about these details?

@calebdwilliams
Copy link
Author

Sorry, I should have been more clear. I’m just looking for the utility classes that are available like buttons, shapes and layouts. Anything where classes are applied so I can use them in shadow roots.

@argyleink
Copy link
Owner

i leave classes up to user space.. the normalize and button stylesheets target tags by name and don't offer a class.

Open Props v2 has a beta utility file you could try out tho? works like this:

<div class="MyComponent grid surface rounded shadow padding"></div>
.MyComponent {
  --_padding: var(--size-5);
}

here's a playground where i'm toying around with the thoughts and code

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

2 participants