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

3.x Themes on Swagger-UI 3.18.3: design looks broken #47

Open
DaRolla opened this issue Apr 25, 2024 · 1 comment
Open

3.x Themes on Swagger-UI 3.18.3: design looks broken #47

DaRolla opened this issue Apr 25, 2024 · 1 comment

Comments

@DaRolla
Copy link

DaRolla commented Apr 25, 2024

Hi there,
so I started using the latest Docker image swaggerapi/swagger-ui:latest. According to https://hub.docker.com/r/swaggerapi/swagger-ui this should be 3.18.3.
Then I downloaded the entire webpage and patched the css line according to the documentation.
Using Firefox the Debug Console shows that the css is loaded.
But the design looks broken.

<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>Swagger UI</title>
<!--    <link rel="stylesheet" type="text/css" href="Swagger%20UI-Dateien/swagger-ui.css"> -->
    <link rel="stylesheet" type="text/css" href="Swagger%20UI-Dateien/index.css">
    <link rel="icon" type="image/png" href="https://api.earthdawn.monster/favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="https://api.earthdawn.monster/favicon-16x16.png" sizes="16x16">
    <link rel="stylesheet" type="text/css" href="Swagger%20UI-Dateien/theme-feeling-blue.css">		
  </head>

Here comes a screenshot:
2024-04-25_09h23_31

Greetings,
DaRolla

@DaRolla DaRolla changed the title 3.x Themes look broken 3.x Themes on Swagger-UI 3.18.3: design looks broken Apr 25, 2024
@burtonrhodes
Copy link

I was able to get this to work by stacking the css files. In other words, keep the original swagger-ui.css in place. Then add the themed css below to override any original css styling.

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