Yo's current behavior is to use the Yo icon for notifications, or to use the customized icon if the app has been customized and codesigned. The icon displayed is the same regardless of whether the Mac is in dark mode or light mode.
A possible improvement would be to allow specifying separate light and dark mode icons, and make Yo context aware about which one to use.