Create settings for generate_shiny() or design_app(). Colours must be
opaque six-digit hex values. Text and accent colours must have at least 4.5:1
contrast against the page, panels and derived tints. The default font is the
open-licensed Source Sans and Source Serif pair, which ships inside each app.
The other fonts come from each reader's device, use fallbacks and may be
substituted on other platforms.
Usage
app_design(
accent = "#1D5C48",
background = "#FFFFFF",
surface = "#FFFFFF",
text = "#1A2530",
font = "source",
text_size = 16,
spacing = "comfortable",
radius = 3
)Arguments
- accent
Colour for actions, links and primary estimates.
- background
Page background colour.
- surface
Panel background colour.
- text
Main text colour.
- font
One of
source,system,arial,verdanaorgeorgia.- text_size
Base interface text size in pixels, from 14 to 20.
- spacing
comfortableorcompact.- radius
Corner radius of buttons and fields in pixels, from 0 to 16.
