Style
Add a custom piece of CSS.
@solara.component
def Style(value: str = ""):
...
Note that this is considered an advanced feature, and should be used with caution.
Arguments
value
: The CSS string to insert into the page.
Example
CSS Example that styles the button below
.mybutton {
font-family: Serif;
}
/* this selector has to be very specific to override the vuetify style */
.v-btn.mybutton {
color: #4CAF50; /* Green */
}
/* vuetify's background color css has very high CSS-specificity, so we use !important */
.mybutton {
background-color: #FF9800 !important; /* Orange */
}