Raxol.Style (Raxol v0.2.0)
View SourceDefines style properties for terminal UI elements.
Summary
Functions
Apply component-specific styling.
Apply responsive styling based on terminal dimensions.
Merges two styles, with the second overriding the first.
Creates a new style with default values.
Creates a new style from a keyword list or map of attributes.
Resolves a style definition against the current theme.
Converts style properties to ANSI escape sequences (currently just numeric codes).
Types
@type t() :: %Raxol.Style{ background: Raxol.Style.Colors.Color.t() | nil, border: Raxol.Style.Borders.t(), color: Raxol.Style.Colors.Color.t() | nil, decorations: [atom()], layout: Raxol.Style.Layout.t(), text_decoration: [:underline | :strikethrough | :bold | :italic] }
Functions
Apply component-specific styling.
Apply responsive styling based on terminal dimensions.
Merges two styles, with the second overriding the first.
Creates a new style with default values.
Creates a new style from a keyword list or map of attributes.
Resolves a style definition against the current theme.
Converts style properties to ANSI escape sequences (currently just numeric codes).