I’m using the css provided in Dash Getting Started here: https://codepen.io/chriddyp/pen/bWLwgP.css
I like it, but want to bring in my own custom font. I’m able to load it using the following:
base_css = 'https://codepen.io/chriddyp/pen/bWLwgP.css'
external_css = [base_css, '/static/local.css']
for css in external_css:
app.css.append_css({"external_url": css})
@app.server.route('/static/<path>')
def static_file(path):
static_folder = os.path.join('/var/www/FlaskApp/FlaskApp/', 'static')
return send_from_directory(static_folder, path)
However, when I save the base_css (again provided by Dash Get Started) as an actual .CSS and load it through my ‘/static/local.css’, it doesn’t work for me. Thoughts on why, is it format?