UNPKG

ep_prefer_color_scheme

Version:

Change Etherpad-lite skin variant according to system settings

24 lines (18 loc) 578 B
![Publish Status](https://github.com/ether/ep_prefer_color_scheme/workflows/Node.js%20Package/badge.svg) ![Backend Tests Status](https://github.com/ether/ep_prefer_color_scheme/workflows/Backend%20tests/badge.svg) # Make Etherpad react to your systems default settings For dark mode the following settings apply: ```javascript const nightColors = { toolbar: 'dark', background: 'super-dark', editor: 'dark', } ``` For light mode: ```javascript const dayColors = { toolbar: 'super-light', background: 'light', editor: 'super-light', } ```