This mini app presents a basic how-to-set a dark mode, useing predefined CSS root, javaScrips functions and window.matchmedia to check browser's preferences on every reload, preserving the theme mode on localStorage.
-
React.
-
Browser's Local Storage.
-
React-boostrap.
-
React's own Font Awesome.
-
TypeScript.
To get a local copy up and running follow these simple example steps:
-
On the project, GitHub page, navigate to the main page of the repository
-
Click on a button named
code
-
Copy the project URL as displayed on HTTPS tab
-
If you're running Windows Operating System, open your command prompt. On Linux, Open your terminal
-
Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.
-
Type
git clone
, and then paste the URL you copied in Step 3.$ git clone git@github.com:mrigorir/react-dark-mode
Press Enter key -
Your local copy will be created.
-
Please note that you must have Git installed on your PC, this can be done here
-
After you get the project aiming to the desired directory, you need now to install dependencies by running npm install.
To make sure the linters' checks using Github Actions work properly, you should follow the next steps:
-
On your recently forked repo, enable the GitHub Actions in the Actions tab.
-
Create the
feature/branch
and push. -
Start working on your milestone as usual.
-
Open a PR from the
feature/branch
when your work is done.
-
Make sure you have npm and node installed.
-
I recommend the use of VS code as a code editor, but you can use any code editor.
-
Run in your terminal
npm run start
ORyarn start
to see the run the app in your default browser. -
You should see the todo form ready to be used.
-
Add a name for the task owner (description is optional).
-
hit create button to create your todo.
-
You can either check it when DONE or remove it by hitting the trash icon.
👤 Marco Parra
- GitHub: @mrigorir
- Twitter: @marcoparra311
- LinkedIn: @marco-alonso-parra
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
Special thanks to Alex Eagleson for this amazing curse
This project is MIT licensed.