-
Notifications
You must be signed in to change notification settings - Fork 131
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
feat: add darkmode to site and add theme prop #265
Conversation
One point to note is that the DarkHighlightMode feature is configured to automatically activate with the site's dark mode setting. |
closes #266 |
Will you update the npm package? This was merged 2 weeks ago but npm says last updated 2 months ago? |
I second this notion. Could you publish this when you find the time, please? Would love to use this in my project, but it features darkmode and this makes it sadly hard to use. |
|
This pull request introduces the integration of Dark Mode support for the Vue-Pretty-JSON website. Additionally, it incorporates a new property, darkHighlightMode.
Rationale for the Change:
The primary motivation for this enhancement is to address the aesthetic challenges encountered when using Vue-Pretty-JSON on a dark background. Previously, the hover effect still showed a bright blue which made the text unreadable.
To resolve this issue, the pull request implements the darkHighlightMode, which now displays a dark blue on dark backgrounds, as demonstrated in the following image:
Since no other components seem to require an adjustment to work with darkmode, i've limited it to only the hover effect.