{"id":19946024,"url":"https://github.com/itsabdessalam/react-theme-switcher","last_synced_at":"2025-05-03T16:32:49.703Z","repository":{"id":44143529,"uuid":"185644716","full_name":"itsabdessalam/react-theme-switcher","owner":"itsabdessalam","description":"🌓  React theme switcher component","archived":false,"fork":false,"pushed_at":"2023-01-03T21:42:04.000Z","size":6834,"stargazers_count":7,"open_issues_count":13,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-26T12:47:37.205Z","etag":null,"topics":["color","component","dark","light","mode","react","switcher","theme","toggle"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/6yr87ozmkk","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsabdessalam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-08T16:42:19.000Z","updated_at":"2023-03-14T19:39:25.000Z","dependencies_parsed_at":"2023-02-01T10:15:41.920Z","dependency_job_id":null,"html_url":"https://github.com/itsabdessalam/react-theme-switcher","commit_stats":null,"previous_names":["abdessalam98/react-theme-switcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsabdessalam%2Freact-theme-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsabdessalam%2Freact-theme-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsabdessalam%2Freact-theme-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsabdessalam%2Freact-theme-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsabdessalam","download_url":"https://codeload.github.com/itsabdessalam/react-theme-switcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252216099,"owners_count":21713099,"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":["color","component","dark","light","mode","react","switcher","theme","toggle"],"created_at":"2024-11-13T00:27:50.799Z","updated_at":"2025-05-03T16:32:49.315Z","avatar_url":"https://github.com/itsabdessalam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React theme switcher component\n\n\u003e A react theme switcher component\n\n## Installation\n\n```bash\n# using yarn\nyarn add react-theme-switcher\n\n# using npm\nnpm install react-theme-switcher\n```\n\n## Usage\n\nBy default theme switcher is applied to body and colors are already setted\n\n```js\nimport React from \"react\";\nimport ThemeSwitcher from \"react-theme-switcher\";\n\nfunction App() {\n\treturn (\n\t\t\u003cdiv className=\"App\"\u003e\n\t\t\t\u003cheader className=\"App-header\"\u003e\n\t\t\t\t\u003cThemeSwitcher /\u003e\n\t\t\t\t\u003ch2\u003eReact theme switcher\u003c/h2\u003e\n\t\t\t\u003c/header\u003e\n\t\t\u003c/div\u003e\n\t);\n}\n\nexport default App;\n```\n\nProps you can pass to the component:\n\n```js\n\u003cThemeSwitcher\n\tcssSelector=\"body\"\n\tswitcherColor=\"#2775cc\"\n\tdarkColor=\"#282c34\"\n\tlightColor=\"#ffffff\"\n\tlightTextColor=\"#272b33\"\n\tdarkTextColor=\"#ffffff\"\n/\u003e\n```\n\n## Demo\n\nPreview it on CodeSandbox \u003chttps://codesandbox.io/s/6yr87ozmkk\u003e\n\n## Author\n\n[Abdessalam BENHARIRA](https://github.com/abdessalamb98)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsabdessalam%2Freact-theme-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsabdessalam%2Freact-theme-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsabdessalam%2Freact-theme-switcher/lists"}