cancel
Showing results for 
Search instead for 
Did you mean: 

Codeblock color and text color changed itself

Contributor

Codeblock color and text color changed itself

Hello Guys, untill few days ago on my swagger editor, my codeblock box used to be grey in color and the text was white. However, I checked today and it has changed to purple text with off white/light grey background. 

 

Can I revert back to the old school txt box? That looked better with white text. 

3 REPLIES 3

Re: Codeblock color and text color changed itself

Hi @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;
}
Contributor

Re: Codeblock color and text color changed itself

I am using swagger online editor. Can this solution you shared works for me @kyleshockey 

Re: Codeblock color and text color changed itself

@cricketics it doesn't, you'd need to have your own instance of Swagger Editor deployed in order to use custom CSS.

New Here?
Join us and watch the welcome video:
Watch the New Interview
APITestingMistake#2
Top Kudoed Authors