rx.App
:app = rx.App(
stylesheets=[
"https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css",
],
)
assets/
and pass the path to the stylesheet to rx.App
:app = rx.App(
stylesheets=[
"styles.css", # This path is relative to assets/
],
)
font_family
prop.Check out my font
rx.text(
"Check out my font",
font_family="IBM Plex Mono",
font_size="1.5em",
)
MyFont.otf
, copy it in assets/fonts
myfont.css
@font-face {
font-family: MyFont;
src: url("MyFont.otf") format("opentype");
}
@font-face {
font-family: MyFont;
font-weight: bold;
src: url("MyFont.otf") format("opentype");
}
app = rx.App(
stylesheets=[
"fonts/myfont.css", # This path is relative to assets/
],
)
MyFont
like any other FontFamily to style your components