← Back to Components
Theme
Application-wide style engine managing design tokens and dark mode.
Interactive Playground
R Code
API Reference
block_theme()
Application-wide style engine managing design tokens, boundary rounding, and accent oklch color palettes.
| Argument | Type | Default | Description |
|---|---|---|---|
| ... | character | required | Accent token styles matching oklch colors or custom CSS properties (e.g. accent = 'oklch(0.6 0.15 150)', radius = '1rem'). |
update_block_theme()
Dynamically refreshes CSS tokens, theme states, or colors at runtime.
| Argument | Type | Default | Description |
|---|---|---|---|
| session | ShinySession | required | Shiny active web app session. |
| ... | character | required | Custom accent token properties to override at runtime. |