{"id":16333000,"url":"https://github.com/davidyslu/React-Challenges-DarkMode","last_synced_at":"2025-08-29T11:30:46.183Z","repository":{"id":93934372,"uuid":"355508948","full_name":"davidyslu/React-Challenges-DarkMode","owner":"davidyslu","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-07T10:56:35.000Z","size":223,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T10:33:11.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidyslu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-07T10:50:23.000Z","updated_at":"2021-04-07T10:56:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"469f65e7-ba4d-41ce-a8de-cb2faa2724ac","html_url":"https://github.com/davidyslu/React-Challenges-DarkMode","commit_stats":null,"previous_names":["davidyslu/react-challenges-darkmode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidyslu/React-Challenges-DarkMode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2FReact-Challenges-DarkMode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2FReact-Challenges-DarkMode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2FReact-Challenges-DarkMode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2FReact-Challenges-DarkMode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidyslu","download_url":"https://codeload.github.com/davidyslu/React-Challenges-DarkMode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidyslu%2FReact-Challenges-DarkMode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272677981,"owners_count":24975042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T23:34:02.176Z","updated_at":"2025-08-29T11:30:45.243Z","avatar_url":"https://github.com/davidyslu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dark Mode Coding Challenge 🌙 \u0026nbsp; ![medium](https://img.shields.io/badge/-Medium-yellow) ![time](https://img.shields.io/badge/%E2%8F%B0-30m-blue) \n\n\u0026nbsp;\n# Goals / Outcomes ✨\n- Using state and global state\n- DOM manipulation\n\n\u0026nbsp;\n# Pre-requisites ✅\nNone\n\n\u0026nbsp;\n# Requirements 📖\n- Add dark-mode switching functionality to the *existing* dark-mode button\n  - Utilise the *existing* dark-mode scss file by adding a `dark-mode` class to the root `html` element\n- When in Dark mode:\n  - The button icon should be `faSun`\n  - The button icon colour should be `(#FFA500)`. You can use the `color` prop on the `Icon` component.\n\n\u0026nbsp;\n# Think about 💡\n- How we would use Dark mode on other potential routes/components in a bigger application. Would your solution work for this?\n- How we can apply a class to the `html` DOM element\n\n\n\u0026nbsp;\n# What's Already Been Done 🏁\n- Basic app UI (mobile responsive)\n- Dark mode and light mode styles/themes\n\n\u0026nbsp;\n# Screenshots 🌄\n\u0026nbsp;\n![screenshot-light](https://puu.sh/Fq13d/04a9e5ad48.png)\n![screenshot-dark](https://puu.sh/Fq132/caa2fa0c6d.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidyslu%2FReact-Challenges-DarkMode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidyslu%2FReact-Challenges-DarkMode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidyslu%2FReact-Challenges-DarkMode/lists"}