You can enable dark mode in Notepad on Windows 10 by activating the High Contrast feature or using third-party apps like ...
If to turn on or off the high contrast mode in Windows 11, use the keyboard shortcut – Alt + Shift (left) + PrtSc. This will open a high contrast dialog box allowing you to configure it.