swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.61k stars 8.97k forks source link

Feature - New - Dark Mode Toggle #10216

Open AllanOcelot opened 1 week ago

AllanOcelot commented 1 week ago

Please note, I am NOT a react developer, if you can improve this PR, please do so. I am happy to implement feedback!

I have provided a "dark mode" for swagger. Previously users have relied on third party provided stylesheets, or third party styling tools to achieve this. I believe it's a simple improvement that many users will actually find useful.

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

image ( Screenshot shows the addition of the dark mode icon, in the Topbar )

image ( Screenshot showing darkmode theme active )

image

image

image

image

image

Checklist

My PR contains...

My changes...

Documentation

Automated tests

AllanOcelot commented 1 week ago

Aim's to address: