{"id":21076087,"url":"https://github.com/shaack/bootstrap-auto-dark-mode","last_synced_at":"2025-05-16T06:31:58.777Z","repository":{"id":173681195,"uuid":"651123402","full_name":"shaack/bootstrap-auto-dark-mode","owner":"shaack","description":"include this script to set the bootstrap 5.3 dark-mode automatically based on system settings","archived":false,"fork":false,"pushed_at":"2024-03-04T09:45:32.000Z","size":7,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-09T09:53:56.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/shaack.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-08T14:44:41.000Z","updated_at":"2024-10-17T12:49:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ab44119-7264-4cdb-8ad5-88d9be6313f5","html_url":"https://github.com/shaack/bootstrap-auto-dark-mode","commit_stats":null,"previous_names":["shaack/bootstrap-auto-dark-mode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fbootstrap-auto-dark-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fbootstrap-auto-dark-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fbootstrap-auto-dark-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaack%2Fbootstrap-auto-dark-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaack","download_url":"https://codeload.github.com/shaack/bootstrap-auto-dark-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225412872,"owners_count":17470463,"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":"2024-11-19T19:26:34.612Z","updated_at":"2025-05-16T06:31:58.762Z","avatar_url":"https://github.com/shaack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bootstrap-auto-dark-mode\n\nThis script adds the missing auto-dark mode to the new theme feature of Bootstrap 5.3.\n\nIt switches the Bootstrap theme automatically between light and dark mode, depending on the system settings, if you set the `data-bs-theme` attribute of your \u0026lt;html\u003e to `auto`.\n\n## References\n\n- [Demo page](https://shaack.com/projekte/bootstrap-auto-dark-mode/)\n- [GitHub repository](https://github.com/shaack/bootstrap-auto-dark-mode)\n- [npm package](https://www.npmjs.com/package/bootstrap-auto-dark-mode)\n\n## Usage\n\nUse it by just including `bootstrap-auto-dark-mode.js` in your header and setting `data-bs-theme` to `auto`.\n\n```html\n    \u003chtml lang=\"en\" data-bs-theme=\"auto\"\u003e\n        \u003chead\u003e\n            \u003c!-- your code --\u003e\n            \u003cscript src=\"./src/bootstrap-auto-dark-mode.js\"\u003e\u003c/script\u003e\n        \u003c/head\u003e\n        \u003c!-- your code --\u003e\n        \u003c!-- […] --\u003e\n```\n\n---\n\nFind more high quality modules from [shaack.com](https://shaack.com)\non [our projects page](https://shaack.com/works).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaack%2Fbootstrap-auto-dark-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaack%2Fbootstrap-auto-dark-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaack%2Fbootstrap-auto-dark-mode/lists"}