Style a Shiny dashboard with AI
Adjust a bslib theme and compare the result on controls, cards and charts. Inspect small labels as well as the elements that carry the brand colour.
Style a Shiny dashboard with AI around a page that people already find difficult to read. A dark theme may look convincing until the legend disappears from a chart or the selected button loses its label. Looking at the actual components is a better test than comparing a row of colour swatches.
The shiny-bslib-theming guide covers Bootstrap-based themes, typography and colour modes in Shiny. It can help an agent trace a visual choice back to a shared setting. Plots can have their own settings, so inspect the page and the plot together before settling on a change.
What it does
- Choose a main colour for the existing theme
- Set readable type for headings, labels and figures
- Check how a card behaves when the colour mode changes
- Bring plot backgrounds and labels into the same review
- Preview a theme adjustment on a representative page
Install and use
- Use a compatible agent with an R project, Shiny and bslib. Provide the current theme and a page you can preview. Check the licence for any supplied brand font.
- Ask, “Keep our blue button but make its selected label legible. Show the change on this page in both modes, including the chart legend.”
- Test a dense chart and an ordinary form control at normal display size. Make further adjustments only where the preview shows a problem.
FAQ
Source
Made by Garrick Aden-Buie. Original skill: shiny-bslib-theming, published on GitHub under the MIT licence.
View on GitHub