-
Notifications
You must be signed in to change notification settings - Fork 189
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
Improve dark mode code colours Fixes #2377 #2500
Improve dark mode code colours Fixes #2377 #2500
Conversation
Yes, I am working on the colour scheme to change on the toggle. However, it would require changing all the previous code for highlight.js. So, I made a draft PR to get some help in development. |
Can we try something like this? Make a conditional in the div for the stylesheet. |
This is a better example using the link stylesheets: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See
@import 'highlight.js/styles/github.css'; |
We're going to want to have two stylesheets, both from node_modules vs. a cdn, and you will pick the one at runtime to use.
Also, src/api/status*
isn't the same code as what you're changing for posts.
@@ -106,8 +106,8 @@ | |||
overflow-wrap: unset; | |||
word-wrap: none; | |||
font-family: Menlo, Consolas, Monaco, 'Liberation Mono', 'Lucida Console', monospace; | |||
background: #eff0f1; | |||
color: #242424; | |||
background: rgb(14, 17, 22); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hex values, please.
What's the status of this? |
Well, we can close this PR and will make a new one, once I am done - still working on enabling the dark mode colour. |
Issue This PR Addresses
Type of Change
Description
Before:
After:
Checklist