Skip to content
Linus Mußmächer edited this page Jun 29, 2024 · 2 revisions

Rucola comes with two style files by default, default_light and default_dark.

For creating your own file, it is suggested to simply modify one of these.

Options

Internally, rucola uses 6 different ratatui-styles for 6 different categories of text. The categories are

  • title_style: For block and screen titles.
  • subtitle_style: For table headers and other subtitles within a block.
  • hotkey_style: Used for the single character within another text that indicates the hotkey to trigger the action indicated by the text.
  • text_style: For all basic text: Table content, descriptions, actions.
  • selected_style: For the selected row within a table.
  • input_style: For the input text within a text box.

For all of these, you can specify

  • foreground color
  • background color
  • modifiers, in particular BOLD, ITALIC and UNDERLINED, which can be combined with | like BOLD | UNDERLINED where colors can either be the colors specified by your terminal (such as Blue, LightCyan, White) or hex codes (such as #e2e5ab).

Format

The files are serializations of ratatui::style::Style into the TOML format. This format may change as we update the ratatui version in later releases.

Clone this wiki locally