This is an exercise in remaking a login page for GitHub, in both light and dark mode. It also contains a few other features listed below.
-
HTML5
-
CSS3, SCSS
-
JavaScript
-
uses
localStorage
-
additional script with
sessionStorage
version -
CSS custom properties
-
prefers-color-scheme
-
auto-detects OS theme preference
-
option for manually switching light/dark mode
-
client-side form validation
-
customizable error messages
[x] button for user to chande dark / light mode
[x] input validation
[ ] dynamically change favicon
[ ] implement SCSS
Articles:
-
comprehensive
-
storage of user's preferences
-
makes change with media query
-
honors user OS default mode