Adding Static Assets

This documentation is for Dash Enterprise.
Dash Enterprise is the fastest way to write & deploy Dash apps and
Jupyter notebooks.
10% of the Fortune 500 uses Dash Enterprise to productionize AI and
data science apps. Find out if your company is using Dash Enterprise

Adding Your Own CSS and JavaScript to Dash Apps

Including custom CSS or JavaScript in your Dash apps is simple. Just
create a folder named assets in the root of your app directory and include
your CSS and JavaScript files in that folder. Dash will automatically
serve all of the files that are included in this folder.

For more information about custom CSS, JavaScripts, HTML index template,
meta tags, or serving Dash’s component libraries locally, see
Dash Docs.

Embedding Images in Your Dash Apps

Apps deployed on Dash Enterprise are deployed under an app name
prefix. As a consequence, images that are added to the assets folder will
require the app name prefix in the relative path. For example, with the
below folder structure:

-- assets/
   |-- my-image.png


your file you would include: