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
Should be relatively easy to do using material uis theming system. I already use this for the big jumbo on the home page, and it looks like this
<DarkThemeProvider><divclassName={classes.outer}><divclassName="container"><TypographyclassName={classes.h1}>Hello, algorithms!</Typography><TypographyclassName={classes.h2}>
Welcome to GitHub's largest open-source algorithm library
</Typography><divclassName={classes.input}>{search}</div></div></div></DarkThemeProvider>
importReactfrom"react";import{createMuiTheme,ThemeProvider}from"@material-ui/core/styles";constdarkTheme=createMuiTheme({palette: {type: "dark",primary: {main: "#fff",},},});exportdefaultfunctionDarkThemeProvider({ children }){return<ThemeProvidertheme={darkTheme}>{children}</ThemeProvider>;}
You would just need to put the DarkThemeProvider in the _app component and add a switch. I quickly tried that and it looks pretty good, it just needs some tweaking at some points.
It would be cool if there'd be an option to make the website be in dark mode.
For example, I use Dark Reader, and it looks pretty cool in Dark Mode:
The text was updated successfully, but these errors were encountered: