Skip to content

Add light mode + toggle#544

Closed
matr1x-hackmud wants to merge 3 commits into
mainfrom
marto/light_mode
Closed

Add light mode + toggle#544
matr1x-hackmud wants to merge 3 commits into
mainfrom
marto/light_mode

Conversation

@matr1x-hackmud
Copy link
Copy Markdown
Member

Problem

Works towards #542

Context

Re-enables the default Docusaurus light / dark toggle and adds a hackmuddy light mode that does the following:

  • Removes the scan-lines (not sure how we can make them work on a white background as-is)
  • Puts a black text shadow around color tags to make sure the colors still stand out on a white background (may need some tweaking to make them prettier)

@matr1x-hackmud
Copy link
Copy Markdown
Member Author

matr1x-hackmud commented May 26, 2025

Some screenies:
Screen Shot 2025-05-26 at 11 19 58

(ignore the broken image i had spun down the test server lol)
Screen Shot 2025-05-26 at 11 20 04

Screen Shot 2025-05-26 at 11 20 31

Screen Shot 2025-05-26 at 11 20 45

Screen Shot 2025-05-26 at 11 20 52

1shira and others added 3 commits May 28, 2025 02:36
* Check in 'accessible.css'

* Check in an attempt to get arbitrary script-buttons in

* Lint

* add accessibility options navbar component

* Implement style switching to the navbar element + persistence

* Lint

* create state variable for accessibility mode

* Change the a11y img element back to a div

* fixed localstorage error during ssr

* Tweak heading colors

* Add title/alt text to the a11y toggle button

* remove unnecessary useEffect

* remove unused file

* add universal-access svg

* reference it incorrectly

* Add the toggle's icon + hover color change

* prevent accessibility options showing in mobile sidebar

---------

Co-authored-by: tukib <ward.leikis@gmail.com>
Co-authored-by: Sean Mann <sean@comcode.org>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ matr1x-hackmud
❌ 1shira
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants