{"id":28762780,"url":"https://github.com/stabldev/drf-dark-shade","last_synced_at":"2025-06-17T08:09:13.841Z","repository":{"id":208420771,"uuid":"720820059","full_name":"stabldev/drf-dark-shade","owner":"stabldev","description":"A dark themed API renderer for Django rest framework. Updated version of drf-dark-theme.","archived":false,"fork":false,"pushed_at":"2025-06-06T23:10:47.000Z","size":42,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T01:41:32.949Z","etag":null,"topics":["dark-theme","django-rest-framework","djangorestframework","drf"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/drf-dark-shade/","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/stabldev.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,"zenodo":null}},"created_at":"2023-11-19T17:43:06.000Z","updated_at":"2025-04-14T13:26:32.000Z","dependencies_parsed_at":"2024-05-28T07:45:56.308Z","dependency_job_id":"74edf7f1-77ca-4d13-9252-7fb4f4e22560","html_url":"https://github.com/stabldev/drf-dark-shade","commit_stats":null,"previous_names":["tokitouq/drf-dark-shade","moonlitgrace/drf-dark-shade","stabldev/drf-dark-shade"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stabldev/drf-dark-shade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabldev%2Fdrf-dark-shade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabldev%2Fdrf-dark-shade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabldev%2Fdrf-dark-shade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabldev%2Fdrf-dark-shade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stabldev","download_url":"https://codeload.github.com/stabldev/drf-dark-shade/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stabldev%2Fdrf-dark-shade/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260318723,"owners_count":22991124,"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":["dark-theme","django-rest-framework","djangorestframework","drf"],"created_at":"2025-06-17T08:09:12.138Z","updated_at":"2025-06-17T08:09:13.806Z","avatar_url":"https://github.com/stabldev.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drf-dark-shade\n[![Downloads](https://static.pepy.tech/badge/drf-dark-shade)](https://pepy.tech/project/drf-dark-shade) [![Pypi Badge](https://img.shields.io/pypi/v/drf-dark-shade.svg)](https://pypi.org/project/drf-dark-shade/)\n\nEnhance your Django Rest Framework (DRF) browsing experience with the `drf-dark-shade` package. This lightweight and easy-to-use extension bring a sleek dark theme to the DRF browsable API, reducing eye strain and providing a modern, visually appealing interface for developers.\n\n![Screenshot from 2023-11-21 12-45-09](https://github.com/tokitouq/drf-dark-shade/assets/114811070/c1f79290-f692-4eaf-bcbd-7b619bcc7962)\n\u003cp align=\"center\"\u003eDeep Forest Theme\u003c/p\u003e\n\n\n## Installation:\n1. Install `drf-dark-shade` package using **pip** or **poetry**\n    ```bash\n    pip install drf_dark_shade\n    # or\n    poetry add drf_dark_shade\n    ```\n\n2. Add `drf_dark_shade` to your `INSTALLED_APPS` in your Django project's settings.\n    ```python\n    INSTALLED_APPS = [\n        # ...\n        \"rest_framework\", # django-rest-framework required\n        \"drf_dark_shade\",\n    ]\n    ```\n3. Add `drf_dark_shade` renderer to `REST_FRAMEWORK` config\n    ```python\n    REST_FRAMEWORK = {\n        \"DEFAULT_RENDERER_CLASSES\": (\n            \"rest_framework.renderers.JSONRenderer\",\n            \"drf_dark_shade.renderers.DeepForestBrowsableAPIRenderer\", # configure custom renderer\n        ),\n        # ...\n    }\n    ```\n\n## Override templates\nTo override providing templates:\n1. Configure root `templates` dir in your django app\n    ```python\n    TEMPLATES = [\n        {\n            # ...\n            # configure root templates\n            \"DIRS\": [os.path.join(BASE_DIR, \"templates\")],\n            \"APP_DIRS\": True,\n            # ...\n        },\n    ]\n    ```\n2. Create template to override with name of the theme you want, like:    \n   `templates/drf_dark_shade/deep-forest.html`\n\nCheck `/examples/` for example configuration with setup guide.\n\nAll set! now run app and visit your API endpoint.    \nEnjoy Dark 🌃    \nMore themes will be added later. PRs are welcome ❤️\n\n## Contribution\n\nContributions are welcome!\\\nIf you encounter issues or want to add new features, feel free to open pull requests.\\\nGive a ⭐️ if you find this project interesting and useful!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstabldev%2Fdrf-dark-shade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstabldev%2Fdrf-dark-shade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstabldev%2Fdrf-dark-shade/lists"}