From 2ec19ce65812862fbfb3f04e7a4381cf7063bd0b Mon Sep 17 00:00:00 2001 From: sukantamajhi Date: Tue, 13 Jan 2026 18:40:06 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20theme=20toggle=20functionalit?= =?UTF-8?q?y=20to=20Swagger=20UI=20with=20dark/light=20mode=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/openapi/docs.py | 102 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/fastapi/openapi/docs.py b/fastapi/openapi/docs.py index 82380f85d9..a5d6c02aff 100644 --- a/fastapi/openapi/docs.py +++ b/fastapi/openapi/docs.py @@ -121,8 +121,81 @@ def get_swagger_ui_html( {title} + +
@@ -152,6 +225,35 @@ def get_swagger_ui_html( html += """ + """