{"id":25897583,"url":"https://github.com/onyx-nxt/dark-mode","last_synced_at":"2026-05-11T10:36:18.556Z","repository":{"id":103402923,"uuid":"377312380","full_name":"onyx-nxt/dark-mode","owner":"onyx-nxt","description":"A pure html and css library for dark mode in your website.","archived":false,"fork":false,"pushed_at":"2023-07-16T08:28:00.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-18T02:39:34.249Z","etag":null,"topics":["css","dark","dark-mode","dark-theme","html","html5"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/onyx-nxt.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":"2021-06-15T22:56:07.000Z","updated_at":"2023-09-27T23:41:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9d6ac88-94a0-4fd8-a82a-8721b23d7c64","html_url":"https://github.com/onyx-nxt/dark-mode","commit_stats":null,"previous_names":["onyx-nxt/dark-mode"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyx-nxt%2Fdark-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyx-nxt%2Fdark-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyx-nxt%2Fdark-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyx-nxt%2Fdark-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onyx-nxt","download_url":"https://codeload.github.com/onyx-nxt/dark-mode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587916,"owners_count":19986627,"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":["css","dark","dark-mode","dark-theme","html","html5"],"created_at":"2025-03-02T23:40:40.190Z","updated_at":"2026-05-11T10:36:18.453Z","avatar_url":"https://github.com/onyx-nxt.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dark Mode\nA pure html and css library for dark mode in your website.\n\n---\n\n# Features\nIt has a smooth setting and also it changes via system settings aswell. Small, but useful.\n\n---\n\n# Usage\nTo use this library follow the steps below:\n\nFirst, import the css with the following:\n```html\n\u003clink rel=\"stylesheet\" href=\"https://kk-designs.github.io/dark-mode/dark-mode.css\"\u003e\n```\nThen you need the javascript with can be done similar to the css:\n```html\n\u003cscript src=\"https://kk-designs.github.io/dark-mode/dark-mode.js\"\u003e\u003c/script\u003e\n```\n\u003cbr\u003e\n\nOnce your done with the imports your code looks something like this:\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n   \u003chead\u003e\n      \u003clink rel=\"stylesheet\" href=\"https://kk-designs.github.io/dark-mode/dark-mode.css\"\u003e\n      \u003cscript src=\"https://kk-designs.github.io/dark-mode/dark-mode.js\"\u003e\u003c/script\u003e\n   \u003c/head\u003e\n   \u003cbody\u003e\n      \u003c!-- Body content yet to be added --\u003e\n   \u003c/body\u003e\n\u003c/html\u003e\n```\nNow its time to add the last element; The button.\nAdd it in the body as the following:\n```html\n\u003cbutton onclick='changeToDarkMode();'\u003eToggle dark mode\u003c/button\u003e\n```\nAnd boom your done! See options and more below.\n\n---\n\n# Settings\n\nWant to customize it? We'll we have some options for you. More options coming in the feature.\n\nThe only option we have right now is smooth change. It makes a trasistion so it doesn't look so abrupt. See the code below have to to get this:\n```html\n\u003cbutton onclick='changeToDarkMode({ \"smooth_transition\": true });'\u003eToggle dark mode\u003c/button\u003e\n```\n\n---\n\n# Demo\nUse this demo to see how it works. \\\n\\\n[DEMO](https://jsfiddle.net/NotBacon/8huy1sgk/ \"Demo\")\n\n---\n\n### Thanks for using this library!\n\n---\n\n[![](backToTop.png?raw=true \"Back to top\")](#readme)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyx-nxt%2Fdark-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonyx-nxt%2Fdark-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyx-nxt%2Fdark-mode/lists"}