Instead of linking the css files directly, define the wanted theme in the correct files. Before this, firefox had trouble to display input fields correctly. It was not possible for firefox to override the dark setting for content. Now it works as aspected.