drf-dark-theme

Dark Themes for Django Rest Framework


Keywords
api, django, rest, theme
License
BSD-3-Clause
Install
pip install drf-dark-theme==0.3

Documentation

drf-dark-theme

Dark themes for Django REST Framework

Stellar Color Palette

https://raw.githubusercontent.com/aledista/drf-dark-theme/master/drf_dark_theme/static/drf_dark_theme/img/stellar-palette.png

Stellar Theme

https://raw.githubusercontent.com/aledista/drf-dark-theme/master/drf_dark_theme/static/drf_dark_theme/img/stellar-ss.png

Moonshine Color Palette

https://raw.githubusercontent.com/aledista/drf-dark-theme/master/drf_dark_theme/static/drf_dark_theme/img/moonshine-palette.png

Moonshine Theme

https://raw.githubusercontent.com/aledista/drf-dark-theme/master/drf_dark_theme/static/drf_dark_theme/img/moonshine-ss.png

Installation

Install using pip

pip install drf-dark-theme

Add 'drf_chaos' to your INSTALLED_APPS setting

INSTALLED_APPS = (
    ...
    'drf_dark_theme',
)

Add either StellarBrowsableAPIRenderer or MoonshineBrowsableAPIRenderer to DEFAULT_RENDERER_CLASSES

REST_FRAMEWORK = {
    'DEFAULT_RENDERER_CLASSES': (
        ...
        'drf_dark_theme.renderers.StellarBrowsableAPIRenderer',
    )
}