Closed kgryte closed 2 years ago
The issue for resolving this is that the banner is loaded via an img
tag: https://github.com/stdlib-js/www/blob/8107e2fa8925c7c96608cc15500af5fac55505e9/src/components/welcome/banner.jsx#L36
That's problematic for theming as we cannot modify SVG attributes for SVG loaded this way.
The rationale for loading via an img
tag was to reduce bundle sizes and leverage caching.
Likely best solution here is to use the existing logo.jsx
component and then add the tag line as a separate DOM element which we can then theme.
When viewing the landing page in dark mode, the logo tag line has insufficient contrast with the background. We should probably target the text using, e.g., the default theme text color.