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

[feature] custom theming #32

Open
bennypowers opened this issue Dec 12, 2020 · 1 comment
Open

[feature] custom theming #32

bennypowers opened this issue Dec 12, 2020 · 1 comment

Comments

@bennypowers
Copy link

It would be nice to pass css custom properties to the iframe for theming:

const iframeURL = new URL('https://webcomponents.dev/edit/PmmwJU9LjBDHlkO8WiSq');
iframeURL.searchParams.set('embed', '1');
iframeURL.searchParams.set('pm', '1');
iframeURL.searchParams.set('sv', '1');
iframeURL.searchParams.set('file', 'Hello.ts');
iframeURL.searchParams.set('style', '--wcd-background:black;--wcd-color:white;--wcd-primary:#c0fefe;');

Not a deal-breaker by any means, but would add to the fun.

@gqio
Copy link
Member

gqio commented Dec 12, 2020

I was just trying some stuff exactly like that with gradient like yesterday 🤣

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