Push straight to prod
Jacqueline Nolis & Heather Nolis
rstudio::conf(2019)
We built this model
and we were pretty
excited about it…
But we’d go into business
meetings and be like guys,
look at these ROC curves!
And they’re like…
whatever
So 10 minutes before one meeting
we’re like, hey, let’s just
make a Shiny demo
and this changed the game
Our nice Shiny demo got us
—and I am not exaggerating—
millions of dollars of funding
& multiple new hires
We spent an extra day
making the HTML look nicer to give us that
polished, professional look

aesthetic
usability effect
one day
one day
once
for shiny
once
for quarto
once
for websites
once
for slides
once
for reports
once
once
_brand.yml
_brand.yml
meta: ...
color: ...
typography: ...
logo:
images:
logo-black: logos/T-Mobile_Logo_Ltd-Use_RGB_K_2022-03-14.png
logo-white: logos/T-Mobile_Logo_PRI_RGB_on-M_2022-03-14.png
logo-pink: logos/T-Mobile_Logo_PRI_RGB_on-W_2022-03-14.png
icon-black: logos/T-Digit_Logo_Ltd-Use_RGB_K_2022-03-14.png
icon-white: logos/T-Digit_Logo_PRI_RGB_on-M_2022-03-14.png
icon-pink: logos/T-Digit_Logo_PRI_RGB_on-W_2022-03-14.png_brand.yml
meta: ...
color: ...
typography: ...
logo:
images:
logo-black: logos/T-Mobile_Logo_Ltd-Use_RGB_K_2022-03-14.png
logo-white: logos/T-Mobile_Logo_PRI_RGB_on-M_2022-03-14.png
logo-pink: logos/T-Mobile_Logo_PRI_RGB_on-W_2022-03-14.png
icon-black: logos/T-Digit_Logo_Ltd-Use_RGB_K_2022-03-14.png
icon-white: logos/T-Digit_Logo_PRI_RGB_on-M_2022-03-14.png
icon-pink: logos/T-Digit_Logo_PRI_RGB_on-W_2022-03-14.png
small: icon-pink
medium:
light: icon-black
dark: icon-white
large: logo-pink_brand.yml (copy me)
meta:
name: AI@T-Mobile
link: https://www.t-mobile.com
color:
palette:
pink: "#fa9d28"
white: "#fbfbfb"
black: "#141414"
blue: "#4886ff"
green: "#2dbf3b"
yellow: "#fa9d28"
red: "#f44125"
primary: pink
typography:
fonts:
- family: Noto Sans
source: google
base:
family: Noto Sans
weight: 300
headings:
weight: 400…you’re using bslib, right?
_brand.ymlThat’s it! Good job 👏
_brand.yml_brand.yml_brand.yml_brand.yml_brand.yml_brand.ymlapp.R
library(shiny)
library(bslib)
library(thematic)
theme <- bs_theme()
brand <- attr(theme, "brand")
theme_set(theme_minimal(base_size = 20))
thematic_shiny(
font = font_spec(brand$typography$base$family),
accent = brand$color$primary,
)
update_geom_defaults("bar", list(fill = brand$color$primary))
ui <- page_sidebar(
title = "Intent Model Demo",
theme = theme,
sidebar = sidebar(
bg = brand$color$primary, ...
)
)_brand.yml_brand.ymlcolor.palette → $brand-{color}
$brand-pink and $brand-primarycolor.palette → --brand-{color}
--brand-pink and --brand-primary_brand.yml_brand.yml_brand.yml
Use the same _brand.yml file with…
pkgdown sitesUse the same _brand.yml file with…
brand_yml Python packagebrand.yml R package