Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redark-theme

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redark-theme

A dark theme for Redoc

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35
decreased by-59.3%
Maintainers
1
Weekly downloads
 
Created
Source

redark

A dark theme for Redoc

Check out this demo!

Installation

First, install from npm:

$ npm i redark-theme

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

<link rel="stylesheet" href="node_modules/redark-theme/redark.css" />

<script src="node_modules/redark-theme/redark.js"></script>

Finally, initialize Redoc with the redark theme:

<body>
  <div id="redoc-container"></div>
  <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
  <script>
    Redoc.init(
      'url/to/your/spec',
      { theme: redark },
      document.getElementById('redoc-container')
    );
  </script>
</body>

You can also access the theme object in JavaScript:

import { theme } from 'redark-theme';

// use with the Redoc React component or something

Keywords

FAQs

Package last updated on 10 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc