@app.route('/swaggerui/swagger-ui.css') def custom_css_theme(): return send_file('YOUR CUSTOM CSS FILE PATH')