Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dilanx/redark

A dark theme for Redoc
https://github.com/dilanx/redark

api dark docs documentation openapi redoc redocly swagger theme

Last synced: about 1 month ago
JSON representation

A dark theme for Redoc

Awesome Lists containing this project

README

        

# redark

A dark theme for [Redoc](https://github.com/Redocly/redoc)

[Check out this demo!](https://docs.dilanxd.com/redark)

## Installation

First, install from npm:

```
$ npm i redark-theme
```

Then, add the script and stylesheet from `node_modules` to your HTML:

```html

```

Finally, initialize Redoc with the `redark` theme:

```html




Redoc.init(
'url/to/your/spec',
{ theme: redark },
document.getElementById('redoc-container')
);

```

You can also access the theme object in JavaScript:

```js
import { theme } from 'redark-theme';

// use with the Redoc React component or something
```