diff --git a/docs/api/system-preferences.md b/docs/api/system-preferences.md index a2cdeb6c4f54..a47975d0974b 100644 --- a/docs/api/system-preferences.md +++ b/docs/api/system-preferences.md @@ -2,6 +2,11 @@ > Get system preferences. +```javascript +const {systemPreferences} = require('electron'); +console.log(systemPreferences.isDarkMode()); +``` + ## Methods ### `systemPreferences.isDarkMode()` _macOS_