use_jsmodule_style: Include jsmodule CSS styling

View source: R/theme.R

use_jsmodule_styleR Documentation

Include jsmodule CSS styling

Description

Adds the custom 'style.css' file bundled with the jsmodule package to a Shiny UI. This allows consistent styling (e.g., bold navbar title, font tweaks, spacing) across all Shiny applications using this package.

Usage

use_jsmodule_style()

Details

This function is meant to be used inside the UI of a Shiny app. It automatically locates and includes the 'style.css' file found in 'inst/assets/' of the jsmodule package installation.

Value

An HTML '<link>' tag that loads the CSS into a Shiny UI

See Also

include

Examples

## Not run: 
use_jsmodule_style()

## End(Not run)

jsmodule documentation built on June 8, 2025, 11:36 a.m.