I have a simple solution that meets my needs on Firefox iOS. With my topcolor set to eeccff, and the browser setting 'website dark mode' set to 'on', I get a darkmode page with the pink topcolor inverted to an ergonomic dark aubergine.