In iOS 18, iPhone apps have both Light and Dark color options, so you can match the color of your icons when you have Dark mode enabled.
To make your Home Screen icons dark8, press and hold on an app icon until the icons start to jiggle, then tap “Edit” in the top corner, select “Customize,” and choose “Dark” from the options to apply a dark appearance to your icons.
You can also select “Automatic” to have them switch between light and dark mode based on your system settings. The Dark icons are all redesigned with a black background rather than a white or colored background,