You can enable dark mode in Notepad on Windows 10 by activating the High Contrast feature or using third-party apps like ...
For your information, this icon is visible in the top-right corner ... If you cannot find this option even in Windows 11, you must update the Notepad app. For that, open the Microsoft Store ...