notes = '''# Household spending on entertainment
In the **Eastern region**, the average Household spending on entertainment is **750**. The lowest recorded value was in **Qaryah alulya** in the year **2019**, with a value of **250**, and the highest recorded value was in **Qaryah alulya** in the year **2017**, with a value of **1250**
You can explore more data if you scroll down.
'''
import dash
from dash import html
import feffery_markdown_components as fmc
app = dash.Dash(__name__)
notes = '''
# Household spending on entertainment
## Level2 title demo
### Level3 title demo
In the **Eastern region**, the average Household spending on entertainment is **750**. The lowest recorded value was in **Qaryah alulya** in the year **2019**, with a value of **250**, and the highest recorded value was in **Qaryah alulya** in the year **2017**, with a value of **1250**
You can explore more data if you scroll down.
'''
app.layout = html.Div(
[
fmc.FefferyMarkdown(
markdownStr=notes,
h1Style={
'color': '#3bc9db'
},
h2Style={
'color': '#9775fa'
},
h3Style={
'color': '#51cf66'
},
strongStyle={
'color': '#fcc419'
},
style={
'background': '#0b253e',
'color': 'white',
'padding': 25
}
)
],
style={
'padding': 100
}
)
if __name__ == '__main__':
app.run(debug=True)
If you still want to use your CSS class, I suspect your CSS file is not in an “assets” folder at the root of your app. It is the default folder where Dash will look for assets, you can customize the path with the parameter assets_url_path in Dash() when creating your app (app = dash.Dash())
Second possibility, you didn’t provide __name__ in app = dash.Dash(__name__)