Firefox made an update that allowed for custom themes, that also mentioned "alert()" dialog boxes being updated to match custom themes. I tested it with my website, and can confirm that it only looks at if you have a "light" theme or a "dark" theme preset already- no changes to be made there.
also i immediately switched it over to a Full Black theme, just for my own sake of hating the default gradient lol