Cannot add local css

Hi experts,

I’m following the doc here:
https://dash.plot.ly/external-resources

I put font-awesome.css in assets but it doesn’t work for me, at least this line doesn’t work:

    dcc.Tab(
        className="fas fa-bar-chart",
        label='Analysis'
)

I tried to dump everything from the font-awesome zip in the same folder but still doesn’t work. Thanks in advance.

Edit
I’m pretty sure this doesn’t work. I have to use an external css to make it work. No idea why. But I cannot modify external css, which makes it useless.

I’ve successfully manged to get Font Awesome working locally with Dash. Here: https://github.com/ned2/slapdash/tree/master/src/slapdash/assets

1 Like