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

Allow sets of styles for pre-styled html #26

Open
xiaomi7732 opened this issue Mar 10, 2022 · 1 comment
Open

Allow sets of styles for pre-styled html #26

xiaomi7732 opened this issue Mar 10, 2022 · 1 comment
Assignees

Comments

@xiaomi7732
Copy link
Owner

Consider adding another parameter for posting /Html:

theme: light / dark

This will be useful when the client is in an environment, which:

  1. want to leverage the std/pre styles;
  2. theme aware.

For example, in VSCode extension, we could detect what the user is currently using, dark theme for example, and post:

/Html?preStyled=true&theme=dark

@xiaomi7732
Copy link
Owner Author

@JacobBovee what do you think?

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