When in Dark Mode I can’t change the cell border color. or line thickness. This means it stays black, which is no use on a black background.
Please give us more informations:
Click Tools > Options > LibreOffice > Accessibility and set High Contrast to Disabled, OK.
You might need to restart LibreOffice before you see the change.