'NestJS Swagger DocumentBuilder.setDescription using CSS not working

When creating swagger interfaces using NestJS DocumentBuilder I'm able to create HTML, but no CSS is coming through.

I've tried using both of the following CSS styling and neither work:

<style>
    summary {
        color:#4990e2;
    }
</style>

// also tried

<summary style="color:#4990e2;">Show...</summary>

Still the Swagger page is generated with no CSS, even though normal HTML elements are working perfectly fine (picture attached).

The "Show..." should be colored blue from one of the css styling above.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source