Skip to contents

Uses shinychat's official page_chat_theme() as the common Bootstrap 5 foundation for both codeagent layouts. The "glass" style instead delegates Liquid Glass material rendering to the optional shinyglass::glass_theme() package and adds only a thin adapter for shinychat page surfaces. The returned object can be passed to codeagent_app() or further customized with bslib.

Usage

codeagent_theme(style = "default", ...)

Arguments

style

One of "default", "ios", "aurora", "flatly", "darkly", or "glass". CLI aliases "light", "dark", and "glassmorphism" are also accepted. Unknown values fail soft to "default". "glass" requires the optional shinyglass package.

...

For style = "glass", arguments passed to shinyglass::glass_theme() (for example preset, intensity, tint, and specular). For other styles, named Bootstrap or shinychat Sass variable overrides passed to shinychat::page_chat_theme(). Overrides take precedence over built-in style defaults.

Value

A bslib bs_theme object.