You can change more than just css. Also, if you created your Loopback application using slc loopback like me, you will find that your server/server.js does not look like you can configure it, as shown in the accepted answer.
Instead, you can use server/component-config.json to server/component-config.json loopback component explorer to use an alternate directory for static files for swagger-ui. In the uiDirs configuration below, I configured it to search for static files in the server/explorer directory.
{ "loopback-component-explorer": { "mountPath": "/explorer", "uiDirs": "server/explorer", "apiInfo": { "title": "My API", "description": "Description of my API" } } }
& AST; When using IISNode uiDirs should be set to "explorer" otherwise "server/explorer" according to the comment by @phegde
In my server directory, I created index.html, which is a copy from node_modules/loopback-component-explorer/public/index.html , and also created a logo folder.

And finally, if you want to create custom css, copy node_modules/loopback-component-explorer/public/css/loopbackStyles.css to server/explorer/css/loopbackStyles.css
Christiaan westerbeek
source share