{"id":25429947,"url":"https://github.com/davidyslu/react-challenges-darkmode","last_synced_at":"2025-05-14T10:35:30.201Z","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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254121158,"owners_count":22018115,"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","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":"2025-02-17T02:32:42.341Z","updated_at":"2025-05-14T10:35:30.179Z","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"}