Skip to content

Instantly share code, notes, and snippets.

@Eduardodudu
Created May 30, 2022 18:55
Show Gist options
  • Save Eduardodudu/2ff3f34f065af479a891b822db7d4364 to your computer and use it in GitHub Desktop.
Save Eduardodudu/2ff3f34f065af479a891b822db7d4364 to your computer and use it in GitHub Desktop.
[reactable bootstrap] #cssgrid #reactable
theme <- reactableTheme(
style = list(".dark-mode &" = list(color = "#fff", background = "#282a36")),
cellStyle = list(".dark-mode &" = list(borderColor = "rgba(255, 255, 255, 0.15)")),
headerStyle = list(".dark-mode &" = list(borderColor = "rgba(255, 255, 255, 0.15)")),
paginationStyle = list(".dark-mode &" = list(borderColor = "rgba(255, 255, 255, 0.15)")),
rowHighlightStyle = list(".dark-mode &" = list(background = "rgba(255, 255, 255, 0.04)")),
pageButtonHoverStyle = list(".dark-mode &" = list(background = "rgba(255, 255, 255, 0.08)")),
pageButtonActiveStyle = list(".dark-mode &" = list(background = "rgba(255, 255, 255, 0.1)"))
)
.....
reactable(
tab_data,
theme = theme,
searchable = TRUE,
...
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment