Dark | Light | System? Can I access if System Color is in Dark Or Light Mode via LibreOffice API?

When LibreOffice theme color is in System mode (not dark or Light) can I detect via the LibreOffice API if the system (Windows, MacOs, Linux) is using Dark Colors or Light Colors.
It is clear that LibreOffice can detect this.

LibreOffice does not provide that in API.
In theory, it could; but by default, it shouldn’t become another way to access system API / pretend to be a system abstraction layer, instead of being an office suite. There needs to be a reason in the scope of the office suite to provide that API - if you have that, please file a feature request (yes I know that you know how, but the link is good if others read this).