Blue typography and fine horizontal rules inspired by four supplied Hokusai reproductions. White backgrounds and pale paper tints keep analytical tables clean; color does not encode data values. No footer is added.
Usage
gt_theme_hokusai(
data,
palette = c("mountain", "wind", "blossom", "lake"),
table_width = "100%",
font_size = 14,
stripe = FALSE,
font_title = NULL,
font_body = NULL,
font_numeric = NULL,
font_labels = NULL,
gridlines = FALSE
)Arguments
- data
A gt table object
- palette
One of
"mountain"(default),"wind","blossom", or"lake". Each uses blues and paper tones extracted from a different print.- table_width
Character. Width of the table (default: "100%")
- font_size
Numeric. Base font size in pixels (default: 14)
- stripe
Logical. Apply subtle alternating row shading (default: FALSE).
- font_title, font_body, font_numeric, font_labels
A font family or registry key (
lora,lato,georgia,roboto_slab,fira_code,host_grotesk).NULLuses the correspondingekiotable.font_<role>option. Title and body then useekioplot.font_titleandekioplot.font_text, respectively, before falling back to Lora and Lato. Numeric and label fonts inherit the resolved body font unless explicitly set or configured through their role option. Fonts must be available to the renderer; this function does not install them.- gridlines
Logical. Show light-gray horizontal and vertical cell rules (default: FALSE). Section and outer accent rules remain visible.
Details
The palettes are stored as explicit hex values in R/utils.R. Mountain uses
the supplied mountain landscape, wind the windy field, blossom the bullfinch
and weeping cherry, and lake the lakeside landscape. Blues and paper colors
are extracted from the digital reproductions; summary fills are lightened
paper tones on a neutral white canvas. All palettes include a shared neutral
gray scale (gray_50 to gray_900). Zebra stripes use gray_100, gridlines
use gray_200, and structural dividers use gray_300.
Body text and column labels use dark gray; subtitles and notes use a softer dark gray. Blue emphasizes titles, group headings, and summaries.
Apply the theme before any cell-specific highlighting. Font arguments and
options follow gt_theme_ekio().