xiaomi7732 / StackBeauty

Format stack, make it easy to read and understand
https://stack.codewithsaar.net
MIT License
5 stars 1 forks source link

Allow sets of styles for pre-styled html #26

Open xiaomi7732 opened 2 years ago

xiaomi7732 commented 2 years ago

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 commented 2 years ago

@JacobBovee what do you think?