express.ui.value_box_theme
express.ui.value_box_theme(name=None, *, fg=None, bg=None)
Value box theme
A theme for a value_box. Themes provide a convenient way to use your app's Bootstrap theme colors as the foreground or background colors of the value box. For more control, you can create your own theme with value_box_theme where you can pass foreground and background value.
See rstudio/bslib#themes for more examples.
Parameters
name: Optional[str] = None
-
The name of the theme, e.g.
"primary"
,"danger"
,"purple"
.name
can also be a Bootstrap-supported color:"blue"
,"purple"
,"pink"
,"red"
,"orange"
,"yellow"
,"green"
,"teal"
, and"cyan"
. These colors can be used withbg-NAME
,text-NAME
, andbg-gradient-NAME1-NAME2
. If aname
does not start withtext-
orbg-
, it will be auto-prefixed withbg-
. fg: Optional[str] = None
-
The background and foreground colors for the theme.
Returns
Type | Description |
---|---|
ValueBoxTheme |
A ValueBoxTheme |