The logo can work with dark mode and light mode and the theme colors. The SVG file needs to be opened in a text editor, so the actual text elements are visible (and not an Illustrator graphic interface).
You would need to go in the code to remove any “fill” attributes and replace them with fill=“currentColor”. This value is known in the system and will allow the system to place the correct colors in the logos as they are needed.
Additionally:
Please make sure there are no class settings or css styles in the logo.
ex: class="h-full w-full"
The svg file cannot be a converted image file that is simply wrapped in svg tags. The svg file needs to be purely text that the system can access and update with sizing and colors as needed.