nnhubbard / ZSSRichTextEditor

A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view
MIT License
3.78k stars 584 forks source link

Dark mode #257

Open halpz opened 4 years ago

halpz commented 4 years ago

will there be a dark mode support for this plugin?

thanks

YoomamaFTW commented 4 years ago

Hi, from YoomamaFTW/RichEditorView. Go to your style.css file and add the following:

:root {
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    body, #editor {
    }
}

and then in your main html file, add this to the head: <meta name="supported-color-schemes" content="light dark">

halpz commented 4 years ago

thanks this works!

please include this in the next build if you're reading devs!