{"id":16910891,"url":"https://github.com/dilanx/redark","last_synced_at":"2025-04-11T15:52:22.649Z","repository":{"id":65200480,"uuid":"587112347","full_name":"dilanx/redark","owner":"dilanx","description":"A dark theme for Redoc","archived":false,"fork":false,"pushed_at":"2024-11-24T22:29:35.000Z","size":10,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T12:17:25.716Z","etag":null,"topics":["api","dark","docs","documentation","openapi","redoc","redocly","swagger","theme"],"latest_commit_sha":null,"homepage":"https://pages.dilanxd.com/redark","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/dilanx.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":"2023-01-10T01:34:09.000Z","updated_at":"2025-01-22T07:49:14.000Z","dependencies_parsed_at":"2025-02-19T16:35:01.077Z","dependency_job_id":"6f26431c-e4db-4933-a929-f6365a6eeb8d","html_url":"https://github.com/dilanx/redark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilanx%2Fredark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilanx%2Fredark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilanx%2Fredark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dilanx%2Fredark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dilanx","download_url":"https://codeload.github.com/dilanx/redark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248435361,"owners_count":21103013,"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":["api","dark","docs","documentation","openapi","redoc","redocly","swagger","theme"],"created_at":"2024-10-13T19:03:36.332Z","updated_at":"2025-04-11T15:52:22.622Z","avatar_url":"https://github.com/dilanx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redark\n\nA dark theme for [Redoc](https://github.com/Redocly/redoc)\n\n[Check out this demo!](https://pages.dilanxd.com/redark)\n\n## Installation\n\nFirst, install from npm:\n\n```\n$ npm i redark-theme\n```\n\nThen, add the script and stylesheet from `node_modules` to your HTML:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"node_modules/redark-theme/redark.css\" /\u003e\n\n\u003cscript src=\"node_modules/redark-theme/redark.js\"\u003e\u003c/script\u003e\n```\n\nFinally, initialize Redoc with the `redark` theme:\n\n```html\n\u003cbody\u003e\n  \u003cdiv id=\"redoc-container\"\u003e\u003c/div\u003e\n  \u003cscript src=\"https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    Redoc.init(\n      'url/to/your/spec',\n      { theme: redark },\n      document.getElementById('redoc-container')\n    );\n  \u003c/script\u003e\n\u003c/body\u003e\n```\n\nYou can also access the theme object in JavaScript:\n\n```js\nimport { theme } from 'redark-theme';\n\n// use with the Redoc React component or something\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilanx%2Fredark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdilanx%2Fredark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdilanx%2Fredark/lists"}