Firefox tabs are unreadable when in Dark Theme from KDE

This is controlled by Settings > Appearance > Colors. Choose the appropriate option there. Also make sure your firefox theme is System Theme. And maybe clear cache rm -rf .cache/mozilla/. Relaunch firefox