Forum Discussion

cricketics's avatar
cricketics
Contributor
6 years ago

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

  • kyleshockey's avatar
    kyleshockey
    SmartBear Alumni (Retired)

    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;
    }
      • kyleshockey's avatar
        kyleshockey
        SmartBear Alumni (Retired)

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