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: 6 months ago
JSON representation
A dark theme for Redoc
- Host: GitHub
- URL: https://github.com/dilanx/redark
- Owner: dilanx
- Created: 2023-01-10T01:34:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-24T22:29:35.000Z (11 months ago)
- Last Synced: 2025-04-08T12:17:25.716Z (6 months ago)
- Topics: api, dark, docs, documentation, openapi, redoc, redocly, swagger, theme
- Language: JavaScript
- Homepage: https://pages.dilanxd.com/redark
- Size: 9.77 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redark
A dark theme for [Redoc](https://github.com/Redocly/redoc)
[Check out this demo!](https://pages.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
```