src/index.css isn't imported anywhere, so none of it is running. It has a #root block and a prefers-color-scheme: dark block, so whatever dark mode support is in there is dead. Either import it in main.tsx or delete it. Worth checking the #root rules in it don't fight App.css before importing, they set flex-direction column where App.css sets row.