Module scout::config::styling

source ·
Expand description

Set of types that define how to create styles for UI components

The idea is that you can define styles using a single string with rules and it will be then deserialized in a proper data structure

For example, a component with a style config field can use this syntax to define the styles applied to it:

# toml file
[prompt]
style = "bold underline fg:green bg:#ffbbcc"

That single string will be transformed into a Style struct with a list of Rule structs and Color definitions.

This syntax is a shameless copy from Starship.rs config system.

Structs

Enums