Frame Styling

Frame Styling#

Frame styling is broken up into different option sets which vary depending on the frame type. Text frames allow frame styles and text styles. Grid frames allow frame styles, column styles and text styles. Table frames are more complicated. Table frames allow frame styles, column styles, text styles and row styles. Table frames also allow specific styles to be set for the header frame using a style dict.

For the most part, base frame styles are set as individual arguments passed when constructing the frame.

HTML styles are set using style dicts. HTML styles are bundled in frame specific style dicts (HtmlTextFrameStylesInput, HtmlGridFrameStylesInput, HtmlTableFrameStylesInput and HtmlTableHeaderStylesInput) with the specific style dicts being set at the keys html_frame_styles, html_column_styles, html_text_styles and html_row_styles where applicable.

frame_styles

The options for frame styles are: frame_divider, max_lines, multiline and background.

column_styles

The options for frame styles are: column_divider, padding and background_padding.

text_styles

The options for frame styles are: text_style, text_align and text_color.

row_styles

The options for frame styles are: row_line_divider, odds_background and evens_background.

html_frame_styles

The options for frame styles are: html_frame_divider_style, html_frame_divider_weight, html_frame_divider_color, html_max_lines, html_multiline and html_background.

html_column_styles

The options for frame styles are: html_column_divider_style, html_column_divider_weight, html_column_divider_color and html_padding.

html_text_styles

The options for frame styles are: html_text_style, html_text_align, html_text_color and html_text_size.

html_row_styles

The options for frame styles are: html_row_line_divider_style, html_row_line_divider_weight, html_row_line_divider_color html_odds_background and html_evens_background.

Please check the API Reference for more information.