-
Notifications
You must be signed in to change notification settings - Fork 324
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
Dark Background? #327
Comments
I would like it too! |
Anyone find a solution for this? |
I was able to work around the issue with the following CSS... I'm posting this with the disclaimer that I am not skilled with CSS/design (think the famous Peter Griffin GIF...) whatsoever, so feel free to modify this snippet if I've written it like an idiot. It may look hacky to those more skilled than I, but it works for my purposes. 😝 (replace my scss color variables with your own color vars/color codes as you see fit) .EasyMDEContainer {
background-color: $gray-800 !important;
}
.CodeMirror, .editor-preview {
color: $white !important;
border-color: $gray-600 !important;
background-color: $gray-800 !important;
}
.cm-s-easymde .CodeMirror-cursor {
border-color: $gray-600 !important;
}
.editor-toolbar button i {
color: $white !important;
}
.editor-toolbar button.active, .editor-toolbar button:hover {
background-color: $blue !important; // Fixes toolbar buttons from appearing as white when hovered or selected
}
.editor-preview pre {
background-color: #333 !important; // This fixes code blocks in Markdown appearing with a white background
} |
@CaptainStealthy This worked surprisingly well. One thing I changed was to not set the |
How to change the text selection background color? |
Use the |
Thanks! |
I tried to add EDIT I took another look at this and finally found the correct Codemirror CSS classes to use, please note that .EasyMDEContainer .CodeMirror {
.CodeMirror-line {
background: #293133;
.CodeMirror-selectedtext {
background: #747474;
color: #f1f1f1;
}
}
} |
How do I set my background to another color using CSS/JS? The other dark mode thread did not help me.
The text was updated successfully, but these errors were encountered: