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

feat: add darkmode to site and add theme prop #265

Merged
merged 8 commits into from
Feb 2, 2024
Merged

Conversation

Dan0xE
Copy link
Contributor

@Dan0xE Dan0xE commented Feb 1, 2024

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.

grafik

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:

grafik

Since no other components seem to require an adjustment to work with darkmode, i've limited it to only the hover effect.

@Dan0xE
Copy link
Contributor Author

Dan0xE commented Feb 1, 2024

One point to note is that the DarkHighlightMode feature is configured to automatically activate with the site's dark mode setting.

@Dan0xE
Copy link
Contributor Author

Dan0xE commented Feb 1, 2024

closes #266

@Dan0xE Dan0xE changed the title feat: add darkmode to site and add darkHighlightMode prop feat: add darkmode to site and add theme prop Feb 1, 2024
@Dan0xE Dan0xE requested a review from leezng February 1, 2024 13:39
@leezng leezng merged commit 83391ad into leezng:dev Feb 2, 2024
1 check passed
@eNzyOfficial
Copy link

Will you update the npm package? This was merged 2 weeks ago but npm says last updated 2 months ago?

@AlexZubi
Copy link

AlexZubi commented Mar 7, 2024

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.

@leezng
Copy link
Owner

leezng commented Mar 8, 2024

2.4.0-beta.1 has been released, and the official version will be updated later.

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

Successfully merging this pull request may close these issues.

4 participants