Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode #15

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Dark mode #15

merged 1 commit into from
Oct 3, 2024

Conversation

vincerubinetti
Copy link
Collaborator

@vincerubinetti vincerubinetti commented Oct 1, 2024

This is based off of #14 . I'll rebase it once that PR is merged so only 32e2a44 remains.

  • use first-party @axe-core/playwright instead of axe-playwright
  • add type packages for network viz layout algorithms
  • add dark mode toggle button and sync with local storage
  • add dark mode theme colors
  • replace a few hard-coded colors in a few spots with css theme vars
  • move testbed network randomized data generation outside component so it only changes on page refresh, not every component re-render
  • change "get css var" util funcs to be a reactive hook, which will update on dark mode toggle

Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for molevolvr ready!

Name Link
🔨 Latest commit 5f3af71
🔍 Latest deploy log https://app.netlify.com/sites/molevolvr/deploys/66fe1e1c0434c60008156ee7
😎 Deploy Preview https://deploy-preview-15--molevolvr.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vincerubinetti vincerubinetti linked an issue Oct 1, 2024 that may be closed by this pull request
2 tasks
Copy link
Contributor

@falquaddoomi falquaddoomi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat! Seems pretty straightforward. I tried it out in the Netlify preview and it seemed to work as expected, too.

frontend/src/components/Network.tsx Show resolved Hide resolved
@vincerubinetti vincerubinetti merged commit 144704b into main Oct 3, 2024
4 checks passed
@vincerubinetti vincerubinetti deleted the dark-mode branch October 3, 2024 04:33
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.

Dark mode
2 participants