You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, just add a new stylesheet with a media query and swap all the necessary colors within it. Certain sections (e.g. the main home page image) can probably remain as they are but a lot will need to change.
@media (prefers-color-scheme: dark) {
/* Dark theme styles go here */
}
After implementing dark mode, create a button to toggle between states and store the preferred state in localStorage so people can opt in/out if they want.
The text was updated successfully, but these errors were encountered:
See this Code4Lib 2022 poster and CSS Tricks. Two examples:
CSS
color-scheme
may also be relevant here.Basically, just add a new stylesheet with a media query and swap all the necessary colors within it. Certain sections (e.g. the main home page image) can probably remain as they are but a lot will need to change.
Or in JavaScript:
After implementing dark mode, create a button to toggle between states and store the preferred state in localStorage so people can opt in/out if they want.
The text was updated successfully, but these errors were encountered: