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

Theme configuration #54

Open
VladislavAntonyuk opened this issue Apr 10, 2021 · 2 comments
Open

Theme configuration #54

VladislavAntonyuk opened this issue Apr 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@VladislavAntonyuk
Copy link

Add light/dark theme

@StardustDL StardustDL added the enhancement New feature or request label Jun 25, 2021
@StardustDL
Copy link
Owner

Thank you for advice. But I'm not familiar with CSS now. PR is welcomed if you have some ideas.
I think one workaround is using a custom markdown stylesheet, and toggling light/dark by setting the Class parameter.

@MihailsKuzmins
Copy link

a good way of implementing it is custom CSS properties which can be changed in JavaScript as it is described in this post.

Now I am not familiar with the codebase of RazorComponents.Markdown, but in the next week I could try to take a look at this (I need to toggle dark/light themes for markdown)

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

3 participants