Skip to content

fix(color): add Dark Reader compatibility with robust color parsing#34

Closed
Fevol wants to merge 1 commit intomainfrom
dark-reader-comp
Closed

fix(color): add Dark Reader compatibility with robust color parsing#34
Fevol wants to merge 1 commit intomainfrom
dark-reader-comp

Conversation

@Fevol
Copy link
Copy Markdown
Owner

@Fevol Fevol commented Mar 28, 2026

Cherry-picked commit from #26, authored by @rsp2k.


Original commit message:
Resolves issue #12 where Dark Reader extension caused graph rendering failures.

Changes:

  • Add Dark Reader detection via DOM attributes and meta tags
  • Implement color value sanitization to handle invalid formats
  • Remove !important flags and reject nested var() references
  • Add comprehensive fallback colors for each color type
  • Enhance error logging with context-aware messages
  • Provide graceful degradation when colors cannot be parsed

The graph now renders reliably with Dark Reader active, using fallback colors when the extension corrupts CSS variable values. Users see an informative console message when Dark Reader is detected.

Resolves issue #12 where Dark Reader extension caused graph rendering failures.

Changes:
- Add Dark Reader detection via DOM attributes and meta tags
- Implement color value sanitization to handle invalid formats
- Remove !important flags and reject nested var() references
- Add comprehensive fallback colors for each color type
- Enhance error logging with context-aware messages
- Provide graceful degradation when colors cannot be parsed

The graph now renders reliably with Dark Reader active, using fallback
colors when the extension corrupts CSS variable values. Users see an
informative console message when Dark Reader is detected.
@Fevol
Copy link
Copy Markdown
Owner Author

Fevol commented Apr 7, 2026

I am closing this PR, as I don't feel like this solves the issue in a satisfying way; and it has likely been solved already (I cannot reproduce it).

@Fevol Fevol closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants