@createiq/swagger-ui-scss
v5.18.2
Published
A repackaging of [Swagger UI's](https://github.com/swagger-api/swagger-ui) SCSS files, for use in projects that would like to adapt them by overriding the variables.
Downloads
184
Readme
swagger-ui-scss
A repackaging of Swagger UI's SCSS files, for use in projects that would like to adapt them by overriding the variables.
Usage
npm i @createiq/swagger-ui-scss
Replace any import of the default Swagger UI CSS file with a reference to main.scss:
- @import '~swagger-ui-react/swagger-ui.css';
+ @import '~@createiq/swagger-ui-scss/style/main.scss';
Then you can override the variables that are used internally by Swagger UI:
$color-primary: #6750a4;