swagger-ui-themes | css themes to spice up your Swagger docs | Generator Utils library
kandi X-RAY | swagger-ui-themes Summary
kandi X-RAY | swagger-ui-themes Summary
Swagger Docs are awesome. Why not make them look better!.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of swagger-ui-themes
swagger-ui-themes Key Features
swagger-ui-themes Examples and Code Snippets
Community Discussions
Trending Discussions on swagger-ui-themes
QUESTION
I have a simple ASP.NET WebApi 2 project where I'd like to use Swagger and customise the CSS slightly. The "flattop" theme by ostranme is perfect, and while I've followed the documentation to inject a stylesheet the CSS seems to have no effect.
I have this in my Startup class where "SwaggerCSS" is the logical name from my embedded resource:
...ANSWER
Answered 2017-Nov-20 at 10:06That's embarrassing, I haven't implemented Swagger UI yet. Problem solved!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install swagger-ui-themes
For 3.x, make sure to either remove/comment out the link to swagger-ui.css or load the desired theme after to override the default Swagger UI styles. If you have issues loading themes with 3.x, try modifying the index.html to load the theme.css absolutely last right before the closing body or html tag. [workaround] 3.x theme loading issue (#25)
For 2.x, make sure to either remove/comment out the link to screen.css or load the desired theme after to override the default Swagger UI styles.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page