Forum Discussion
kyleshockey
Alumni
7 years agoHi cricketics!
We recently changed the code block styling to be more consistent throughout Swagger UI - previously, the styling differed based on where your code block was in your document.
We may change it again in the future, as there's a larger review of our design and UX going on.
In the meantime, here's some custom CSS that may restore the functionality you want:
.swagger-ui .markdown code, .swagger-ui .renderedMarkdown code { color: white; background-color: black; }
cricketics
6 years agoContributor
I am using swagger online editor. Can this solution you shared works for me kyleshockey
- kyleshockey6 years ago
Alumni
cricketics it doesn't, you'd need to have your own instance of Swagger Editor deployed in order to use custom CSS.