{"id":15099261,"url":"https://github.com/mlascurain/toggle-dark-mode","last_synced_at":"2026-01-06T09:32:52.024Z","repository":{"id":255078022,"uuid":"848472035","full_name":"mLascurain/toggle-dark-mode","owner":"mLascurain","description":"Web Component, using LocalStorage, ShadowDOM and Custom HTML Elements","archived":false,"fork":false,"pushed_at":"2024-09-25T23:02:31.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T17:45:32.097Z","etag":null,"topics":["custom-elements","javascript","localstorage","shadow-dom","web-components"],"latest_commit_sha":null,"homepage":"","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/mLascurain.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":"2024-08-27T20:27:44.000Z","updated_at":"2024-09-25T23:02:34.000Z","dependencies_parsed_at":"2024-09-15T17:22:24.627Z","dependency_job_id":null,"html_url":"https://github.com/mLascurain/toggle-dark-mode","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"4894192740e55dd8e2bf974a5ddcdf0f09c76f23"},"previous_names":["mlascurain/toggle-dark-mode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mLascurain%2Ftoggle-dark-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mLascurain%2Ftoggle-dark-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mLascurain%2Ftoggle-dark-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mLascurain%2Ftoggle-dark-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mLascurain","download_url":"https://codeload.github.com/mLascurain/toggle-dark-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245855185,"owners_count":20683468,"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":["custom-elements","javascript","localstorage","shadow-dom","web-components"],"created_at":"2024-09-25T17:08:50.608Z","updated_at":"2026-01-06T09:32:51.975Z","avatar_url":"https://github.com/mLascurain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Toggle-Dark-Mode\r\n\r\n![](https://github.com/user-attachments/assets/41e71754-592f-4d89-8b53-d0505fa04020)\r\n\r\n\r\n\r\n\u003cp\u003e Clone the repository or download the file and add the following lines into your html file\u003c/p\u003e\r\n\r\n![WhatsApp Image 2024-08-27 at 20 37 17](https://github.com/user-attachments/assets/549d64d4-527f-4955-8f07-b0b71b8249a2)\r\n\r\n```    \r\n\u003ctoggle-dark-mode\u003e\u003c/toggle-dark-mode\u003e\r\n\u003cscript src=\"toggle-dark-node.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n\u003cp\u003e After that create your styles for dark mode and light mode in the dark-mode/light-mode classes \u003c/p\u003e\r\n\r\n\u003cp\u003e If you want to change the style of the button just comment all the styles in the js file. \u003c/p\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlascurain%2Ftoggle-dark-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlascurain%2Ftoggle-dark-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlascurain%2Ftoggle-dark-mode/lists"}