# Mac Dark Mode

> Toggles macOS dark mode on, off, or auto-toggle by reading and writing the AppleInterfaceStyle user default. Use when the user asks to enable dark mode, disable dark mode, switch to light mode, toggle appearance, or change the macOS theme.

- Skill: `leionion/mac-dark-mode` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add leionion/mac-dark-mode`
- Raw SKILL.md: https://api.skillmd.com/api/skills/leionion/mac-dark-mode/raw
- Safety review: pending (external: skill-scanner WARNING, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: leionion (https://skillmd.com/u/leionion)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/leionion/mac-dark-mode

---


# mac-dark-mode — Toggle macOS Dark/Light Mode

Switches macOS between dark and light appearance modes using `defaults` commands.

## Usage

```bash
# Toggle between dark and light mode
python3 mac_dark_mode.py

# Enable dark mode
python3 mac_dark_mode.py on

# Enable light mode
python3 mac_dark_mode.py off
```

## How it works

- Reads `AppleInterfaceStyle` via `defaults read` to detect current mode
- Writes or deletes `AppleInterfaceStyle` to switch modes
- No argument toggles automatically based on current state

