WordPress / gutenberg-starter-theme

A simple theme for testing Gutenberg.
GNU General Public License v2.0
683 stars 163 forks source link

Enable a dark editor style via a new Settings panel #85

Closed kjellr closed 5 years ago

kjellr commented 5 years ago

This PR adds a settings panel that lets users toggle a quick "Dark Mode" theme for the editor. It adds theme support for dark-editor-style, and enqueues a tiny editor stylesheet to make that visible.

theme-options

It's essentially a built-in way of enabling a fork I created a while back: https://github.com/kjellr/gutenberg-starter-theme-dark/

In the future, this settings panel could be used for additional theme options (turning on and off custom colors, responsive embeds, etc.) in an effort to make testing easier.

kjellr commented 5 years ago

Great catch, @marekhrabe, thanks for the fix. And thanks for the review @jasmussen!

I'll merge this in and begin opening PRs to turn on and off support for other theme settings as well.