The SwaggerModule accepts options argument as a 4th argument:
public static setup(
path: string,
app: INestApplication,
document: SwaggerDocument,
options?: SwaggerCustomOptions
) {...}These options are passed down to the underlying swagger-ui-express package. Here is a SwaggerCustomOptions interface:
export interface SwaggerCustomOptions {
explorer?: boolean;
swaggerOptions?: any;
customCss?: string;
customJs?: string;
customfavIcon?: string;
swaggerUrl?: string;
customSiteTitle?: string;
}as you see, there is a customCss property available already.
https://github.com/ostranme/swagger-ui-themes