thanks for for the responseLayers is currently broken on Slim since we use are using a modified aapt. You can use layer for most things. But using it on frameworks-res, systemUI and possibly Settings might cause loop. Aosp dark mode is labeled as experimental, not because it can cause instabilities because we are still hunting down a few UI elements that are off.
PS: If you use dark mode you should layer Gmail app.