README.md: Add responsive logo for light and dark themes#6253
Conversation
Updated logo display to support light and dark themes.
Greptile SummaryThis PR upgrades the README logo to support both light and dark color schemes by wrapping the existing Confidence Score: 5/5Safe to merge β documentation-only change with correct HTML5 picture element usage and all referenced assets verified to exist. Single-file README change; the picture/source/img pattern is exactly the standard GitHub-supported approach for theme-aware images. Both SVG variants exist in the repo, fill colors match the intended usage, and the fallback img ensures compatibility with clients that don't support picture. No logic, runtime code, or dependencies are touched. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Browser loads README] --> B{Supports picture element?}
B -- No --> C[Render fallback img\nreflex.svg]
B -- Yes --> D{prefers-color-scheme?}
D -- dark --> E[Load reflex_light.svg\nwhite logo on dark bg]
D -- light --> F[Load reflex_dark.svg\ndark logo on light bg]
D -- not set --> G[No matching source\nFallback to reflex.svg]
Reviews (1): Last reviewed commit: "README.md: Add responsive logo for light..." | Re-trigger Greptile |
Updated logo display to support light and dark themes in a more standardized way.
https://stackoverflow.com/a/70200610