Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme? #230

Open
wajeht opened this issue Oct 22, 2022 · 1 comment
Open

Theme? #230

wajeht opened this issue Oct 22, 2022 · 1 comment

Comments

@wajeht
Copy link

wajeht commented Oct 22, 2022

Is there a way to modify the swagger UI theme?

@shanliangdeYWJ
Copy link

shanliangdeYWJ commented Jul 17, 2023

The time is 2023-7-17 17:22:00 and I find this issue, I found this issue and thought there would be an answer, but there was no response. After a long time, I opened the source code and found a custom style option like this

swaggerUiOptions: { customCssUrl: [ '/stylesheets/swagger-custom.css', ], },

Then you can create a swagger-custom.css file in the stylesheets folder, All user styles are overlaid and written in swagger-custom. css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants