Referencing css locally

how do you reference css from the file path of your dash app?

I used the vanguard code and ran it from the desktop locally.

external_css = ["",

i have a “css” folder in the same directory as

Try to locate the stylesheet to .\venv\Lib\site-packages\dash_core_components\stylesheet.css

And then add following code:

import dash_core_components as dcc


Please do not do this. This is not in the official API and things that are not in our official API will break. It will also not work when you upgrade your dash-core-components package and we publish releases very often (see Part 1. Installation | Dash for Python Documentation | Plotly for the latest version)

Please use the official solution in our official docs here: Adding CSS & JS and Overriding the Page-Load Template | Dash for Python Documentation | Plotly

1 Like

@chriddyp Thanks for your reminder. :grinning: I was using dash 0.21 and now going to upgrade to the latest version.