# Style

A style object contains the following information:

- fg
- bg
- add_modifiers
- sub_modifiers

### fg

Type: nullable Color

The foreground color.

### bg

Type: nullable Color

The background color.

### add_modifiers

Type: nullable list of Modifier

Modifiers to add.

### sub_modifiers

Type: nullable list of Modifier

Modifiers to remove.

## Color

Color is a sum type that can be one of the following:

- "Reset"
- "Black"
- "Red"
- "Green"
- "Yellow"
- "Blue"
- "Magenta"
- "Cyan"
- "Gray"
- "DarkGray"
- "LightRed"
- "LightGreen"
- "LightYellow"
- "LightBlue"
- "LightMagenta"
- "LightCyan"
- "White"
- { Rgb = { int, int, int } }
- { Indexed = int }

## Modifier

Modifier is a sum type that can be one of the following:

- "Bold"
- "Dim"
- "Italic"
- "Underlined"
- "SlowBlink"
- "RapidBlink"
- "Reversed"
- "Hidden"
- "CrossedOut"

## Example

    xplr.config.general.prompt.style.fg = "Red"
    xplr.config.general.prompt.style.bg = { Rgb = { 100, 150, 200 } }
    xplr.config.general.prompt.style.add_modifiers = { "Bold", "Italic" }
    xplr.config.general.prompt.style.sub_modifiers = { "Hidden" }