Color adaptation in widgets for light/dark mode

I set up my first Pushcut widget yesterday. It looks fine in light mode, but when the system switches to dark mode, it is, ahem… not so good. I’m a little unclear if/how I should be addressing this. The system (or maybe Pushcut?) seems to be automatically tinting the background color, but not the font color.

Is there any guidance on designing widgets that will look good in both modes? Would it be possible for Pushcut to expose different color settings for each mode? Or, if it’s totally up to the system, where should I look to learn more about how it manages color?

Current versions are Pushcut 2024.6 and iOS 17.6.1.