Skip to content

bslib theming integration#692

Draft
cpsievert wants to merge 2 commits intomasterfrom
bslib
Draft

bslib theming integration#692
cpsievert wants to merge 2 commits intomasterfrom
bslib

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Nov 20, 2020

This PR makes it so that, when printed as an HTML table, {gt} will derive CSS defaults from any currently active {bslib} theme (via bs_current_theme()), for example:

library(shiny) library(bslib) library(gt) ui <- fluidPage( theme = bs_theme(bootswatch = "darkly"), gt_output("table") ) server <- function(input, output, session) { output$table <- render_gt({ gt(mtcars) }) } shinyApp(ui, server)

It also works with real-time theming (i.e., add bslib::bs_themer() to the server function above) and rmarkdown+bslib.

@olivroy
Copy link
Collaborator

olivroy commented Sep 25, 2024

Hi! Would there be interest in reviving this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants