[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7389RZ3YSCFMTCTX8BS1KFP":3,"skill-same:01M7389RZ3YSCFMTCTX8BS1KFP":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M7389RZ3YSCFMTCTX8BS1KFP","design-shiny-ui",null,"Design Shiny application UIs using bslib for theming, layout_columns for responsive grids, value boxes, cards, and custom CSS\u002FSCSS. Covers page layouts, accessibility, and brand consistency. Use when building a new Shiny app UI from scratch, modernizing an existing app from fluidPage to bslib, applying brand theming, making a Shiny app responsive across screen sizes, or improving accessibility of a Shiny application.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fdesign-shiny-ui\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: design-shiny-ui\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-23\"\ndescription: >\n  Design Shiny application UIs using bslib for theming, layout_columns\n  for responsive grids, value boxes, cards, and custom CSS\u002FSCSS.\n  Covers page layouts, accessibility, and brand consistency. Use when\n  building a new Shiny app UI from scratch, modernizing an existing app from\n  fluidPage to bslib, applying brand theming, making a Shiny app responsive\n  across screen sizes, or improving accessibility of a Shiny application.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: shiny\n  complexity: intermediate\n  language: R\n  tags: shiny, bslib, ui, theming, layout, css, accessibility, responsive\n---\n\n# Design Shiny UI\n\nDesign responsive, accessible Shiny application interfaces using bslib theming, modern layout primitives, and custom CSS.\n\n## When to Use\n\n- Building a new Shiny app UI from scratch\n- Modernizing an existing Shiny app from fluidPage to bslib\n- Applying brand theming (colors, fonts) to a Shiny app\n- Making a Shiny app responsive across screen sizes\n- Improving accessibility of a Shiny application\n\n## Inputs\n\n- **Required**: Application purpose and target audience\n- **Required**: Layout type (sidebar, navbar, fillable, dashboard)\n- **Optional**: Brand colors and fonts\n- **Optional**: Whether to use custom CSS\u002FSCSS (default: bslib only)\n- **Optional**: Accessibility requirements (WCAG level)\n\n## Procedure\n\n### Step 1: Choose the Page Layout\n\nbslib provides several page constructors:\n\n```r\n# Sidebar layout — most common for data apps\nui \u003C- page_sidebar(\n  title = \"My App\",\n  sidebar = sidebar(\"Controls here\"),\n  \"Main content here\"\n)\n\n# Navbar layout — for multi-page apps\nui \u003C- page_navbar(\n  title = \"My App\",\n  nav_panel(\"Tab 1\", \"Content 1\"),\n  nav_panel(\"Tab 2\", \"Content 2\"),\n  nav_spacer(),\n  nav_item(actionButton(\"help\", \"Help\"))\n)\n\n# Fillable layout — content fills available space\nui \u003C- page_fillable(\n  card(\n    full_screen = TRUE,\n    plotOutput(\"plot\")\n  )\n)\n\n# Dashboard layout — grid of value boxes and cards\nui \u003C- page_sidebar(\n  title = \"Dashboard\",\n  sidebar = sidebar(open = \"closed\", \"Filters\"),\n  layout_columns(\n    fill = FALSE,\n    value_box(\"Revenue\", \"$1.2M\", theme = \"primary\"),\n    value_box(\"Users\", \"4,521\", theme = \"success\"),\n    value_box(\"Uptime\", \"99.9%\", theme = \"info\")\n  ),\n  layout_columns(\n    card(plotOutput(\"chart1\")),\n    card(plotOutput(\"chart2\"))\n  )\n)\n```\n\n**Got:** Page layout matches the application's navigation and content needs.\n\n**If fail:** If the layout doesn't look right, check that you're using `page_sidebar()` \u002F `page_navbar()` (bslib) not `fluidPage()` \u002F `navbarPage()` (base shiny). The bslib versions have better defaults and theming support.\n\n### Step 2: Configure the bslib Theme\n\n```r\nmy_theme \u003C- bslib::bs_theme(\n  version = 5,                      # Bootstrap 5\n  bootswatch = \"flatly\",            # Optional preset theme\n  bg = \"#ffffff\",                   # Background color\n  fg = \"#2c3e50\",                   # Foreground (text) color\n  primary = \"#2c3e50\",              # Primary brand color\n  secondary = \"#95a5a6\",            # Secondary color\n  success = \"#18bc9c\",\n  info = \"#3498db\",\n  warning = \"#f39c12\",\n  danger = \"#e74c3c\",\n  base_font = bslib::font_google(\"Source Sans Pro\"),\n  heading_font = bslib::font_google(\"Source Sans Pro\", wght = 600),\n  code_font = bslib::font_google(\"Fira Code\"),\n  \"navbar-bg\" = \"#2c3e50\"\n)\n\nui \u003C- page_sidebar(\n  theme = my_theme,\n  title = \"Themed App\",\n  # ...\n)\n```\n\nUse the interactive theme editor during development:\n\n```r\nbslib::bs_theme_preview(my_theme)\n```\n\n**Got:** App renders with consistent brand colors, fonts, and Bootstrap 5 components.\n\n**If fail:** If fonts don't load, check internet access (Google Fonts requires it) or switch to system fonts: `font_collection(\"system-ui\", \"-apple-system\", \"Segoe UI\")`. If theme variables don't apply, check that you're passing `theme` to the page function.\n\n### Step 3: Build the Layout with Cards and Columns\n\n```r\nui \u003C- page_sidebar(\n  theme = my_theme,\n  title = \"Analysis Dashboard\",\n  sidebar = sidebar(\n    width = 300,\n    title = \"Filters\",\n    selectInput(\"dataset\", \"Dataset\", choices = c(\"iris\", \"mtcars\")),\n    sliderInput(\"sample\", \"Sample %\", 10, 100, 100, step = 10),\n    hr(),\n    actionButton(\"refresh\", \"Refresh\", class = \"btn-primary w-100\")\n  ),\n\n  # KPI row — non-filling\n  layout_columns(\n    fill = FALSE,\n    col_widths = c(4, 4, 4),\n    value_box(\n      title = \"Observations\",\n      value = textOutput(\"n_obs\"),\n      showcase = bsicons::bs_icon(\"table\"),\n      theme = \"primary\"\n    ),\n    value_box(\n      title = \"Variables\",\n      value = textOutput(\"n_vars\"),\n      showcase = bsicons::bs_icon(\"columns-gap\"),\n      theme = \"info\"\n    ),\n    value_box(\n      title = \"Missing\",\n      value = textOutput(\"n_missing\"),\n      showcase = bsicons::bs_icon(\"exclamation-triangle\"),\n      theme = \"warning\"\n    )\n  ),\n\n  # Main content row\n  layout_columns(\n    col_widths = c(8, 4),\n    card(\n      card_header(\"Distribution\"),\n      full_screen = TRUE,\n      plotOutput(\"main_plot\")\n    ),\n    card(\n      card_header(\"Summary\"),\n      tableOutput(\"summary_table\")\n    )\n  )\n)\n```\n\nKey layout primitives:\n- `layout_columns()` — responsive grid with `col_widths`\n- `card()` — content container with optional header\u002Ffooter\n- `value_box()` — KPI display with icon and theme\n- `layout_sidebar()` — nested sidebar within cards\n- `navset_card_tab()` — tabbed cards\n\n**Got:** Responsive grid layout that adapts to screen size.\n\n**If fail:** If columns stack unexpectedly on wide screens, check `col_widths` sum equals 12 (Bootstrap grid). If cards overlap, ensure `fill = FALSE` on non-filling rows.\n\n### Step 4: Add Dynamic UI Elements\n\n```r\nserver \u003C- function(input, output, session) {\n  output$dynamic_filters \u003C- renderUI({\n    data \u003C- current_data()\n    tagList(\n      selectInput(\"col\", \"Column\", choices = names(data)),\n      if (is.numeric(data[[input$col]])) {\n        sliderInput(\"range\", \"Range\",\n          min = min(data[[input$col]], na.rm = TRUE),\n          max = max(data[[input$col]], na.rm = TRUE),\n          value = range(data[[input$col]], na.rm = TRUE)\n        )\n      } else {\n        selectInput(\"values\", \"Values\",\n          choices = unique(data[[input$col]]),\n          multiple = TRUE\n        )\n      }\n    )\n  })\n\n  # Conditional panels (no server round-trip)\n  # In UI:\n  # conditionalPanel(\n  #   condition = \"input.show_advanced == true\",\n  #   numericInput(\"alpha\", \"Alpha\", 0.05)\n  # )\n}\n```\n\n**Got:** UI elements update dynamically based on user selections and data.\n\n**If fail:** If dynamic UI flickers, use `conditionalPanel()` (CSS-based) instead of `renderUI()` where possible. If dynamic inputs lose their values on re-render, add `session$sendInputMessage()` to restore state.\n\n### Step 5: Add Custom CSS\u002FSCSS (Optional)\n\nFor styles beyond bslib theme variables:\n\n```r\n# Inline CSS\nui \u003C- page_sidebar(\n  theme = my_theme,\n  tags$head(tags$style(HTML(\"\n    .sidebar { border-right: 2px solid var(--bs-primary); }\n    .card-header { font-weight: 600; }\n    .value-box .value { font-size: 2.5rem; }\n  \"))),\n  # ...\n)\n\n# External CSS file (place in www\u002F directory)\nui \u003C- page_sidebar(\n  theme = my_theme,\n  tags$head(tags$link(rel = \"stylesheet\", href = \"custom.css\")),\n  # ...\n)\n```\n\nFor SCSS integration with bslib:\n\n```r\nmy_theme \u003C- bslib::bs_theme(version = 5) |>\n  bslib::bs_add_rules(sass::sass_file(\"www\u002Fcustom.scss\"))\n```\n\n**Got:** Custom styles applied without breaking bslib theming.\n\n**If fail:** If custom CSS conflicts with bslib, use Bootstrap CSS variables (`var(--bs-primary)`) instead of hardcoded colors. This ensures theme changes propagate to custom styles.\n\n### Step 6: Ensure Accessibility\n\n```r\n# Add ARIA labels to inputs\nselectInput(\"category\", \"Category\",\n  choices = c(\"A\", \"B\", \"C\")\n) |> tagAppendAttributes(`aria-describedby` = \"category-help\")\n\n# Add alt text to plots\noutput$plot \u003C- renderPlot({\n  plot(data(), main = \"Distribution of Values\")\n}, alt = \"Histogram showing the distribution of selected values\")\n\n# Ensure sufficient color contrast in theme\nmy_theme \u003C- bslib::bs_theme(\n  version = 5,\n  bg = \"#ffffff\",      # White background\n  fg = \"#212529\"       # Dark text — 15.4:1 contrast ratio\n)\n\n# Use semantic HTML\ntags$main(\n  role = \"main\",\n  tags$h1(\"Dashboard\"),\n  tags$section(\n    `aria-label` = \"Key Performance Indicators\",\n    layout_columns(\n      # value boxes...\n    )\n  )\n)\n```\n\n**Got:** App meets WCAG 2.1 AA standards for color contrast, keyboard navigation, and screen reader compatibility.\n\n**If fail:** Test with browser dev tools accessibility audit (Lighthouse). Check color contrast ratios with WebAIM's contrast checker. Ensure all interactive elements are keyboard-focusable.\n\n## Validation\n\n- [ ] Page layout renders correctly on desktop and mobile widths\n- [ ] bslib theme applies consistently to all components\n- [ ] Value boxes display with correct themes and icons\n- [ ] Cards resize properly in the responsive grid\n- [ ] Custom CSS uses Bootstrap variables, not hardcoded values\n- [ ] All plots have alt text for screen readers\n- [ ] Color contrast meets WCAG AA (4.5:1 for text)\n- [ ] Interactive elements are keyboard accessible\n\n## Pitfalls\n\n- **Mixing old and new Shiny UI**: Don't mix `fluidPage()` with bslib components. Use `page_sidebar()`, `page_navbar()`, or `page_fillable()` exclusively.\n- **Hardcoded colors in CSS**: Use `var(--bs-primary)` instead of `#2c3e50`. Hardcoded colors break when the theme changes.\n- **Missing `fill = FALSE` on non-filling rows**: Value box rows and summary rows usually shouldn't stretch to fill available space. Set `fill = FALSE`.\n- **Google Fonts in offline environments**: If the app deploys to an air-gapped network, use system fonts or self-hosted font files instead of `font_google()`.\n- **Ignoring mobile**: Test with the browser responsive mode. `layout_columns` automatically stacks on narrow screens, but custom CSS may not.\n\n## Related Skills\n\n- `scaffold-shiny-app` — initial app setup including theme configuration\n- `build-shiny-module` — create modular UI components\n- `optimize-shiny-performance` — performance-conscious rendering\n- `review-web-design` — visual design review for layout, typography, and colour\n- `review-ux-ui` — usability and accessibility review\n","# Design Shiny UI\n\nDesign responsive, accessible Shiny application interfaces using bslib theming, modern layout primitives, and custom CSS.\n\n## When to Use\n\n- Building a new Shiny app UI from scratch\n- Modernizing an existing Shiny app from fluidPage to bslib\n- Applying brand theming (colors, fonts) to a Shiny app\n- Making a Shiny app responsive across screen sizes\n- Improving accessibility of a Shiny application\n\n## Inputs\n\n- **Required**: Application purpose and target audience\n- **Required**: Layout type (sidebar, navbar, fillable, dashboard)\n- **Optional**: Brand colors and fonts\n- **Optional**: Whether to use custom CSS\u002FSCSS (default: bslib only)\n- **Optional**: Accessibility requirements (WCAG level)\n\n## Procedure\n\n### Step 1: Choose the Page Layout\n\nbslib provides several page constructors:\n\n```r\n# Sidebar layout — most common for data apps\nui \u003C- page_sidebar(\n  title = \"My App\",\n  sidebar = sidebar(\"Controls here\"),\n  \"Main content here\"\n)\n\n# Navbar layout — for multi-page apps\nui \u003C- page_navbar(\n  title = \"My App\",\n  nav_panel(\"Tab 1\", \"Content 1\"),\n  nav_panel(\"Tab 2\", \"Content 2\"),\n  nav_spacer(),\n  nav_item(actionButton(\"help\", \"Help\"))\n)\n\n# Fillable layout — content fills available space\nui \u003C- page_fillable(\n  card(\n    full_screen = TRUE,\n    plotOutput(\"plot\")\n  )\n)\n\n# Dashboard layout — grid of value boxes and cards\nui \u003C- page_sidebar(\n  title = \"Dashboard\",\n  sidebar = sidebar(open = \"closed\", \"Filters\"),\n  layout_columns(\n    fill = FALSE,\n    value_box(\"Revenue\", \"$1.2M\", theme = \"primary\"),\n    value_box(\"Users\", \"4,521\", theme = \"success\"),\n    value_box(\"Uptime\", \"99.9%\", theme = \"info\")\n  ),\n  layout_columns(\n    card(plotOutput(\"chart1\")),\n    card(plotOutput(\"chart2\"))\n  )\n)\n```\n\n**Got:** Page layout matches the application's navigation and content needs.\n\n**If fail:** If the layout doesn't look right, check that you're using `page_sidebar()` \u002F `page_navbar()` (bslib) not `fluidPage()` \u002F `navbarPage()` (base shiny). The bslib versions have better defaults and theming support.\n\n### Step 2: Configure the bslib Theme\n\n```r\nmy_theme \u003C- bslib::bs_theme(\n  version = 5,                      # Bootstrap 5\n  bootswatch = \"flatly\",            # Optional preset theme\n  bg = \"#ffffff\",                   # Background color\n  fg = \"#2c3e50\",                   # Foreground (text) color\n  primary = \"#2c3e50\",              # Primary brand color\n  secondary = \"#95a5a6\",            # Secondary color\n  success = \"#18bc9c\",\n  info = \"#3498db\",\n  warning = \"#f39c12\",\n  danger = \"#e74c3c\",\n  base_font = bslib::font_google(\"Source Sans Pro\"),\n  heading_font = bslib::font_google(\"Source Sans Pro\", wght = 600),\n  code_font = bslib::font_google(\"Fira Code\"),\n  \"navbar-bg\" = \"#2c3e50\"\n)\n\nui \u003C- page_sidebar(\n  theme = my_theme,\n  title = \"Themed App\",\n  # ...\n)\n```\n\nUse the interactive theme editor during development:\n\n```r\nbslib::bs_theme_preview(my_theme)\n```\n\n**Got:** App renders with consistent brand colors, fonts, and Bootstrap 5 components.\n\n**If fail:** If fonts don't load, check internet access (Google Fonts requires it) or switch to system fonts: `font_collection(\"system-ui\", \"-apple-system\", \"Segoe UI\")`. If theme variables don't apply, check that you're passing `theme` to the page function.\n\n### Step 3: Build the Layout with Cards and Columns\n\n```r\nui \u003C- page_sidebar(\n  theme = my_theme,\n  title = \"Analysis Dashboard\",\n  sidebar = sidebar(\n    width = 300,\n    title = \"Filters\",\n    selectInput(\"dataset\", \"Dataset\", choices = c(\"iris\", \"mtcars\")),\n    sliderInput(\"sample\", \"Sample %\", 10, 100, 100, step = 10),\n    hr(),\n    actionButton(\"refresh\", \"Refresh\", class = \"btn-primary w-100\")\n  ),\n\n  # KPI row — non-filling\n  layout_columns(\n    fill = FALSE,\n    col_widths = c(4, 4, 4),\n    value_box(\n      title = \"Observations\",\n      value = textOutput(\"n_obs\"),\n      showcase = bsicons::bs_icon(\"table\"),\n      theme = \"primary\"\n    ),\n    value_box(\n      title = \"Variables\",\n      value = textOutput(\"n_vars\"),\n      showcase = bsicons::bs_icon(\"columns-gap\"),\n      theme = \"info\"\n    ),\n    value_box(\n      title = \"Missing\",\n      value = textOutput(\"n_missing\"),\n      showcase = bsicons::bs_icon(\"exclamation-triangle\"),\n      theme = \"warning\"\n    )\n  ),\n\n  # Main content row\n  layout_columns(\n    col_widths = c(8, 4),\n    card(\n      card_header(\"Distribution\"),\n      full_screen = TRUE,\n      plotOutput(\"main_plot\")\n    ),\n    card(\n      card_header(\"Summary\"),\n      tableOutput(\"summary_table\")\n    )\n  )\n)\n```\n\nKey layout primitives:\n- `layout_columns()` — responsive grid with `col_widths`\n- `card()` — content container with optional header\u002Ffooter\n- `value_box()` — KPI display with icon and theme\n- `layout_sidebar()` — nested sidebar within cards\n- `navset_card_tab()` — tabbed cards\n\n**Got:** Responsive grid layout that adapts to screen size.\n\n**If fail:** If columns stack unexpectedly on wide screens, check `col_widths` sum equals 12 (Bootstrap grid). If cards overlap, ensure `fill = FALSE` on non-filling rows.\n\n### Step 4: Add Dynamic UI Elements\n\n```r\nserver \u003C- function(input, output, session) {\n  output$dynamic_filters \u003C- renderUI({\n    data \u003C- current_data()\n    tagList(\n      selectInput(\"col\", \"Column\", choices = names(data)),\n      if (is.numeric(data[[input$col]])) {\n        sliderInput(\"range\", \"Range\",\n          min = min(data[[input$col]], na.rm = TRUE),\n          max = max(data[[input$col]], na.rm = TRUE),\n          value = range(data[[input$col]], na.rm = TRUE)\n        )\n      } else {\n        selectInput(\"values\", \"Values\",\n          choices = unique(data[[input$col]]),\n          multiple = TRUE\n        )\n      }\n    )\n  })\n\n  # Conditional panels (no server round-trip)\n  # In UI:\n  # conditionalPanel(\n  #   condition = \"input.show_advanced == true\",\n  #   numericInput(\"alpha\", \"Alpha\", 0.05)\n  # )\n}\n```\n\n**Got:** UI elements update dynamically based on user selections and data.\n\n**If fail:** If dynamic UI flickers, use `conditionalPanel()` (CSS-based) instead of `renderUI()` where possible. If dynamic inputs lose their values on re-render, add `session$sendInputMessage()` to restore state.\n\n### Step 5: Add Custom CSS\u002FSCSS (Optional)\n\nFor styles beyond bslib theme variables:\n\n```r\n# Inline CSS\nui \u003C- page_sidebar(\n  theme = my_theme,\n  tags$head(tags$style(HTML(\"\n    .sidebar { border-right: 2px solid var(--bs-primary); }\n    .card-header { font-weight: 600; }\n    .value-box .value { font-size: 2.5rem; }\n  \"))),\n  # ...\n)\n\n# External CSS file (place in www\u002F directory)\nui \u003C- page_sidebar(\n  theme = my_theme,\n  tags$head(tags$link(rel = \"stylesheet\", href = \"custom.css\")),\n  # ...\n)\n```\n\nFor SCSS integration with bslib:\n\n```r\nmy_theme \u003C- bslib::bs_theme(version = 5) |>\n  bslib::bs_add_rules(sass::sass_file(\"www\u002Fcustom.scss\"))\n```\n\n**Got:** Custom styles applied without breaking bslib theming.\n\n**If fail:** If custom CSS conflicts with bslib, use Bootstrap CSS variables (`var(--bs-primary)`) instead of hardcoded colors. This ensures theme changes propagate to custom styles.\n\n### Step 6: Ensure Accessibility\n\n```r\n# Add ARIA labels to inputs\nselectInput(\"category\", \"Category\",\n  choices = c(\"A\", \"B\", \"C\")\n) |> tagAppendAttributes(`aria-describedby` = \"category-help\")\n\n# Add alt text to plots\noutput$plot \u003C- renderPlot({\n  plot(data(), main = \"Distribution of Values\")\n}, alt = \"Histogram showing the distribution of selected values\")\n\n# Ensure sufficient color contrast in theme\nmy_theme \u003C- bslib::bs_theme(\n  version = 5,\n  bg = \"#ffffff\",      # White background\n  fg = \"#212529\"       # Dark text — 15.4:1 contrast ratio\n)\n\n# Use semantic HTML\ntags$main(\n  role = \"main\",\n  tags$h1(\"Dashboard\"),\n  tags$section(\n    `aria-label` = \"Key Performance Indicators\",\n    layout_columns(\n      # value boxes...\n    )\n  )\n)\n```\n\n**Got:** App meets WCAG 2.1 AA standards for color contrast, keyboard navigation, and screen reader compatibility.\n\n**If fail:** Test with browser dev tools accessibility audit (Lighthouse). Check color contrast ratios with WebAIM's contrast checker. Ensure all interactive elements are keyboard-focusable.\n\n## Validation\n\n- [ ] Page layout renders correctly on desktop and mobile widths\n- [ ] bslib theme applies consistently to all components\n- [ ] Value boxes display with correct themes and icons\n- [ ] Cards resize properly in the responsive grid\n- [ ] Custom CSS uses Bootstrap variables, not hardcoded values\n- [ ] All plots have alt text for screen readers\n- [ ] Color contrast meets WCAG AA (4.5:1 for text)\n- [ ] Interactive elements are keyboard accessible\n\n## Pitfalls\n\n- **Mixing old and new Shiny UI**: Don't mix `fluidPage()` with bslib components. Use `page_sidebar()`, `page_navbar()`, or `page_fillable()` exclusively.\n- **Hardcoded colors in CSS**: Use `var(--bs-primary)` instead of `#2c3e50`. Hardcoded colors break when the theme changes.\n- **Missing `fill = FALSE` on non-filling rows**: Value box rows and summary rows usually shouldn't stretch to fill available space. Set `fill = FALSE`.\n- **Google Fonts in offline environments**: If the app deploys to an air-gapped network, use system fonts or self-hosted font files instead of `font_google()`.\n- **Ignoring mobile**: Test with the browser responsive mode. `layout_columns` automatically stacks on narrow screens, but custom CSS may not.\n\n## Related Skills\n\n- `scaffold-shiny-app` — initial app setup including theme configuration\n- `build-shiny-module` — create modular UI components\n- `optimize-shiny-performance` — performance-conscious rendering\n- `review-web-design` — visual design review for layout, typography, and colour\n- `review-ux-ui` — usability and accessibility review\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"shiny, bslib, ui, theming, layout, css, accessibility, responsive","Philipp Thoss","shiny","1.0","R","intermediate","Julius Brussee homage — caveman","Design Shiny application UIs using bslib for theming, layout_columns for responsive grids, value boxes, cards, and custom CSS\u002FSCSS. Covers page layouts, accessibility, and brand consistency. Use when building a new Shiny app UI from scratch, modernizing an existing app from fluidPage to bslib, applying brand theming, making a Shiny app responsive across screen sizes, or improving accessibility of a Shiny application.\n","Read Write Edit Bash Grep Glob","82c77053","en","2026-04-23","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fdesign-shiny-ui",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill design-shiny-ui",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill design-shiny-ui",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill design-shiny-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fdesign-shiny-ui\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]