← Back to Components

Style

Visual style profiles controlling sizing, spacing, surfaces, elevation, and motion.

Interactive Playground

R Code

API Reference

block_style()

Selects a built-in visual style profile controlling control sizing, spacing, surfaces, elevation, focus treatment, and motion. Pass to block_page(style = ).

ArgumentTypeDefaultDescription
profilecharacter'default'Built-in style profile name (see block_style_profiles()).
...characterNULLCurated snake-case token overrides, e.g. control_height, surface_gap, surface_padding.
scopecharacterNULLOptional CSS selector to scope the profile to a subtree instead of the whole page.

block_style_profiles()

Returns the character vector of built-in style-profile names accepted by block_style().

ArgumentTypeDefaultDescription