Checks if dark mode is enabled on macOS Mojave

Usage no npm install needed!

<script type="module">
  import adlkMojaveIsdarkmode from 'https://cdn.skypack.dev/@adlk/mojave-isdarkmode';



Simple module to check if macOS Mojave dark mode is enabled

This module is ready to be used in electron.

How to use

Install the module npm install @adlk/mojave-isdarkmode.

import isDarkMode from "@adlk/mojave-isdarkmode";

async function config() {
  const isDarkModeEnabled = await isDarkModeEnabled();

  return {
    randomAppConfig: true,
    minimizeToSystemTray: false,