1.0.1 • Published 2 years ago
swagger-theme-changer v1.0.1
Swagger themes
Change Swagger documentation theme easily.
Usage
npm install swagger-theme-changerconst swaggerThemes = require('swagger-theme-changer');
const theme = swaggerThemes.getTheme('universal-dark');
app.use(
'/api-docs',
swaggerUi.serve,
swaggerUi.setup(
{ openapi: '3.0.0' },
{ customCss: theme }
);
);Themes
Dracula

const theme = swaggerThemes.getTheme('dracula');Gruvbox

const theme = swaggerThemes.getTheme('gruvbox');Monokai

const theme = swaggerThemes.getTheme('monokai');Nord Dark

const theme = swaggerThemes.getTheme('nord-dark');One Dark

const theme = swaggerThemes.getTheme('one-dark');Universal Dark

const theme = swaggerThemes.getTheme('universal-dark');X-Code Light

const theme = swaggerThemes.getTheme('x-code-light');