Replies: 2 comments 2 replies
-
You can include CSS in your apps by using html.link({"href": "url/to/your/stylesheet.css", "rel": "stylesheet"}) Alternatively, if you want to write raw CSS you can just use html.style("""
.my-class {
color: #26b72b;
}
""") At that point you need only add html.div({"class": "my-class"}, ...) |
Beta Was this translation helpful? Give feedback.
2 replies
-
For flask backend, it would be something like this, html.link(
{
"href": url_for('static', filename='file.css'),
"rel": "stylesheet",
"type": "text/css"
}
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to add css in ReactPy?
how to style to spesifc class in ReactPy?
Beta Was this translation helpful? Give feedback.
All reactions