Maybe something like `_quarto.modules.brand.has_mode(mode)` Today you could look at `param("brand").light` or `param("brand").dark` but that seems messy to me.