jwt tokens

This will be a short one.

So, if you are using Swagger with your project (for our example we will be using .NET Core), you might want to use the SwaggerUI with Dark Theme, since the default one can blind you.

Quick and easy way of doing this is adding this piece of css code that can be found here: SwaggerDark/SwaggerDark.css at master · Amoenus/SwaggerDark · GitHub

Big shoutout to the original blog post:
Turn Swagger Theme to the Dark Mode – DEV Community

If you are using the standard Controller from the .NET Core Web Api, you just need to enable support for static files in the Configure method:


On the other hand, if you are using Fast Endpoints, you can simply do:


application.UseSwaggerUi(config => config.TransformToExternalPath = (internalUiRoute, request) =>
config.CustomInlineStyles = swaggerDark;

return internalUiRoute;


Where swaggerDark variable is the css copied from the website that I supplied, specifically this: SwaggerDark/SwaggerDark.css at master · Amoenus/SwaggerDark · GitHub

Happy Coding!