LibreOffice does not look good on dark themes. The workaround is to restore libreoffice to its default theme by doing the step(s) below
Uninstall libreoffice-gtk (will also remove libreoffice-gnome) if in ubuntu
Uninstall libreoffice-kde package if kubuntu
Surprisingly, this will also make Firefox and Thunderbird inherit the dark theme.