diff --git a/.nojekyll b/.nojekyll index 1dbf1b0..10b0758 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -91e096a9 \ No newline at end of file +94ee667b \ No newline at end of file diff --git a/index.html b/index.html index 4ad633f..f71670a 100644 --- a/index.html +++ b/index.html @@ -188,15 +188,15 @@

Installation

Usage

-

To use a theme, call the theme function and add it to your App’s UI definition.

+

To use a theme, add a shinyswatch.theme theme object to your App’s UI definition.

# Minty theme
-shinyswatch.theme.minty()
+shinyswatch.theme.minty
 
 # Sketchy theme
-shinyswatch.theme.sketchy()
+shinyswatch.theme.sketchy
 
 # Superhero theme
-shinyswatch.theme.superhero()
+shinyswatch.theme.superhero

Example Shiny application:

#| standalone: true
 #| components: [editor, viewer]
@@ -209,7 +209,7 @@ 

Usage

app_ui = ui.page_fluid( # Theme code - start - shinyswatch.theme.darkly(), + shinyswatch.theme.darkly, # Theme code - end ui.input_slider("num", "Number:", min=10, max=100, value=30), ui.output_text_verbatim("slider_val"), @@ -273,6 +273,59 @@

Theme picker

shiny shinyswatch
+
+
+

Plot Theming

+

shinyswatch themes include a .colors attribute that can be used to theme plots or other outputs and UI elements. In the example below, try changing the theme and re-running the app to see how the plot changes.

+
#| standalone: true
+#| components: [editor, viewer]
+#| layout: vertical
+#| viewerHeight: 800
+## file: app.py
+import matplotlib.pyplot as plt
+import numpy as np
+from shiny import App, render, req, ui
+
+# Try changing the theme from minty to united
+from shinyswatch.theme import minty as shiny_theme
+
+app_ui = ui.page_fluid(
+    shiny_theme,
+    ui.input_slider("n", "N", min=0, max=100, value=20),
+    ui.card(ui.output_plot("plot"))
+)
+
+
+def server(input):
+    @render.plot(alt="A histogram")
+    def plot():
+        np.random.seed(19680801)
+        x = 100 + 15 * np.random.randn(437)
+
+        fig, ax = plt.subplots()
+        ax.hist(x, input.n(), density=True, color=shiny_theme.colors.primary)
+
+        # Theme the plot to match the current theme
+        fig.patch.set_facecolor("none")
+        ax.set_facecolor("none")
+
+        color_fg = shiny_theme.colors.body_color
+        ax.tick_params(axis="both", colors=color_fg)
+        ax.spines["bottom"].set_color(color_fg)
+        ax.spines["top"].set_color(color_fg)
+        ax.spines["left"].set_color(color_fg)
+        ax.spines["right"].set_color(color_fg)
+
+        return fig
+
+
+app = App(app_ui, server)
+
+## file: requirements.txt
+numpy
+matplotlib
+shiny
+shinyswatch
diff --git a/objects.json b/objects.json index a072f23..e9887e6 100644 --- a/objects.json +++ b/objects.json @@ -1 +1 @@ -{"project": "shinyswatch", "version": "0.0.9999", "count": 31, "items": [{"name": "shinyswatch.get_theme", "domain": "py", "role": "function", "priority": "1", "uri": "reference/get_theme.html#shinyswatch.get_theme", "dispname": "-"}, {"name": "shinyswatch._get_theme.get_theme", "domain": "py", "role": "function", "priority": "1", "uri": "reference/get_theme.html#shinyswatch.get_theme", "dispname": "shinyswatch.get_theme"}, {"name": "shinyswatch.theme_picker_ui", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_ui.html#shinyswatch.theme_picker_ui", "dispname": "-"}, {"name": "shinyswatch._theme_picker.theme_picker_ui", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_ui.html#shinyswatch.theme_picker_ui", "dispname": "shinyswatch.theme_picker_ui"}, {"name": "shinyswatch.theme_picker_server", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_server.html#shinyswatch.theme_picker_server", "dispname": "-"}, {"name": "shinyswatch._theme_picker.theme_picker_server", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_server.html#shinyswatch.theme_picker_server", "dispname": "shinyswatch.theme_picker_server"}, {"name": "shinyswatch.theme.cerulean", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.cerulean.html#shinyswatch.theme.cerulean", "dispname": "-"}, {"name": "shinyswatch.theme.cosmo", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.cosmo.html#shinyswatch.theme.cosmo", "dispname": "-"}, {"name": "shinyswatch.theme.cyborg", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.cyborg.html#shinyswatch.theme.cyborg", "dispname": "-"}, {"name": "shinyswatch.theme.darkly", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.darkly.html#shinyswatch.theme.darkly", "dispname": "-"}, {"name": "shinyswatch.theme.flatly", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.flatly.html#shinyswatch.theme.flatly", "dispname": "-"}, {"name": "shinyswatch.theme.journal", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.journal.html#shinyswatch.theme.journal", "dispname": "-"}, {"name": "shinyswatch.theme.litera", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.litera.html#shinyswatch.theme.litera", "dispname": "-"}, {"name": "shinyswatch.theme.lumen", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.lumen.html#shinyswatch.theme.lumen", "dispname": "-"}, {"name": "shinyswatch.theme.lux", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.lux.html#shinyswatch.theme.lux", "dispname": "-"}, {"name": "shinyswatch.theme.materia", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.materia.html#shinyswatch.theme.materia", "dispname": "-"}, {"name": "shinyswatch.theme.minty", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.minty.html#shinyswatch.theme.minty", "dispname": "-"}, {"name": "shinyswatch.theme.morph", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.morph.html#shinyswatch.theme.morph", "dispname": "-"}, {"name": "shinyswatch.theme.pulse", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.pulse.html#shinyswatch.theme.pulse", "dispname": "-"}, {"name": "shinyswatch.theme.quartz", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.quartz.html#shinyswatch.theme.quartz", "dispname": "-"}, {"name": "shinyswatch.theme.sandstone", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.sandstone.html#shinyswatch.theme.sandstone", "dispname": "-"}, {"name": "shinyswatch.theme.simplex", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.simplex.html#shinyswatch.theme.simplex", "dispname": "-"}, {"name": "shinyswatch.theme.sketchy", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.sketchy.html#shinyswatch.theme.sketchy", "dispname": "-"}, {"name": "shinyswatch.theme.slate", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.slate.html#shinyswatch.theme.slate", "dispname": "-"}, {"name": "shinyswatch.theme.solar", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.solar.html#shinyswatch.theme.solar", "dispname": "-"}, {"name": "shinyswatch.theme.spacelab", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.spacelab.html#shinyswatch.theme.spacelab", "dispname": "-"}, {"name": "shinyswatch.theme.superhero", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.superhero.html#shinyswatch.theme.superhero", "dispname": "-"}, {"name": "shinyswatch.theme.united", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.united.html#shinyswatch.theme.united", "dispname": "-"}, {"name": "shinyswatch.theme.vapor", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.vapor.html#shinyswatch.theme.vapor", "dispname": "-"}, {"name": "shinyswatch.theme.yeti", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.yeti.html#shinyswatch.theme.yeti", "dispname": "-"}, {"name": "shinyswatch.theme.zephyr", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme.zephyr.html#shinyswatch.theme.zephyr", "dispname": "-"}]} \ No newline at end of file +{"project": "shinyswatch", "version": "0.0.9999", "count": 33, "items": [{"name": "shinyswatch.get_theme", "domain": "py", "role": "function", "priority": "1", "uri": "reference/get_theme.html#shinyswatch.get_theme", "dispname": "-"}, {"name": "shinyswatch._get_theme.get_theme", "domain": "py", "role": "function", "priority": "1", "uri": "reference/get_theme.html#shinyswatch.get_theme", "dispname": "shinyswatch.get_theme"}, {"name": "shinyswatch.get_theme_deps", "domain": "py", "role": "function", "priority": "1", "uri": "reference/get_theme_deps.html#shinyswatch.get_theme_deps", "dispname": "-"}, {"name": "shinyswatch._get_theme_deps.get_theme_deps", "domain": "py", "role": "function", "priority": "1", "uri": "reference/get_theme_deps.html#shinyswatch.get_theme_deps", "dispname": "shinyswatch.get_theme_deps"}, {"name": "shinyswatch.theme_picker_ui", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_ui.html#shinyswatch.theme_picker_ui", "dispname": "-"}, {"name": "shinyswatch._theme_picker.theme_picker_ui", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_ui.html#shinyswatch.theme_picker_ui", "dispname": "shinyswatch.theme_picker_ui"}, {"name": "shinyswatch.theme_picker_server", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_server.html#shinyswatch.theme_picker_server", "dispname": "-"}, {"name": "shinyswatch._theme_picker.theme_picker_server", "domain": "py", "role": "function", "priority": "1", "uri": "reference/theme_picker_server.html#shinyswatch.theme_picker_server", "dispname": "shinyswatch.theme_picker_server"}, {"name": "shinyswatch.theme.cerulean", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.cerulean.html#shinyswatch.theme.cerulean", "dispname": "-"}, {"name": "shinyswatch.theme.cosmo", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.cosmo.html#shinyswatch.theme.cosmo", "dispname": "-"}, {"name": "shinyswatch.theme.cyborg", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.cyborg.html#shinyswatch.theme.cyborg", "dispname": "-"}, {"name": "shinyswatch.theme.darkly", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.darkly.html#shinyswatch.theme.darkly", "dispname": "-"}, {"name": "shinyswatch.theme.flatly", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.flatly.html#shinyswatch.theme.flatly", "dispname": "-"}, {"name": "shinyswatch.theme.journal", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.journal.html#shinyswatch.theme.journal", "dispname": "-"}, {"name": "shinyswatch.theme.litera", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.litera.html#shinyswatch.theme.litera", "dispname": "-"}, {"name": "shinyswatch.theme.lumen", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.lumen.html#shinyswatch.theme.lumen", "dispname": "-"}, {"name": "shinyswatch.theme.lux", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.lux.html#shinyswatch.theme.lux", "dispname": "-"}, {"name": "shinyswatch.theme.materia", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.materia.html#shinyswatch.theme.materia", "dispname": "-"}, {"name": "shinyswatch.theme.minty", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.minty.html#shinyswatch.theme.minty", "dispname": "-"}, {"name": "shinyswatch.theme.morph", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.morph.html#shinyswatch.theme.morph", "dispname": "-"}, {"name": "shinyswatch.theme.pulse", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.pulse.html#shinyswatch.theme.pulse", "dispname": "-"}, {"name": "shinyswatch.theme.quartz", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.quartz.html#shinyswatch.theme.quartz", "dispname": "-"}, {"name": "shinyswatch.theme.sandstone", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.sandstone.html#shinyswatch.theme.sandstone", "dispname": "-"}, {"name": "shinyswatch.theme.simplex", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.simplex.html#shinyswatch.theme.simplex", "dispname": "-"}, {"name": "shinyswatch.theme.sketchy", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.sketchy.html#shinyswatch.theme.sketchy", "dispname": "-"}, {"name": "shinyswatch.theme.slate", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.slate.html#shinyswatch.theme.slate", "dispname": "-"}, {"name": "shinyswatch.theme.solar", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.solar.html#shinyswatch.theme.solar", "dispname": "-"}, {"name": "shinyswatch.theme.spacelab", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.spacelab.html#shinyswatch.theme.spacelab", "dispname": "-"}, {"name": "shinyswatch.theme.superhero", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.superhero.html#shinyswatch.theme.superhero", "dispname": "-"}, {"name": "shinyswatch.theme.united", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.united.html#shinyswatch.theme.united", "dispname": "-"}, {"name": "shinyswatch.theme.vapor", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.vapor.html#shinyswatch.theme.vapor", "dispname": "-"}, {"name": "shinyswatch.theme.yeti", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.yeti.html#shinyswatch.theme.yeti", "dispname": "-"}, {"name": "shinyswatch.theme.zephyr", "domain": "py", "role": "attribute", "priority": "1", "uri": "reference/theme.zephyr.html#shinyswatch.theme.zephyr", "dispname": "-"}]} \ No newline at end of file diff --git a/reference/get_theme.html b/reference/get_theme.html index 9ec86e4..70278be 100644 --- a/reference/get_theme.html +++ b/reference/get_theme.html @@ -146,6 +146,12 @@ get_theme + + @@ -348,7 +354,7 @@

get_theme

get_theme(name)

-

Create a Bootswatch and Bootstrap 5 theme for Shiny.

+

Get a Bootstrap 5 Bootswatch theme for Shiny.

Parameters

@@ -379,6 +385,10 @@

Parameters

Returns

++++ @@ -387,8 +397,8 @@

Returns

- - + +
Type
list[HTMLDependency]A list of HTML dependencies.ShinyswatchThemeA Bootswatch and Bootstrap 5 theme for Shiny.
@@ -406,7 +416,7 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", shinyswatch.get_theme("superhero"), ui.layout_sidebar( @@ -441,8 +451,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/get_theme_deps.html b/reference/get_theme_deps.html new file mode 100644 index 0000000..77fc9f3 --- /dev/null +++ b/reference/get_theme_deps.html @@ -0,0 +1,816 @@ + + + + + + + + + +shinyswatch + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+ +
+ + +
+ + + +
+ + + + +
+

get_theme_deps

+

get_theme_deps(name)

+

Get the HTML dependencies for a Bootstrap 5 Bootswatch theme for Shiny.

+
+

Parameters

+ ++++++ + + + + + + + + + + + + + + + + +
NameTypeDescriptionDefault
nameBSW5_THEME_NAMEA Bootswatch theme name.required
+
+
+

Returns

+ + + + + + + + + + + + + +
TypeDescription
list[HTMLDependency]A list of HTML dependencies.
+ + +
+
+ +
+ +
+ + + + + \ No newline at end of file diff --git a/reference/index.html b/reference/index.html index 5769407..7712b43 100644 --- a/reference/index.html +++ b/reference/index.html @@ -141,6 +141,12 @@ get_theme + + @@ -349,7 +355,11 @@

Get a theme

get_theme -Create a Bootswatch and Bootstrap 5 theme for Shiny. +Get a Bootstrap 5 Bootswatch theme for Shiny. + + +get_theme_deps +Get the HTML dependencies for a Bootstrap 5 Bootswatch theme for Shiny. diff --git a/reference/theme.cerulean.html b/reference/theme.cerulean.html index 6dea19b..8851653 100644 --- a/reference/theme.cerulean.html +++ b/reference/theme.cerulean.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.cerulean

-

theme.cerulean()

+

theme.cerulean

cerulean Bootswatch theme

Visit https://bootswatch.com/cerulean/ to see a Bootswatch's demo of the cerulean theme.

+
+

Attributes

+ +++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.cerulean(), + shinyswatch.theme.cerulean, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.cosmo.html b/reference/theme.cosmo.html index 4929566..22196cc 100644 --- a/reference/theme.cosmo.html +++ b/reference/theme.cosmo.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.cosmo

-

theme.cosmo()

+

theme.cosmo

cosmo Bootswatch theme

Visit https://bootswatch.com/cosmo/ to see a Bootswatch's demo of the cosmo theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.cosmo(), + shinyswatch.theme.cosmo, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.cyborg.html b/reference/theme.cyborg.html index a9cbc85..be96f21 100644 --- a/reference/theme.cyborg.html +++ b/reference/theme.cyborg.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.cyborg

-

theme.cyborg()

+

theme.cyborg

cyborg Bootswatch theme

Visit https://bootswatch.com/cyborg/ to see a Bootswatch's demo of the cyborg theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.cyborg(), + shinyswatch.theme.cyborg, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.darkly.html b/reference/theme.darkly.html index 98fa10b..937d196 100644 --- a/reference/theme.darkly.html +++ b/reference/theme.darkly.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.darkly

-

theme.darkly()

+

theme.darkly

darkly Bootswatch theme

Visit https://bootswatch.com/darkly/ to see a Bootswatch's demo of the darkly theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.darkly(), + shinyswatch.theme.darkly, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.flatly.html b/reference/theme.flatly.html index 076fd6f..6e22c41 100644 --- a/reference/theme.flatly.html +++ b/reference/theme.flatly.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.flatly

-

theme.flatly()

+

theme.flatly

flatly Bootswatch theme

Visit https://bootswatch.com/flatly/ to see a Bootswatch's demo of the flatly theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.flatly(), + shinyswatch.theme.flatly, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.journal.html b/reference/theme.journal.html index 33e55f6..488cd38 100644 --- a/reference/theme.journal.html +++ b/reference/theme.journal.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.journal

-

theme.journal()

+

theme.journal

journal Bootswatch theme

Visit https://bootswatch.com/journal/ to see a Bootswatch's demo of the journal theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.journal(), + shinyswatch.theme.journal, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.litera.html b/reference/theme.litera.html index b057ce7..5a6c678 100644 --- a/reference/theme.litera.html +++ b/reference/theme.litera.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.litera

-

theme.litera()

+

theme.litera

litera Bootswatch theme

Visit https://bootswatch.com/litera/ to see a Bootswatch's demo of the litera theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.litera(), + shinyswatch.theme.litera, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.lumen.html b/reference/theme.lumen.html index 545b50e..8f4a195 100644 --- a/reference/theme.lumen.html +++ b/reference/theme.lumen.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.lumen

-

theme.lumen()

+

theme.lumen

lumen Bootswatch theme

Visit https://bootswatch.com/lumen/ to see a Bootswatch's demo of the lumen theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.lumen(), + shinyswatch.theme.lumen, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.lux.html b/reference/theme.lux.html index 8d0a388..805af0b 100644 --- a/reference/theme.lux.html +++ b/reference/theme.lux.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.lux

-

theme.lux()

+

theme.lux

lux Bootswatch theme

Visit https://bootswatch.com/lux/ to see a Bootswatch's demo of the lux theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.lux(), + shinyswatch.theme.lux, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.materia.html b/reference/theme.materia.html index e4b872e..3e1102a 100644 --- a/reference/theme.materia.html +++ b/reference/theme.materia.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.materia

-

theme.materia()

+

theme.materia

materia Bootswatch theme

Visit https://bootswatch.com/materia/ to see a Bootswatch's demo of the materia theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.materia(), + shinyswatch.theme.materia, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.minty.html b/reference/theme.minty.html index 477924d..207eddc 100644 --- a/reference/theme.minty.html +++ b/reference/theme.minty.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.minty

-

theme.minty()

+

theme.minty

minty Bootswatch theme

Visit https://bootswatch.com/minty/ to see a Bootswatch's demo of the minty theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.minty(), + shinyswatch.theme.minty, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.morph.html b/reference/theme.morph.html index a69e5b3..1878a8c 100644 --- a/reference/theme.morph.html +++ b/reference/theme.morph.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.morph

-

theme.morph()

+

theme.morph

morph Bootswatch theme

Visit https://bootswatch.com/morph/ to see a Bootswatch's demo of the morph theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.morph(), + shinyswatch.theme.morph, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.pulse.html b/reference/theme.pulse.html index 211299d..bcf448f 100644 --- a/reference/theme.pulse.html +++ b/reference/theme.pulse.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.pulse

-

theme.pulse()

+

theme.pulse

pulse Bootswatch theme

Visit https://bootswatch.com/pulse/ to see a Bootswatch's demo of the pulse theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.pulse(), + shinyswatch.theme.pulse, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.quartz.html b/reference/theme.quartz.html index 65b0d9d..0b15cc0 100644 --- a/reference/theme.quartz.html +++ b/reference/theme.quartz.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.quartz

-

theme.quartz()

+

theme.quartz

quartz Bootswatch theme

Visit https://bootswatch.com/quartz/ to see a Bootswatch's demo of the quartz theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.quartz(), + shinyswatch.theme.quartz, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.sandstone.html b/reference/theme.sandstone.html index 7aaf243..d007af5 100644 --- a/reference/theme.sandstone.html +++ b/reference/theme.sandstone.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.sandstone

-

theme.sandstone()

+

theme.sandstone

sandstone Bootswatch theme

Visit https://bootswatch.com/sandstone/ to see a Bootswatch's demo of the sandstone theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.sandstone(), + shinyswatch.theme.sandstone, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.simplex.html b/reference/theme.simplex.html index 0387ec4..b74400d 100644 --- a/reference/theme.simplex.html +++ b/reference/theme.simplex.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.simplex

-

theme.simplex()

+

theme.simplex

simplex Bootswatch theme

Visit https://bootswatch.com/simplex/ to see a Bootswatch's demo of the simplex theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.simplex(), + shinyswatch.theme.simplex, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.sketchy.html b/reference/theme.sketchy.html index 34a8966..40e28dc 100644 --- a/reference/theme.sketchy.html +++ b/reference/theme.sketchy.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.sketchy

-

theme.sketchy()

+

theme.sketchy

sketchy Bootswatch theme

Visit https://bootswatch.com/sketchy/ to see a Bootswatch's demo of the sketchy theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.sketchy(), + shinyswatch.theme.sketchy, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.slate.html b/reference/theme.slate.html index 589f5b9..5c4ada7 100644 --- a/reference/theme.slate.html +++ b/reference/theme.slate.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.slate

-

theme.slate()

+

theme.slate

slate Bootswatch theme

Visit https://bootswatch.com/slate/ to see a Bootswatch's demo of the slate theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.slate(), + shinyswatch.theme.slate, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.solar.html b/reference/theme.solar.html index af6104f..9033ea2 100644 --- a/reference/theme.solar.html +++ b/reference/theme.solar.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.solar

-

theme.solar()

+

theme.solar

solar Bootswatch theme

Visit https://bootswatch.com/solar/ to see a Bootswatch's demo of the solar theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.solar(), + shinyswatch.theme.solar, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.spacelab.html b/reference/theme.spacelab.html index 91b50af..e949265 100644 --- a/reference/theme.spacelab.html +++ b/reference/theme.spacelab.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.spacelab

-

theme.spacelab()

+

theme.spacelab

spacelab Bootswatch theme

Visit https://bootswatch.com/spacelab/ to see a Bootswatch's demo of the spacelab theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.spacelab(), + shinyswatch.theme.spacelab, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.superhero.html b/reference/theme.superhero.html index d715758..af8cfc7 100644 --- a/reference/theme.superhero.html +++ b/reference/theme.superhero.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.superhero

-

theme.superhero()

+

theme.superhero

superhero Bootswatch theme

Visit https://bootswatch.com/superhero/ to see a Bootswatch's demo of the superhero theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.superhero(), + shinyswatch.theme.superhero, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.united.html b/reference/theme.united.html index 5542fc8..6a7a260 100644 --- a/reference/theme.united.html +++ b/reference/theme.united.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.united

-

theme.united()

+

theme.united

united Bootswatch theme

Visit https://bootswatch.com/united/ to see a Bootswatch's demo of the united theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.united(), + shinyswatch.theme.united, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.vapor.html b/reference/theme.vapor.html index 24038ea..2b3e8d8 100644 --- a/reference/theme.vapor.html +++ b/reference/theme.vapor.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.vapor

-

theme.vapor()

+

theme.vapor

vapor Bootswatch theme

Visit https://bootswatch.com/vapor/ to see a Bootswatch's demo of the vapor theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.vapor(), + shinyswatch.theme.vapor, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.yeti.html b/reference/theme.yeti.html index d633553..24e89a5 100644 --- a/reference/theme.yeti.html +++ b/reference/theme.yeti.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.yeti

-

theme.yeti()

+

theme.yeti

yeti Bootswatch theme

Visit https://bootswatch.com/yeti/ to see a Bootswatch's demo of the yeti theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.yeti(), + shinyswatch.theme.yeti, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme.zephyr.html b/reference/theme.zephyr.html index 8e05e6c..6952e2c 100644 --- a/reference/theme.zephyr.html +++ b/reference/theme.zephyr.html @@ -146,6 +146,12 @@ get_theme + + @@ -347,9 +353,38 @@

theme.zephyr

-

theme.zephyr()

+

theme.zephyr

zephyr Bootswatch theme

Visit https://bootswatch.com/zephyr/ to see a Bootswatch's demo of the zephyr theme.

+
+

Attributes

+
+++++ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
nameName of the theme.
colorsA class containing the color variables used in the theme.
+

Returns

@@ -380,9 +415,9 @@

Examples

import shinyswatch app_ui = ui.page_navbar( - ui.nav( + ui.nav_panel( "Navbar 1", - shinyswatch.theme.zephyr(), + shinyswatch.theme.zephyr, ui.layout_sidebar( ui.panel_sidebar( ui.input_file("file", "File input:"), @@ -415,8 +450,8 @@

Examples

), ), ), - ui.nav("Plot", "Plot content"), - ui.nav("Table", "Table content"), + ui.nav_panel("Plot", "Plot content"), + ui.nav_panel("Table", "Table content"), title="shinyswatch", ) diff --git a/reference/theme_picker_server.html b/reference/theme_picker_server.html index 173b6ad..12e8f30 100644 --- a/reference/theme_picker_server.html +++ b/reference/theme_picker_server.html @@ -141,6 +141,12 @@ get_theme + + diff --git a/reference/theme_picker_ui.html b/reference/theme_picker_ui.html index 6c5de3a..ff0ff4a 100644 --- a/reference/theme_picker_ui.html +++ b/reference/theme_picker_ui.html @@ -146,6 +146,12 @@ get_theme + + diff --git a/search.json b/search.json index afc5e06..84ab8e8 100644 --- a/search.json +++ b/search.json @@ -4,7 +4,19 @@ "href": "reference/theme.united.html", "title": "theme.united", "section": "", - "text": "theme.united()\nunited Bootswatch theme\nVisit https://bootswatch.com/united/ to see a Bootswatch's demo of the united theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (united) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.united(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.united\nunited Bootswatch theme\nVisit https://bootswatch.com/united/ to see a Bootswatch's demo of the united theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (united) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.united,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.united" + ] + }, + { + "objectID": "reference/theme.united.html#attributes", + "href": "reference/theme.united.html#attributes", + "title": "theme.united", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -28,7 +40,7 @@ "href": "reference/theme.united.html#examples", "title": "theme.united", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.united(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.united,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -40,7 +52,19 @@ "href": "reference/theme.zephyr.html", "title": "theme.zephyr", "section": "", - "text": "theme.zephyr()\nzephyr Bootswatch theme\nVisit https://bootswatch.com/zephyr/ to see a Bootswatch's demo of the zephyr theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (zephyr) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.zephyr(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.zephyr\nzephyr Bootswatch theme\nVisit https://bootswatch.com/zephyr/ to see a Bootswatch's demo of the zephyr theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (zephyr) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.zephyr,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.zephyr" + ] + }, + { + "objectID": "reference/theme.zephyr.html#attributes", + "href": "reference/theme.zephyr.html#attributes", + "title": "theme.zephyr", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -64,7 +88,7 @@ "href": "reference/theme.zephyr.html#examples", "title": "theme.zephyr", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.zephyr(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.zephyr,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -76,7 +100,19 @@ "href": "reference/theme.quartz.html", "title": "theme.quartz", "section": "", - "text": "theme.quartz()\nquartz Bootswatch theme\nVisit https://bootswatch.com/quartz/ to see a Bootswatch's demo of the quartz theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (quartz) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.quartz(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.quartz\nquartz Bootswatch theme\nVisit https://bootswatch.com/quartz/ to see a Bootswatch's demo of the quartz theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (quartz) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.quartz,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.quartz" + ] + }, + { + "objectID": "reference/theme.quartz.html#attributes", + "href": "reference/theme.quartz.html#attributes", + "title": "theme.quartz", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -100,7 +136,7 @@ "href": "reference/theme.quartz.html#examples", "title": "theme.quartz", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.quartz(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.quartz,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -112,7 +148,7 @@ "href": "reference/index.html", "title": "Function reference", "section": "", - "text": "Generic method to retrieve a Bootswatch + Bootstrap 5 theme.\n\n\n\nget_theme\nCreate a Bootswatch and Bootstrap 5 theme for Shiny.\n\n\n\n\n\n\nAdds a drop down menu to your app to set and select a bootswatch theme.\n\n\n\ntheme_picker_ui\nTheme picker - UI\n\n\ntheme_picker_server\nTheme picker - Server\n\n\n\n\n\n\nFunctions that return a specific bootswatch theme.\n\n\n\ntheme.cerulean\ncerulean Bootswatch theme\n\n\ntheme.cosmo\ncosmo Bootswatch theme\n\n\ntheme.cyborg\ncyborg Bootswatch theme\n\n\ntheme.darkly\ndarkly Bootswatch theme\n\n\ntheme.flatly\nflatly Bootswatch theme\n\n\ntheme.journal\njournal Bootswatch theme\n\n\ntheme.litera\nlitera Bootswatch theme\n\n\ntheme.lumen\nlumen Bootswatch theme\n\n\ntheme.lux\nlux Bootswatch theme\n\n\ntheme.materia\nmateria Bootswatch theme\n\n\ntheme.minty\nminty Bootswatch theme\n\n\ntheme.morph\nmorph Bootswatch theme\n\n\ntheme.pulse\npulse Bootswatch theme\n\n\ntheme.quartz\nquartz Bootswatch theme\n\n\ntheme.sandstone\nsandstone Bootswatch theme\n\n\ntheme.simplex\nsimplex Bootswatch theme\n\n\ntheme.sketchy\nsketchy Bootswatch theme\n\n\ntheme.slate\nslate Bootswatch theme\n\n\ntheme.solar\nsolar Bootswatch theme\n\n\ntheme.spacelab\nspacelab Bootswatch theme\n\n\ntheme.superhero\nsuperhero Bootswatch theme\n\n\ntheme.united\nunited Bootswatch theme\n\n\ntheme.vapor\nvapor Bootswatch theme\n\n\ntheme.yeti\nyeti Bootswatch theme\n\n\ntheme.zephyr\nzephyr Bootswatch theme", + "text": "Generic method to retrieve a Bootswatch + Bootstrap 5 theme.\n\n\n\nget_theme\nGet a Bootstrap 5 Bootswatch theme for Shiny.\n\n\nget_theme_deps\nGet the HTML dependencies for a Bootstrap 5 Bootswatch theme for Shiny.\n\n\n\n\n\n\nAdds a drop down menu to your app to set and select a bootswatch theme.\n\n\n\ntheme_picker_ui\nTheme picker - UI\n\n\ntheme_picker_server\nTheme picker - Server\n\n\n\n\n\n\nFunctions that return a specific bootswatch theme.\n\n\n\ntheme.cerulean\ncerulean Bootswatch theme\n\n\ntheme.cosmo\ncosmo Bootswatch theme\n\n\ntheme.cyborg\ncyborg Bootswatch theme\n\n\ntheme.darkly\ndarkly Bootswatch theme\n\n\ntheme.flatly\nflatly Bootswatch theme\n\n\ntheme.journal\njournal Bootswatch theme\n\n\ntheme.litera\nlitera Bootswatch theme\n\n\ntheme.lumen\nlumen Bootswatch theme\n\n\ntheme.lux\nlux Bootswatch theme\n\n\ntheme.materia\nmateria Bootswatch theme\n\n\ntheme.minty\nminty Bootswatch theme\n\n\ntheme.morph\nmorph Bootswatch theme\n\n\ntheme.pulse\npulse Bootswatch theme\n\n\ntheme.quartz\nquartz Bootswatch theme\n\n\ntheme.sandstone\nsandstone Bootswatch theme\n\n\ntheme.simplex\nsimplex Bootswatch theme\n\n\ntheme.sketchy\nsketchy Bootswatch theme\n\n\ntheme.slate\nslate Bootswatch theme\n\n\ntheme.solar\nsolar Bootswatch theme\n\n\ntheme.spacelab\nspacelab Bootswatch theme\n\n\ntheme.superhero\nsuperhero Bootswatch theme\n\n\ntheme.united\nunited Bootswatch theme\n\n\ntheme.vapor\nvapor Bootswatch theme\n\n\ntheme.yeti\nyeti Bootswatch theme\n\n\ntheme.zephyr\nzephyr Bootswatch theme", "crumbs": [ "Reference", "Function reference" @@ -123,7 +159,7 @@ "href": "reference/index.html#get-a-theme", "title": "Function reference", "section": "", - "text": "Generic method to retrieve a Bootswatch + Bootstrap 5 theme.\n\n\n\nget_theme\nCreate a Bootswatch and Bootstrap 5 theme for Shiny.", + "text": "Generic method to retrieve a Bootswatch + Bootstrap 5 theme.\n\n\n\nget_theme\nGet a Bootstrap 5 Bootswatch theme for Shiny.\n\n\nget_theme_deps\nGet the HTML dependencies for a Bootstrap 5 Bootswatch theme for Shiny.", "crumbs": [ "Reference", "Function reference" @@ -156,7 +192,19 @@ "href": "reference/theme.spacelab.html", "title": "theme.spacelab", "section": "", - "text": "theme.spacelab()\nspacelab Bootswatch theme\nVisit https://bootswatch.com/spacelab/ to see a Bootswatch's demo of the spacelab theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (spacelab) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.spacelab(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.spacelab\nspacelab Bootswatch theme\nVisit https://bootswatch.com/spacelab/ to see a Bootswatch's demo of the spacelab theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (spacelab) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.spacelab,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.spacelab" + ] + }, + { + "objectID": "reference/theme.spacelab.html#attributes", + "href": "reference/theme.spacelab.html#attributes", + "title": "theme.spacelab", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -180,7 +228,7 @@ "href": "reference/theme.spacelab.html#examples", "title": "theme.spacelab", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.spacelab(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.spacelab,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -192,7 +240,7 @@ "href": "reference/get_theme.html", "title": "get_theme", "section": "", - "text": "get_theme(name)\nCreate a Bootswatch and Bootstrap 5 theme for Shiny.\n\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\nDefault\n\n\n\n\nname\nBSW5_THEME_NAME\nA Bootswatch theme name.\nrequired\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[HTMLDependency]\nA list of HTML dependencies.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.get_theme(\"superhero\"),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "get_theme(name)\nGet a Bootstrap 5 Bootswatch theme for Shiny.\n\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\nDefault\n\n\n\n\nname\nBSW5_THEME_NAME\nA Bootswatch theme name.\nrequired\n\n\n\n\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nShinyswatchTheme\nA Bootswatch and Bootstrap 5 theme for Shiny.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.get_theme(\"superhero\"),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Get a theme", @@ -216,7 +264,7 @@ "href": "reference/get_theme.html#returns", "title": "get_theme", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[HTMLDependency]\nA list of HTML dependencies.", + "text": "Type\nDescription\n\n\n\n\nShinyswatchTheme\nA Bootswatch and Bootstrap 5 theme for Shiny.", "crumbs": [ "Reference", "Get a theme", @@ -228,7 +276,7 @@ "href": "reference/get_theme.html#examples", "title": "get_theme", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.get_theme(\"superhero\"),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.get_theme(\"superhero\"),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Get a theme", @@ -236,339 +284,435 @@ ] }, { - "objectID": "reference/theme.slate.html", - "href": "reference/theme.slate.html", - "title": "theme.slate", + "objectID": "reference/theme.lux.html", + "href": "reference/theme.lux.html", + "title": "theme.lux", "section": "", - "text": "theme.slate()\nslate Bootswatch theme\nVisit https://bootswatch.com/slate/ to see a Bootswatch's demo of the slate theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (slate) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.slate(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.lux\nlux Bootswatch theme\nVisit https://bootswatch.com/lux/ to see a Bootswatch's demo of the lux theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lux) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.lux,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.slate" + "theme.lux" ] }, { - "objectID": "reference/theme.slate.html#returns", - "href": "reference/theme.slate.html#returns", - "title": "theme.slate", + "objectID": "reference/theme.lux.html#attributes", + "href": "reference/theme.lux.html#attributes", + "title": "theme.lux", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (slate) and Bootstrap 5 theme.", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.slate" + "theme.lux" ] }, { - "objectID": "reference/theme.slate.html#examples", - "href": "reference/theme.slate.html#examples", - "title": "theme.slate", + "objectID": "reference/theme.lux.html#returns", + "href": "reference/theme.lux.html#returns", + "title": "theme.lux", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.slate(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lux) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.slate" + "theme.lux" ] }, { - "objectID": "reference/theme.lumen.html", - "href": "reference/theme.lumen.html", - "title": "theme.lumen", + "objectID": "reference/theme.lux.html#examples", + "href": "reference/theme.lux.html#examples", + "title": "theme.lux", "section": "", - "text": "theme.lumen()\nlumen Bootswatch theme\nVisit https://bootswatch.com/lumen/ to see a Bootswatch's demo of the lumen theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lumen) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.lumen(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.lux,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.lumen" + "theme.lux" ] }, { - "objectID": "reference/theme.lumen.html#returns", - "href": "reference/theme.lumen.html#returns", - "title": "theme.lumen", + "objectID": "reference/theme.sandstone.html", + "href": "reference/theme.sandstone.html", + "title": "theme.sandstone", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lumen) and Bootstrap 5 theme.", + "text": "theme.sandstone\nsandstone Bootswatch theme\nVisit https://bootswatch.com/sandstone/ to see a Bootswatch's demo of the sandstone theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sandstone) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.sandstone,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.lumen" + "theme.sandstone" ] }, { - "objectID": "reference/theme.lumen.html#examples", - "href": "reference/theme.lumen.html#examples", - "title": "theme.lumen", + "objectID": "reference/theme.sandstone.html#attributes", + "href": "reference/theme.sandstone.html#attributes", + "title": "theme.sandstone", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.lumen(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.lumen" + "theme.sandstone" ] }, { - "objectID": "reference/theme.cerulean.html", - "href": "reference/theme.cerulean.html", - "title": "theme.cerulean", + "objectID": "reference/theme.sandstone.html#returns", + "href": "reference/theme.sandstone.html#returns", + "title": "theme.sandstone", "section": "", - "text": "theme.cerulean()\ncerulean Bootswatch theme\nVisit https://bootswatch.com/cerulean/ to see a Bootswatch's demo of the cerulean theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cerulean) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.cerulean(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sandstone) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.cerulean" + "theme.sandstone" ] }, { - "objectID": "reference/theme.cerulean.html#returns", - "href": "reference/theme.cerulean.html#returns", - "title": "theme.cerulean", + "objectID": "reference/theme.sandstone.html#examples", + "href": "reference/theme.sandstone.html#examples", + "title": "theme.sandstone", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cerulean) and Bootstrap 5 theme.", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.sandstone,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.cerulean" + "theme.sandstone" ] }, { - "objectID": "reference/theme.cerulean.html#examples", - "href": "reference/theme.cerulean.html#examples", - "title": "theme.cerulean", + "objectID": "reference/theme.materia.html", + "href": "reference/theme.materia.html", + "title": "theme.materia", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.cerulean(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.materia\nmateria Bootswatch theme\nVisit https://bootswatch.com/materia/ to see a Bootswatch's demo of the materia theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (materia) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.materia,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.cerulean" + "theme.materia" ] }, { - "objectID": "reference/theme.morph.html", - "href": "reference/theme.morph.html", - "title": "theme.morph", + "objectID": "reference/theme.materia.html#attributes", + "href": "reference/theme.materia.html#attributes", + "title": "theme.materia", "section": "", - "text": "theme.morph()\nmorph Bootswatch theme\nVisit https://bootswatch.com/morph/ to see a Bootswatch's demo of the morph theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (morph) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.morph(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.morph" + "theme.materia" ] }, { - "objectID": "reference/theme.morph.html#returns", - "href": "reference/theme.morph.html#returns", - "title": "theme.morph", + "objectID": "reference/theme.materia.html#returns", + "href": "reference/theme.materia.html#returns", + "title": "theme.materia", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (morph) and Bootstrap 5 theme.", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (materia) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.morph" + "theme.materia" ] }, { - "objectID": "reference/theme.morph.html#examples", - "href": "reference/theme.morph.html#examples", - "title": "theme.morph", + "objectID": "reference/theme.materia.html#examples", + "href": "reference/theme.materia.html#examples", + "title": "theme.materia", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.morph(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.materia,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.morph" + "theme.materia" ] }, { - "objectID": "reference/theme_picker_ui.html", - "href": "reference/theme_picker_ui.html", - "title": "theme_picker_ui", + "objectID": "reference/theme.sketchy.html", + "href": "reference/theme.sketchy.html", + "title": "theme.sketchy", "section": "", - "text": "theme_picker_ui()\n\n\n\nAll simultaneous theme picker users on the same Shiny server will see the same theme. This only is an issue when you are sharing the same Shiny server.\nDo not include more than one theme picker in your app.\nDo not call the theme picker UI / server inside a module.\n\n\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nui.TagChild\nA UI elements creating the theme picker.\n\n\n\n\n\n\n\nshinyswatch.theme_picker_server\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n # !! DO NOT INCLUDE THEME in `app_ui` !!\n # shinyswatch.theme.superhero(),\n # !! !!\n # Include theme_picker_ui UI module somewhere in your UI\n shinyswatch.theme_picker_ui(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n sidebar=ui.sidebar(\"Sidebar content\"),\n title=\"shinyswatch\",\n inverse=True,\n)\n\n\ndef server(input, output, session):\n # Include theme_picker_server server in the root of your server function\n shinyswatch.theme_picker_server()\n\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.sketchy\nsketchy Bootswatch theme\nVisit https://bootswatch.com/sketchy/ to see a Bootswatch's demo of the sketchy theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sketchy) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.sketchy,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", - "Theme picker", - "theme_picker_ui" + "Themes", + "theme.sketchy" ] }, { - "objectID": "reference/theme_picker_ui.html#notes", - "href": "reference/theme_picker_ui.html#notes", - "title": "theme_picker_ui", + "objectID": "reference/theme.sketchy.html#attributes", + "href": "reference/theme.sketchy.html#attributes", + "title": "theme.sketchy", "section": "", - "text": "All simultaneous theme picker users on the same Shiny server will see the same theme. This only is an issue when you are sharing the same Shiny server.\nDo not include more than one theme picker in your app.\nDo not call the theme picker UI / server inside a module.", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", - "Theme picker", - "theme_picker_ui" + "Themes", + "theme.sketchy" ] }, { - "objectID": "reference/theme_picker_ui.html#returns", - "href": "reference/theme_picker_ui.html#returns", - "title": "theme_picker_ui", + "objectID": "reference/theme.sketchy.html#returns", + "href": "reference/theme.sketchy.html#returns", + "title": "theme.sketchy", "section": "", - "text": "Type\nDescription\n\n\n\n\nui.TagChild\nA UI elements creating the theme picker.", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sketchy) and Bootstrap 5 theme.", "crumbs": [ "Reference", - "Theme picker", - "theme_picker_ui" + "Themes", + "theme.sketchy" ] }, { - "objectID": "reference/theme_picker_ui.html#see-also", - "href": "reference/theme_picker_ui.html#see-also", - "title": "theme_picker_ui", + "objectID": "reference/theme.sketchy.html#examples", + "href": "reference/theme.sketchy.html#examples", + "title": "theme.sketchy", "section": "", - "text": "shinyswatch.theme_picker_server", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.sketchy,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", - "Theme picker", - "theme_picker_ui" + "Themes", + "theme.sketchy" ] }, { - "objectID": "reference/theme_picker_ui.html#examples", - "href": "reference/theme_picker_ui.html#examples", - "title": "theme_picker_ui", + "objectID": "reference/theme.vapor.html", + "href": "reference/theme.vapor.html", + "title": "theme.vapor", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n # !! DO NOT INCLUDE THEME in `app_ui` !!\n # shinyswatch.theme.superhero(),\n # !! !!\n # Include theme_picker_ui UI module somewhere in your UI\n shinyswatch.theme_picker_ui(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n sidebar=ui.sidebar(\"Sidebar content\"),\n title=\"shinyswatch\",\n inverse=True,\n)\n\n\ndef server(input, output, session):\n # Include theme_picker_server server in the root of your server function\n shinyswatch.theme_picker_server()\n\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.vapor\nvapor Bootswatch theme\nVisit https://bootswatch.com/vapor/ to see a Bootswatch's demo of the vapor theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (vapor) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.vapor,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", - "Theme picker", - "theme_picker_ui" + "Themes", + "theme.vapor" ] }, { - "objectID": "reference/theme_picker_server.html", - "href": "reference/theme_picker_server.html", - "title": "theme_picker_server", + "objectID": "reference/theme.vapor.html#attributes", + "href": "reference/theme.vapor.html#attributes", + "title": "theme.vapor", "section": "", - "text": "theme_picker_server()\n\n\n\ntheme_picker_ui", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", - "Theme picker", - "theme_picker_server" + "Themes", + "theme.vapor" ] }, { - "objectID": "reference/theme_picker_server.html#see-also", - "href": "reference/theme_picker_server.html#see-also", - "title": "theme_picker_server", + "objectID": "reference/theme.vapor.html#returns", + "href": "reference/theme.vapor.html#returns", + "title": "theme.vapor", "section": "", - "text": "theme_picker_ui", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (vapor) and Bootstrap 5 theme.", "crumbs": [ "Reference", - "Theme picker", - "theme_picker_server" + "Themes", + "theme.vapor" ] }, { - "objectID": "reference/theme.journal.html", - "href": "reference/theme.journal.html", - "title": "theme.journal", + "objectID": "reference/theme.vapor.html#examples", + "href": "reference/theme.vapor.html#examples", + "title": "theme.vapor", "section": "", - "text": "theme.journal()\njournal Bootswatch theme\nVisit https://bootswatch.com/journal/ to see a Bootswatch's demo of the journal theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (journal) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.journal(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.vapor,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.journal" + "theme.vapor" ] }, { - "objectID": "reference/theme.journal.html#returns", - "href": "reference/theme.journal.html#returns", - "title": "theme.journal", + "objectID": "reference/theme.solar.html", + "href": "reference/theme.solar.html", + "title": "theme.solar", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (journal) and Bootstrap 5 theme.", + "text": "theme.solar\nsolar Bootswatch theme\nVisit https://bootswatch.com/solar/ to see a Bootswatch's demo of the solar theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (solar) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.solar,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.journal" + "theme.solar" ] }, { - "objectID": "reference/theme.journal.html#examples", - "href": "reference/theme.journal.html#examples", - "title": "theme.journal", + "objectID": "reference/theme.solar.html#attributes", + "href": "reference/theme.solar.html#attributes", + "title": "theme.solar", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.journal(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.journal" + "theme.solar" ] }, { - "objectID": "reference/theme.flatly.html", - "href": "reference/theme.flatly.html", - "title": "theme.flatly", + "objectID": "reference/theme.solar.html#returns", + "href": "reference/theme.solar.html#returns", + "title": "theme.solar", "section": "", - "text": "theme.flatly()\nflatly Bootswatch theme\nVisit https://bootswatch.com/flatly/ to see a Bootswatch's demo of the flatly theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (flatly) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.flatly(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (solar) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.flatly" + "theme.solar" ] }, { - "objectID": "reference/theme.flatly.html#returns", - "href": "reference/theme.flatly.html#returns", - "title": "theme.flatly", + "objectID": "reference/theme.solar.html#examples", + "href": "reference/theme.solar.html#examples", + "title": "theme.solar", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (flatly) and Bootstrap 5 theme.", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.solar,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.flatly" + "theme.solar" ] }, { - "objectID": "reference/theme.flatly.html#examples", - "href": "reference/theme.flatly.html#examples", - "title": "theme.flatly", + "objectID": "reference/theme.simplex.html", + "href": "reference/theme.simplex.html", + "title": "theme.simplex", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.flatly(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.simplex\nsimplex Bootswatch theme\nVisit https://bootswatch.com/simplex/ to see a Bootswatch's demo of the simplex theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (simplex) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.simplex,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.flatly" + "theme.simplex" ] }, { - "objectID": "reference/theme.yeti.html", - "href": "reference/theme.yeti.html", - "title": "theme.yeti", + "objectID": "reference/theme.simplex.html#attributes", + "href": "reference/theme.simplex.html#attributes", + "title": "theme.simplex", "section": "", - "text": "theme.yeti()\nyeti Bootswatch theme\nVisit https://bootswatch.com/yeti/ to see a Bootswatch's demo of the yeti theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (yeti) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.yeti(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.yeti" + "theme.simplex" ] }, { - "objectID": "reference/theme.yeti.html#returns", - "href": "reference/theme.yeti.html#returns", - "title": "theme.yeti", + "objectID": "reference/theme.simplex.html#returns", + "href": "reference/theme.simplex.html#returns", + "title": "theme.simplex", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (yeti) and Bootstrap 5 theme.", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (simplex) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.yeti" + "theme.simplex" ] }, { - "objectID": "reference/theme.yeti.html#examples", - "href": "reference/theme.yeti.html#examples", - "title": "theme.yeti", + "objectID": "reference/theme.simplex.html#examples", + "href": "reference/theme.simplex.html#examples", + "title": "theme.simplex", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.yeti(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.simplex,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.yeti" + "theme.simplex" + ] + }, + { + "objectID": "reference/theme.darkly.html", + "href": "reference/theme.darkly.html", + "title": "theme.darkly", + "section": "", + "text": "theme.darkly\ndarkly Bootswatch theme\nVisit https://bootswatch.com/darkly/ to see a Bootswatch's demo of the darkly theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (darkly) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.darkly,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.darkly" + ] + }, + { + "objectID": "reference/theme.darkly.html#attributes", + "href": "reference/theme.darkly.html#attributes", + "title": "theme.darkly", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", + "crumbs": [ + "Reference", + "Themes", + "theme.darkly" + ] + }, + { + "objectID": "reference/theme.darkly.html#returns", + "href": "reference/theme.darkly.html#returns", + "title": "theme.darkly", + "section": "", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (darkly) and Bootstrap 5 theme.", + "crumbs": [ + "Reference", + "Themes", + "theme.darkly" + ] + }, + { + "objectID": "reference/theme.darkly.html#examples", + "href": "reference/theme.darkly.html#examples", + "title": "theme.darkly", + "section": "", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.darkly,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.darkly" + ] + }, + { + "objectID": "reference/theme.minty.html", + "href": "reference/theme.minty.html", + "title": "theme.minty", + "section": "", + "text": "theme.minty\nminty Bootswatch theme\nVisit https://bootswatch.com/minty/ to see a Bootswatch's demo of the minty theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (minty) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.minty,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.minty" + ] + }, + { + "objectID": "reference/theme.minty.html#attributes", + "href": "reference/theme.minty.html#attributes", + "title": "theme.minty", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", + "crumbs": [ + "Reference", + "Themes", + "theme.minty" + ] + }, + { + "objectID": "reference/theme.minty.html#returns", + "href": "reference/theme.minty.html#returns", + "title": "theme.minty", + "section": "", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (minty) and Bootstrap 5 theme.", + "crumbs": [ + "Reference", + "Themes", + "theme.minty" + ] + }, + { + "objectID": "reference/theme.minty.html#examples", + "href": "reference/theme.minty.html#examples", + "title": "theme.minty", + "section": "", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.minty,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.minty" ] }, { @@ -576,7 +720,7 @@ "href": "index.html", "title": "shinyswatch", "section": "", - "text": "Bootswatch + Bootstrap 5 themes for Shiny.\nHere are just three of the 25 themes in shinyswatch:\n\n\n\n\n\n\n\n\nMinty\nSketchy\nSuperhero\n\n\n\n\n\n\n\n\n\n\n\n\npip install shinyswatch\nTo install the latest development version from this repository:\npip install https://github.com/rstudio/py-shinyswatch/tarball/main\n\n\n\nTo use a theme, call the theme function and add it to your App’s UI definition.\n# Minty theme\nshinyswatch.theme.minty()\n\n# Sketchy theme\nshinyswatch.theme.sketchy()\n\n# Superhero theme\nshinyswatch.theme.superhero()\nExample Shiny application:\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: horizontal\n#| viewerHeight: 800\n## file: app.py\nfrom shiny import App, Inputs, Outputs, Session, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_fluid(\n # Theme code - start\n shinyswatch.theme.darkly(),\n # Theme code - end\n ui.input_slider(\"num\", \"Number:\", min=10, max=100, value=30),\n ui.output_text_verbatim(\"slider_val\"),\n)\n\n\ndef server(input: Inputs, output: Outputs, session: Session):\n @output\n @render.text\n def slider_val():\n return f\"{input.num()}\"\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nshiny\nshinyswatch\n\n\nNote: When writing shiny apps on shinylive.io, remember to add shinyswatch to your requirements.txt file!\n\n\n\n\nTo add a theme picker to your app, add the theme picker UI and server functions to your app’s UI and server definitions.\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: horizontal\n#| viewerHeight: 800\n## file: app.py\nfrom shiny import App, Inputs, Outputs, Session, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_fluid(\n # Theme picker - start\n shinyswatch.theme_picker_ui(),\n # Theme picker - end\n ui.input_slider(\"num\", \"Number:\", min=10, max=100, value=30),\n ui.output_text_verbatim(\"slider_val\"),\n)\n\n\ndef server(input: Inputs, output: Outputs, session: Session):\n ## Theme picker - start\n shinyswatch.theme_picker_server()\n ## Theme picker - end\n\n @output\n @render.text\n def slider_val():\n return f\"{input.num()}\"\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nshiny\nshinyswatch" + "text": "Bootswatch + Bootstrap 5 themes for Shiny.\nHere are just three of the 25 themes in shinyswatch:\n\n\n\n\n\n\n\n\nMinty\nSketchy\nSuperhero\n\n\n\n\n\n\n\n\n\n\n\n\npip install shinyswatch\nTo install the latest development version from this repository:\npip install https://github.com/rstudio/py-shinyswatch/tarball/main\n\n\n\nTo use a theme, add a shinyswatch.theme theme object to your App’s UI definition.\n# Minty theme\nshinyswatch.theme.minty\n\n# Sketchy theme\nshinyswatch.theme.sketchy\n\n# Superhero theme\nshinyswatch.theme.superhero\nExample Shiny application:\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: horizontal\n#| viewerHeight: 800\n## file: app.py\nfrom shiny import App, Inputs, Outputs, Session, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_fluid(\n # Theme code - start\n shinyswatch.theme.darkly,\n # Theme code - end\n ui.input_slider(\"num\", \"Number:\", min=10, max=100, value=30),\n ui.output_text_verbatim(\"slider_val\"),\n)\n\n\ndef server(input: Inputs, output: Outputs, session: Session):\n @output\n @render.text\n def slider_val():\n return f\"{input.num()}\"\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nshiny\nshinyswatch\n\n\nNote: When writing shiny apps on shinylive.io, remember to add shinyswatch to your requirements.txt file!\n\n\n\n\nTo add a theme picker to your app, add the theme picker UI and server functions to your app’s UI and server definitions.\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: horizontal\n#| viewerHeight: 800\n## file: app.py\nfrom shiny import App, Inputs, Outputs, Session, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_fluid(\n # Theme picker - start\n shinyswatch.theme_picker_ui(),\n # Theme picker - end\n ui.input_slider(\"num\", \"Number:\", min=10, max=100, value=30),\n ui.output_text_verbatim(\"slider_val\"),\n)\n\n\ndef server(input: Inputs, output: Outputs, session: Session):\n ## Theme picker - start\n shinyswatch.theme_picker_server()\n ## Theme picker - end\n\n @output\n @render.text\n def slider_val():\n return f\"{input.num()}\"\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nshiny\nshinyswatch\n\n\n\n\nshinyswatch themes include a .colors attribute that can be used to theme plots or other outputs and UI elements. In the example below, try changing the theme and re-running the app to see how the plot changes.\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom shiny import App, render, req, ui\n\n# Try changing the theme from minty to united\nfrom shinyswatch.theme import minty as shiny_theme\n\napp_ui = ui.page_fluid(\n shiny_theme,\n ui.input_slider(\"n\", \"N\", min=0, max=100, value=20),\n ui.card(ui.output_plot(\"plot\"))\n)\n\n\ndef server(input):\n @render.plot(alt=\"A histogram\")\n def plot():\n np.random.seed(19680801)\n x = 100 + 15 * np.random.randn(437)\n\n fig, ax = plt.subplots()\n ax.hist(x, input.n(), density=True, color=shiny_theme.colors.primary)\n\n # Theme the plot to match the current theme\n fig.patch.set_facecolor(\"none\")\n ax.set_facecolor(\"none\")\n\n color_fg = shiny_theme.colors.body_color\n ax.tick_params(axis=\"both\", colors=color_fg)\n ax.spines[\"bottom\"].set_color(color_fg)\n ax.spines[\"top\"].set_color(color_fg)\n ax.spines[\"left\"].set_color(color_fg)\n ax.spines[\"right\"].set_color(color_fg)\n\n return fig\n\n\napp = App(app_ui, server)\n\n## file: requirements.txt\nnumpy\nmatplotlib\nshiny\nshinyswatch" }, { "objectID": "index.html#installation", @@ -590,7 +734,7 @@ "href": "index.html#usage", "title": "shinyswatch", "section": "", - "text": "To use a theme, call the theme function and add it to your App’s UI definition.\n# Minty theme\nshinyswatch.theme.minty()\n\n# Sketchy theme\nshinyswatch.theme.sketchy()\n\n# Superhero theme\nshinyswatch.theme.superhero()\nExample Shiny application:\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: horizontal\n#| viewerHeight: 800\n## file: app.py\nfrom shiny import App, Inputs, Outputs, Session, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_fluid(\n # Theme code - start\n shinyswatch.theme.darkly(),\n # Theme code - end\n ui.input_slider(\"num\", \"Number:\", min=10, max=100, value=30),\n ui.output_text_verbatim(\"slider_val\"),\n)\n\n\ndef server(input: Inputs, output: Outputs, session: Session):\n @output\n @render.text\n def slider_val():\n return f\"{input.num()}\"\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nshiny\nshinyswatch\n\n\nNote: When writing shiny apps on shinylive.io, remember to add shinyswatch to your requirements.txt file!" + "text": "To use a theme, add a shinyswatch.theme theme object to your App’s UI definition.\n# Minty theme\nshinyswatch.theme.minty\n\n# Sketchy theme\nshinyswatch.theme.sketchy\n\n# Superhero theme\nshinyswatch.theme.superhero\nExample Shiny application:\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: horizontal\n#| viewerHeight: 800\n## file: app.py\nfrom shiny import App, Inputs, Outputs, Session, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_fluid(\n # Theme code - start\n shinyswatch.theme.darkly,\n # Theme code - end\n ui.input_slider(\"num\", \"Number:\", min=10, max=100, value=30),\n ui.output_text_verbatim(\"slider_val\"),\n)\n\n\ndef server(input: Inputs, output: Outputs, session: Session):\n @output\n @render.text\n def slider_val():\n return f\"{input.num()}\"\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nshiny\nshinyswatch\n\n\nNote: When writing shiny apps on shinylive.io, remember to add shinyswatch to your requirements.txt file!" }, { "objectID": "index.html#theme-picker", @@ -600,327 +744,466 @@ "text": "To add a theme picker to your app, add the theme picker UI and server functions to your app’s UI and server definitions.\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: horizontal\n#| viewerHeight: 800\n## file: app.py\nfrom shiny import App, Inputs, Outputs, Session, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_fluid(\n # Theme picker - start\n shinyswatch.theme_picker_ui(),\n # Theme picker - end\n ui.input_slider(\"num\", \"Number:\", min=10, max=100, value=30),\n ui.output_text_verbatim(\"slider_val\"),\n)\n\n\ndef server(input: Inputs, output: Outputs, session: Session):\n ## Theme picker - start\n shinyswatch.theme_picker_server()\n ## Theme picker - end\n\n @output\n @render.text\n def slider_val():\n return f\"{input.num()}\"\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nshiny\nshinyswatch" }, { - "objectID": "reference/theme.minty.html", - "href": "reference/theme.minty.html", - "title": "theme.minty", + "objectID": "index.html#plot-theming", + "href": "index.html#plot-theming", + "title": "shinyswatch", "section": "", - "text": "theme.minty()\nminty Bootswatch theme\nVisit https://bootswatch.com/minty/ to see a Bootswatch's demo of the minty theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (minty) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.minty(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "shinyswatch themes include a .colors attribute that can be used to theme plots or other outputs and UI elements. In the example below, try changing the theme and re-running the app to see how the plot changes.\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom shiny import App, render, req, ui\n\n# Try changing the theme from minty to united\nfrom shinyswatch.theme import minty as shiny_theme\n\napp_ui = ui.page_fluid(\n shiny_theme,\n ui.input_slider(\"n\", \"N\", min=0, max=100, value=20),\n ui.card(ui.output_plot(\"plot\"))\n)\n\n\ndef server(input):\n @render.plot(alt=\"A histogram\")\n def plot():\n np.random.seed(19680801)\n x = 100 + 15 * np.random.randn(437)\n\n fig, ax = plt.subplots()\n ax.hist(x, input.n(), density=True, color=shiny_theme.colors.primary)\n\n # Theme the plot to match the current theme\n fig.patch.set_facecolor(\"none\")\n ax.set_facecolor(\"none\")\n\n color_fg = shiny_theme.colors.body_color\n ax.tick_params(axis=\"both\", colors=color_fg)\n ax.spines[\"bottom\"].set_color(color_fg)\n ax.spines[\"top\"].set_color(color_fg)\n ax.spines[\"left\"].set_color(color_fg)\n ax.spines[\"right\"].set_color(color_fg)\n\n return fig\n\n\napp = App(app_ui, server)\n\n## file: requirements.txt\nnumpy\nmatplotlib\nshiny\nshinyswatch" + }, + { + "objectID": "reference/theme.yeti.html", + "href": "reference/theme.yeti.html", + "title": "theme.yeti", + "section": "", + "text": "theme.yeti\nyeti Bootswatch theme\nVisit https://bootswatch.com/yeti/ to see a Bootswatch's demo of the yeti theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (yeti) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.yeti,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.minty" + "theme.yeti" ] }, { - "objectID": "reference/theme.minty.html#returns", - "href": "reference/theme.minty.html#returns", - "title": "theme.minty", + "objectID": "reference/theme.yeti.html#attributes", + "href": "reference/theme.yeti.html#attributes", + "title": "theme.yeti", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (minty) and Bootstrap 5 theme.", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.minty" + "theme.yeti" ] }, { - "objectID": "reference/theme.minty.html#examples", - "href": "reference/theme.minty.html#examples", - "title": "theme.minty", + "objectID": "reference/theme.yeti.html#returns", + "href": "reference/theme.yeti.html#returns", + "title": "theme.yeti", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.minty(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (yeti) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.minty" + "theme.yeti" ] }, { - "objectID": "reference/theme.darkly.html", - "href": "reference/theme.darkly.html", - "title": "theme.darkly", + "objectID": "reference/theme.yeti.html#examples", + "href": "reference/theme.yeti.html#examples", + "title": "theme.yeti", "section": "", - "text": "theme.darkly()\ndarkly Bootswatch theme\nVisit https://bootswatch.com/darkly/ to see a Bootswatch's demo of the darkly theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (darkly) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.darkly(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.yeti,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.darkly" + "theme.yeti" ] }, { - "objectID": "reference/theme.darkly.html#returns", - "href": "reference/theme.darkly.html#returns", - "title": "theme.darkly", + "objectID": "reference/theme.flatly.html", + "href": "reference/theme.flatly.html", + "title": "theme.flatly", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (darkly) and Bootstrap 5 theme.", + "text": "theme.flatly\nflatly Bootswatch theme\nVisit https://bootswatch.com/flatly/ to see a Bootswatch's demo of the flatly theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (flatly) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.flatly,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.darkly" + "theme.flatly" ] }, { - "objectID": "reference/theme.darkly.html#examples", - "href": "reference/theme.darkly.html#examples", - "title": "theme.darkly", + "objectID": "reference/theme.flatly.html#attributes", + "href": "reference/theme.flatly.html#attributes", + "title": "theme.flatly", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.darkly(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.darkly" + "theme.flatly" ] }, { - "objectID": "reference/theme.simplex.html", - "href": "reference/theme.simplex.html", - "title": "theme.simplex", + "objectID": "reference/theme.flatly.html#returns", + "href": "reference/theme.flatly.html#returns", + "title": "theme.flatly", "section": "", - "text": "theme.simplex()\nsimplex Bootswatch theme\nVisit https://bootswatch.com/simplex/ to see a Bootswatch's demo of the simplex theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (simplex) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.simplex(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (flatly) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.simplex" + "theme.flatly" ] }, { - "objectID": "reference/theme.simplex.html#returns", - "href": "reference/theme.simplex.html#returns", - "title": "theme.simplex", + "objectID": "reference/theme.flatly.html#examples", + "href": "reference/theme.flatly.html#examples", + "title": "theme.flatly", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (simplex) and Bootstrap 5 theme.", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.flatly,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.simplex" + "theme.flatly" ] }, { - "objectID": "reference/theme.simplex.html#examples", - "href": "reference/theme.simplex.html#examples", - "title": "theme.simplex", + "objectID": "reference/theme.journal.html", + "href": "reference/theme.journal.html", + "title": "theme.journal", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.simplex(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.journal\njournal Bootswatch theme\nVisit https://bootswatch.com/journal/ to see a Bootswatch's demo of the journal theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (journal) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.journal,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.simplex" + "theme.journal" ] }, { - "objectID": "reference/theme.solar.html", - "href": "reference/theme.solar.html", - "title": "theme.solar", + "objectID": "reference/theme.journal.html#attributes", + "href": "reference/theme.journal.html#attributes", + "title": "theme.journal", "section": "", - "text": "theme.solar()\nsolar Bootswatch theme\nVisit https://bootswatch.com/solar/ to see a Bootswatch's demo of the solar theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (solar) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.solar(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.solar" + "theme.journal" ] }, { - "objectID": "reference/theme.solar.html#returns", - "href": "reference/theme.solar.html#returns", - "title": "theme.solar", + "objectID": "reference/theme.journal.html#returns", + "href": "reference/theme.journal.html#returns", + "title": "theme.journal", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (solar) and Bootstrap 5 theme.", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (journal) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.solar" + "theme.journal" ] }, { - "objectID": "reference/theme.solar.html#examples", - "href": "reference/theme.solar.html#examples", - "title": "theme.solar", + "objectID": "reference/theme.journal.html#examples", + "href": "reference/theme.journal.html#examples", + "title": "theme.journal", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.solar(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.journal,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.solar" + "theme.journal" ] }, { - "objectID": "reference/theme.vapor.html", - "href": "reference/theme.vapor.html", - "title": "theme.vapor", + "objectID": "reference/theme_picker_server.html", + "href": "reference/theme_picker_server.html", + "title": "theme_picker_server", + "section": "", + "text": "theme_picker_server()\n\n\n\ntheme_picker_ui", + "crumbs": [ + "Reference", + "Theme picker", + "theme_picker_server" + ] + }, + { + "objectID": "reference/theme_picker_server.html#see-also", + "href": "reference/theme_picker_server.html#see-also", + "title": "theme_picker_server", "section": "", - "text": "theme.vapor()\nvapor Bootswatch theme\nVisit https://bootswatch.com/vapor/ to see a Bootswatch's demo of the vapor theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (vapor) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.vapor(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme_picker_ui", + "crumbs": [ + "Reference", + "Theme picker", + "theme_picker_server" + ] + }, + { + "objectID": "reference/theme_picker_ui.html", + "href": "reference/theme_picker_ui.html", + "title": "theme_picker_ui", + "section": "", + "text": "theme_picker_ui()\n\n\n\nAll simultaneous theme picker users on the same Shiny server will see the same theme. This only is an issue when you are sharing the same Shiny server.\nDo not include more than one theme picker in your app.\nDo not call the theme picker UI / server inside a module.\n\n\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nui.TagChild\nA UI elements creating the theme picker.\n\n\n\n\n\n\n\nshinyswatch.theme_picker_server\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n # !! DO NOT INCLUDE THEME in `app_ui` !!\n # shinyswatch.theme.superhero(),\n # !! !!\n # Include theme_picker_ui UI module somewhere in your UI\n shinyswatch.theme_picker_ui(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n sidebar=ui.sidebar(\"Sidebar content\"),\n title=\"shinyswatch\",\n inverse=True,\n)\n\n\ndef server(input, output, session):\n # Include theme_picker_server server in the root of your server function\n shinyswatch.theme_picker_server()\n\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Theme picker", + "theme_picker_ui" + ] + }, + { + "objectID": "reference/theme_picker_ui.html#notes", + "href": "reference/theme_picker_ui.html#notes", + "title": "theme_picker_ui", + "section": "", + "text": "All simultaneous theme picker users on the same Shiny server will see the same theme. This only is an issue when you are sharing the same Shiny server.\nDo not include more than one theme picker in your app.\nDo not call the theme picker UI / server inside a module.", + "crumbs": [ + "Reference", + "Theme picker", + "theme_picker_ui" + ] + }, + { + "objectID": "reference/theme_picker_ui.html#returns", + "href": "reference/theme_picker_ui.html#returns", + "title": "theme_picker_ui", + "section": "", + "text": "Type\nDescription\n\n\n\n\nui.TagChild\nA UI elements creating the theme picker.", + "crumbs": [ + "Reference", + "Theme picker", + "theme_picker_ui" + ] + }, + { + "objectID": "reference/theme_picker_ui.html#see-also", + "href": "reference/theme_picker_ui.html#see-also", + "title": "theme_picker_ui", + "section": "", + "text": "shinyswatch.theme_picker_server", + "crumbs": [ + "Reference", + "Theme picker", + "theme_picker_ui" + ] + }, + { + "objectID": "reference/theme_picker_ui.html#examples", + "href": "reference/theme_picker_ui.html#examples", + "title": "theme_picker_ui", + "section": "", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n # !! DO NOT INCLUDE THEME in `app_ui` !!\n # shinyswatch.theme.superhero(),\n # !! !!\n # Include theme_picker_ui UI module somewhere in your UI\n shinyswatch.theme_picker_ui(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n sidebar=ui.sidebar(\"Sidebar content\"),\n title=\"shinyswatch\",\n inverse=True,\n)\n\n\ndef server(input, output, session):\n # Include theme_picker_server server in the root of your server function\n shinyswatch.theme_picker_server()\n\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Theme picker", + "theme_picker_ui" + ] + }, + { + "objectID": "reference/theme.morph.html", + "href": "reference/theme.morph.html", + "title": "theme.morph", + "section": "", + "text": "theme.morph\nmorph Bootswatch theme\nVisit https://bootswatch.com/morph/ to see a Bootswatch's demo of the morph theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (morph) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.morph,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.vapor" + "theme.morph" ] }, { - "objectID": "reference/theme.vapor.html#returns", - "href": "reference/theme.vapor.html#returns", - "title": "theme.vapor", + "objectID": "reference/theme.morph.html#attributes", + "href": "reference/theme.morph.html#attributes", + "title": "theme.morph", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (vapor) and Bootstrap 5 theme.", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.vapor" + "theme.morph" ] }, { - "objectID": "reference/theme.vapor.html#examples", - "href": "reference/theme.vapor.html#examples", - "title": "theme.vapor", + "objectID": "reference/theme.morph.html#returns", + "href": "reference/theme.morph.html#returns", + "title": "theme.morph", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.vapor(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (morph) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.vapor" + "theme.morph" ] }, { - "objectID": "reference/theme.sketchy.html", - "href": "reference/theme.sketchy.html", - "title": "theme.sketchy", + "objectID": "reference/theme.morph.html#examples", + "href": "reference/theme.morph.html#examples", + "title": "theme.morph", "section": "", - "text": "theme.sketchy()\nsketchy Bootswatch theme\nVisit https://bootswatch.com/sketchy/ to see a Bootswatch's demo of the sketchy theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sketchy) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.sketchy(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.morph,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.sketchy" + "theme.morph" ] }, { - "objectID": "reference/theme.sketchy.html#returns", - "href": "reference/theme.sketchy.html#returns", - "title": "theme.sketchy", + "objectID": "reference/theme.cerulean.html", + "href": "reference/theme.cerulean.html", + "title": "theme.cerulean", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sketchy) and Bootstrap 5 theme.", + "text": "theme.cerulean\ncerulean Bootswatch theme\nVisit https://bootswatch.com/cerulean/ to see a Bootswatch's demo of the cerulean theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cerulean) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.cerulean,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.sketchy" + "theme.cerulean" ] }, { - "objectID": "reference/theme.sketchy.html#examples", - "href": "reference/theme.sketchy.html#examples", - "title": "theme.sketchy", + "objectID": "reference/theme.cerulean.html#attributes", + "href": "reference/theme.cerulean.html#attributes", + "title": "theme.cerulean", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.sketchy(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.sketchy" + "theme.cerulean" ] }, { - "objectID": "reference/theme.materia.html", - "href": "reference/theme.materia.html", - "title": "theme.materia", + "objectID": "reference/theme.cerulean.html#returns", + "href": "reference/theme.cerulean.html#returns", + "title": "theme.cerulean", "section": "", - "text": "theme.materia()\nmateria Bootswatch theme\nVisit https://bootswatch.com/materia/ to see a Bootswatch's demo of the materia theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (materia) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.materia(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cerulean) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.materia" + "theme.cerulean" ] }, { - "objectID": "reference/theme.materia.html#returns", - "href": "reference/theme.materia.html#returns", - "title": "theme.materia", + "objectID": "reference/theme.cerulean.html#examples", + "href": "reference/theme.cerulean.html#examples", + "title": "theme.cerulean", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (materia) and Bootstrap 5 theme.", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.cerulean,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.materia" + "theme.cerulean" ] }, { - "objectID": "reference/theme.materia.html#examples", - "href": "reference/theme.materia.html#examples", - "title": "theme.materia", + "objectID": "reference/theme.lumen.html", + "href": "reference/theme.lumen.html", + "title": "theme.lumen", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.materia(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.lumen\nlumen Bootswatch theme\nVisit https://bootswatch.com/lumen/ to see a Bootswatch's demo of the lumen theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lumen) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.lumen,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.materia" + "theme.lumen" ] }, { - "objectID": "reference/theme.sandstone.html", - "href": "reference/theme.sandstone.html", - "title": "theme.sandstone", + "objectID": "reference/theme.lumen.html#attributes", + "href": "reference/theme.lumen.html#attributes", + "title": "theme.lumen", "section": "", - "text": "theme.sandstone()\nsandstone Bootswatch theme\nVisit https://bootswatch.com/sandstone/ to see a Bootswatch's demo of the sandstone theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sandstone) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.sandstone(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.sandstone" + "theme.lumen" ] }, { - "objectID": "reference/theme.sandstone.html#returns", - "href": "reference/theme.sandstone.html#returns", - "title": "theme.sandstone", + "objectID": "reference/theme.lumen.html#returns", + "href": "reference/theme.lumen.html#returns", + "title": "theme.lumen", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (sandstone) and Bootstrap 5 theme.", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lumen) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.sandstone" + "theme.lumen" ] }, { - "objectID": "reference/theme.sandstone.html#examples", - "href": "reference/theme.sandstone.html#examples", - "title": "theme.sandstone", + "objectID": "reference/theme.lumen.html#examples", + "href": "reference/theme.lumen.html#examples", + "title": "theme.lumen", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.sandstone(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.lumen,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.sandstone" + "theme.lumen" ] }, { - "objectID": "reference/theme.lux.html", - "href": "reference/theme.lux.html", - "title": "theme.lux", + "objectID": "reference/theme.slate.html", + "href": "reference/theme.slate.html", + "title": "theme.slate", "section": "", - "text": "theme.lux()\nlux Bootswatch theme\nVisit https://bootswatch.com/lux/ to see a Bootswatch's demo of the lux theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lux) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.lux(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.slate\nslate Bootswatch theme\nVisit https://bootswatch.com/slate/ to see a Bootswatch's demo of the slate theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (slate) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.slate,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", - "theme.lux" + "theme.slate" ] }, { - "objectID": "reference/theme.lux.html#returns", - "href": "reference/theme.lux.html#returns", - "title": "theme.lux", + "objectID": "reference/theme.slate.html#attributes", + "href": "reference/theme.slate.html#attributes", + "title": "theme.slate", "section": "", - "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (lux) and Bootstrap 5 theme.", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", - "theme.lux" + "theme.slate" ] }, { - "objectID": "reference/theme.lux.html#examples", - "href": "reference/theme.lux.html#examples", - "title": "theme.lux", + "objectID": "reference/theme.slate.html#returns", + "href": "reference/theme.slate.html#returns", + "title": "theme.slate", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.lux(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "Type\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (slate) and Bootstrap 5 theme.", "crumbs": [ "Reference", "Themes", - "theme.lux" + "theme.slate" + ] + }, + { + "objectID": "reference/theme.slate.html#examples", + "href": "reference/theme.slate.html#examples", + "title": "theme.slate", + "section": "", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.slate,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.slate" + ] + }, + { + "objectID": "reference/get_theme_deps.html", + "href": "reference/get_theme_deps.html", + "title": "get_theme_deps", + "section": "", + "text": "get_theme_deps(name)\nGet the HTML dependencies for a Bootstrap 5 Bootswatch theme for Shiny.\n\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\nDefault\n\n\n\n\nname\nBSW5_THEME_NAME\nA Bootswatch theme name.\nrequired\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[HTMLDependency]\nA list of HTML dependencies.", + "crumbs": [ + "Reference", + "Get a theme", + "get_theme_deps" + ] + }, + { + "objectID": "reference/get_theme_deps.html#parameters", + "href": "reference/get_theme_deps.html#parameters", + "title": "get_theme_deps", + "section": "", + "text": "Name\nType\nDescription\nDefault\n\n\n\n\nname\nBSW5_THEME_NAME\nA Bootswatch theme name.\nrequired", + "crumbs": [ + "Reference", + "Get a theme", + "get_theme_deps" + ] + }, + { + "objectID": "reference/get_theme_deps.html#returns", + "href": "reference/get_theme_deps.html#returns", + "title": "get_theme_deps", + "section": "", + "text": "Type\nDescription\n\n\n\n\nlist[HTMLDependency]\nA list of HTML dependencies.", + "crumbs": [ + "Reference", + "Get a theme", + "get_theme_deps" ] }, { @@ -928,7 +1211,19 @@ "href": "reference/theme.litera.html", "title": "theme.litera", "section": "", - "text": "theme.litera()\nlitera Bootswatch theme\nVisit https://bootswatch.com/litera/ to see a Bootswatch's demo of the litera theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (litera) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.litera(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.litera\nlitera Bootswatch theme\nVisit https://bootswatch.com/litera/ to see a Bootswatch's demo of the litera theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (litera) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.litera,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.litera" + ] + }, + { + "objectID": "reference/theme.litera.html#attributes", + "href": "reference/theme.litera.html#attributes", + "title": "theme.litera", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -952,7 +1247,7 @@ "href": "reference/theme.litera.html#examples", "title": "theme.litera", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.litera(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.litera,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -964,7 +1259,19 @@ "href": "reference/theme.cyborg.html", "title": "theme.cyborg", "section": "", - "text": "theme.cyborg()\ncyborg Bootswatch theme\nVisit https://bootswatch.com/cyborg/ to see a Bootswatch's demo of the cyborg theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cyborg) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.cyborg(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.cyborg\ncyborg Bootswatch theme\nVisit https://bootswatch.com/cyborg/ to see a Bootswatch's demo of the cyborg theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cyborg) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.cyborg,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.cyborg" + ] + }, + { + "objectID": "reference/theme.cyborg.html#attributes", + "href": "reference/theme.cyborg.html#attributes", + "title": "theme.cyborg", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -988,7 +1295,7 @@ "href": "reference/theme.cyborg.html#examples", "title": "theme.cyborg", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.cyborg(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.cyborg,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -1000,7 +1307,19 @@ "href": "reference/theme.pulse.html", "title": "theme.pulse", "section": "", - "text": "theme.pulse()\npulse Bootswatch theme\nVisit https://bootswatch.com/pulse/ to see a Bootswatch's demo of the pulse theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (pulse) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.pulse(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.pulse\npulse Bootswatch theme\nVisit https://bootswatch.com/pulse/ to see a Bootswatch's demo of the pulse theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (pulse) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.pulse,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.pulse" + ] + }, + { + "objectID": "reference/theme.pulse.html#attributes", + "href": "reference/theme.pulse.html#attributes", + "title": "theme.pulse", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -1024,7 +1343,7 @@ "href": "reference/theme.pulse.html#examples", "title": "theme.pulse", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.pulse(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.pulse,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -1036,7 +1355,19 @@ "href": "reference/theme.cosmo.html", "title": "theme.cosmo", "section": "", - "text": "theme.cosmo()\ncosmo Bootswatch theme\nVisit https://bootswatch.com/cosmo/ to see a Bootswatch's demo of the cosmo theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cosmo) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.cosmo(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.cosmo\ncosmo Bootswatch theme\nVisit https://bootswatch.com/cosmo/ to see a Bootswatch's demo of the cosmo theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (cosmo) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.cosmo,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.cosmo" + ] + }, + { + "objectID": "reference/theme.cosmo.html#attributes", + "href": "reference/theme.cosmo.html#attributes", + "title": "theme.cosmo", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -1060,7 +1391,7 @@ "href": "reference/theme.cosmo.html#examples", "title": "theme.cosmo", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.cosmo(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.cosmo,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", @@ -1072,7 +1403,19 @@ "href": "reference/theme.superhero.html", "title": "theme.superhero", "section": "", - "text": "theme.superhero()\nsuperhero Bootswatch theme\nVisit https://bootswatch.com/superhero/ to see a Bootswatch's demo of the superhero theme.\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (superhero) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.superhero(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "theme.superhero\nsuperhero Bootswatch theme\nVisit https://bootswatch.com/superhero/ to see a Bootswatch's demo of the superhero theme.\n\n\n\n\n\n\n\n\n\n\nName\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.\n\n\n\n\n\n\n\n\n\nType\nDescription\n\n\n\n\nlist[htmltools.HTMLDependency]\nList of HTMLDependency objects that create a Bootswatch (superhero) and Bootstrap 5 theme.\n\n\n\n\n\n\n#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.superhero,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "crumbs": [ + "Reference", + "Themes", + "theme.superhero" + ] + }, + { + "objectID": "reference/theme.superhero.html#attributes", + "href": "reference/theme.superhero.html#attributes", + "title": "theme.superhero", + "section": "", + "text": "Name\nType\nDescription\n\n\n\n\nname\n\nName of the theme.\n\n\ncolors\n\nA class containing the color variables used in the theme.", "crumbs": [ "Reference", "Themes", @@ -1096,7 +1439,7 @@ "href": "reference/theme.superhero.html#examples", "title": "theme.superhero", "section": "", - "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav(\n \"Navbar 1\",\n shinyswatch.theme.superhero(),\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav(\"Plot\", \"Plot content\"),\n ui.nav(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", + "text": "#| standalone: true\n#| components: [editor, viewer]\n#| layout: vertical\n#| viewerHeight: 800\n## file: app.py\nimport pandas as pd\nfrom shiny import App, render, ui\n\nimport shinyswatch\n\napp_ui = ui.page_navbar(\n ui.nav_panel(\n \"Navbar 1\",\n shinyswatch.theme.superhero,\n ui.layout_sidebar(\n ui.panel_sidebar(\n ui.input_file(\"file\", \"File input:\"),\n ui.input_text(\"txt\", \"Text input:\", \"general\"),\n ui.input_slider(\"slider\", \"Slider input:\", 1, 100, 30),\n ui.tags.h5(\"Default actionButton:\"),\n ui.input_action_button(\"action\", \"Search\"),\n ui.tags.h5(\"actionButton with CSS class:\"),\n ui.input_action_button(\n \"action2\", \"Action button\", class_=\"btn-primary\"\n ),\n ),\n ui.panel_main(\n ui.navset_tab(\n ui.nav(\n \"Tab 1\",\n ui.tags.h4(\"Table\"),\n ui.output_table(\"table\"),\n ui.tags.h4(\"Verbatim text output\"),\n ui.output_text_verbatim(\"txtout\"),\n ui.tags.h1(\"Header 1\"),\n ui.tags.h2(\"Header 2\"),\n ui.tags.h3(\"Header 3\"),\n ui.tags.h4(\"Header 4\"),\n ui.tags.h5(\"Header 5\"),\n ),\n ui.nav(\"Tab 2\", \"Tab 2 content\"),\n ui.nav(\"Tab 3\", \"Tab 3 content\"),\n )\n ),\n ),\n ),\n ui.nav_panel(\"Plot\", \"Plot content\"),\n ui.nav_panel(\"Table\", \"Table content\"),\n title=\"shinyswatch\",\n)\n\n\ndef server(input, output, session):\n @output\n @render.text\n def txtout():\n return f\"{input.txt()}, {input.slider()}, {input.slider()}\"\n\n @output\n @render.table\n def table():\n cars = pd.DataFrame({\"speed\": [4, 4, 7, 7], \"dist\": [2, 10, 4, 22]})\n return cars\n\n\napp = App(app_ui, server)\n\n\n## file: requirements.txt\nJinja2\npandas\nshiny\nshinyswatch", "crumbs": [ "Reference", "Themes", diff --git a/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/PIL-9.1.1-cp310-cp310-emscripten_3_1_27_wasm32.whl b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/PIL-9.1.1-cp310-cp310-emscripten_3_1_27_wasm32.whl new file mode 100644 index 0000000..4dae8f9 Binary files /dev/null and b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/PIL-9.1.1-cp310-cp310-emscripten_3_1_27_wasm32.whl differ diff --git a/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/cycler-0.11.0-py3-none-any.whl b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/cycler-0.11.0-py3-none-any.whl new file mode 100644 index 0000000..da93970 Binary files /dev/null and b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/cycler-0.11.0-py3-none-any.whl differ diff --git a/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/fonttools-4.38.0-py3-none-any.whl b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/fonttools-4.38.0-py3-none-any.whl new file mode 100644 index 0000000..ff9d960 Binary files /dev/null and b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/fonttools-4.38.0-py3-none-any.whl differ diff --git a/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/kiwisolver-1.4.4-cp310-cp310-emscripten_3_1_27_wasm32.whl b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/kiwisolver-1.4.4-cp310-cp310-emscripten_3_1_27_wasm32.whl new file mode 100644 index 0000000..faaa7a0 Binary files /dev/null and b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/kiwisolver-1.4.4-cp310-cp310-emscripten_3_1_27_wasm32.whl differ diff --git a/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/matplotlib-3.5.2-cp310-cp310-emscripten_3_1_27_wasm32.whl b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/matplotlib-3.5.2-cp310-cp310-emscripten_3_1_27_wasm32.whl new file mode 100644 index 0000000..9faec11 Binary files /dev/null and b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/matplotlib-3.5.2-cp310-cp310-emscripten_3_1_27_wasm32.whl differ diff --git a/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/matplotlib_pyodide-0.1.1-py3-none-any.whl b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/matplotlib_pyodide-0.1.1-py3-none-any.whl new file mode 100644 index 0000000..726ec6a Binary files /dev/null and b/site_libs/quarto-contrib/shinylive-0.2.7/shinylive/pyodide/matplotlib_pyodide-0.1.1-py3-none-any.whl differ