style

Semantic style tokens and theme resolution. Semantic style tokens and theme resolution.

A Theme holds one Style per UI token. Tokens are resolved in three layers: built-in defaults, palette overrides, and per-token overrides from the user’s configuration.

static THEME

source

static THEME: OnceLock<Theme> = OnceLock::new();

Process-wide resolved theme, set once during startup.

const ALL_TOKENS

source

pub const ALL_TOKENS: &[&str] = &[
  "artifact.detail.label",
  "artifact.detail.separator",
  "artifact.detail.value",
  "artifact.list.archived.badge",
  "artifact.list.tag.archived",
  "artifact.list.title",
  "artifact.list.title.archived",
  "banner.author",
  "banner.gradient.end",
  "banner.gradient.start",
  "banner.shadow",
  "banner.update.command",
  "banner.update.hint",
  "banner.update.message",
  "banner.update.version",
  "banner.version",
  "banner.version.date",
  "banner.version.revision",
  "border",
  "config.heading",
  "config.label",
  "config.no_overrides",
  "config.value",
  "confirm.description",
  "confirm.indicator",
  "confirm.selected",
  "confirm.unselected",
  "emphasis",
  "error",
  "id.prefix",
  "id.rest",
  "indicator.blocked",
  "indicator.blocked_by.id",
  "indicator.blocked_by.label",
  "indicator.blocking",
  "init.command.prefix",
  "init.label",
  "init.section",
  "init.value",
  "iteration.detail.count.blocked",
  "iteration.detail.count.done",
  "iteration.detail.count.in_progress",
  "iteration.detail.count.open",
  "iteration.detail.label",
  "iteration.detail.value",
  "iteration.graph.branch",
  "iteration.graph.phase.icon",
  "iteration.graph.phase.label",
  "iteration.graph.phase.name",
  "iteration.graph.separator",
  "iteration.graph.title",
  "iteration.list.summary",
  "iteration.list.title",
  "iteration.status.label",
  "iteration.status.progress",
  "iteration.status.value",
  "list.heading",
  "list.summary",
  "log.debug",
  "log.error",
  "log.info",
  "log.timestamp",
  "log.trace",
  "log.warn",
  "markdown.alert.caution.border",
  "markdown.alert.important.border",
  "markdown.alert.note.border",
  "markdown.alert.tip.border",
  "markdown.alert.warning.border",
  "markdown.blockquote",
  "markdown.blockquote.border",
  "markdown.code.block",
  "markdown.code.border",
  "markdown.code.inline",
  "markdown.emphasis",
  "markdown.heading",
  "markdown.link",
  "markdown.rule",
  "markdown.strong",
  "meta.not_set",
  "meta.value",
  "message.created.label",
  "message.success.icon",
  "message.updated.label",
  "migrate.count",
  "muted",
  "note.detail.label",
  "note.detail.separator",
  "note.detail.value",
  "note.list.body",
  "note.list.id",
  "project.list.archived.badge",
  "project.list.root",
  "project.list.root.archived",
  "project.show.value",
  "search.expand.separator",
  "search.no_results.hint",
  "search.query",
  "search.summary",
  "search.type.label",
  "serve.url",
  "status.cancelled",
  "status.done",
  "status.in_progress",
  "status.open",
  "success",
  "tag",
  "tag.list.count",
  "tag.list.heading",
  "task.detail.label",
  "task.detail.separator",
  "task.detail.title",
  "task.detail.value",
  "task.list.icon.cancelled",
  "task.list.icon.done",
  "task.list.icon.in_progress",
  "task.list.icon.open",
  "task.list.priority",
  "task.list.title",
  "task.list.title.cancelled",
];

Every known token key, used to drive palette cascading.

enum Palette

source

pub enum Palette

Semantic palette slots that style tokens can reference.

Variant Description
Accent Attention-grabbing highlight color used for emphasis and brand accents.
Border Subtle color used for rules, separators, and box borders.
Error Color reserved for error states and destructive actions.
Primary The dominant brand color used for headings, links, and primary UI chrome.
PrimaryDark A darker shade of Primary for borders and inset surfaces.
PrimaryLight A lighter shade of Primary for debug-level accents.
Success Color for success states and positive confirmations.
Text Default foreground color for body text.
TextDim A dimmer text shade used for inactive or deprioritized content.
TextMuted A muted text shade used for labels, hints, and secondary content.
Warning Color reserved for warning states and in-progress indicators.

Implements Clone, Copy, Debug, Eq, Hash, PartialEq.

const Palette::ALL

source

const ALL: [Palette; 11] = _;

All palette variants in definition order.

Palette::default_color

source

pub fn default_color(self) -> Color

The built-in default color for this palette slot.

Parameter Type Description
returns Color The slot’s brand RGB color, used when [colors.palette] does not override it.

Palette::key

source

pub fn key(self) -> &'static str

The config key used in [colors.palette] for this slot.

Parameter Type Description
returns &'static str The dot-separated key, such as primary.dark for PrimaryDark.

struct Theme

source

pub struct Theme

Semantic style tokens for all UI elements.

Each field maps a named UI role to a Style. The Default implementation uses the brand palette.

Field Type Description
artifact_detail_label Style Style of the artifact.detail.label token, coloured by the Palette::TextMuted slot.
artifact_detail_separator Style Style of the artifact.detail.separator token, coloured by the Palette::Border slot.
artifact_detail_value Style Style of the artifact.detail.value token, coloured by the Palette::Text slot.
artifact_list_archived_badge Style Style of the artifact.list.archived.badge token, coloured by the Palette::TextDim slot.
artifact_list_tag_archived Style Style of the artifact.list.tag.archived token, coloured by the Palette::TextDim slot.
artifact_list_title Style Style of the artifact.list.title token, coloured by the Palette::Text slot.
artifact_list_title_archived Style Style of the artifact.list.title.archived token, coloured by the Palette::TextDim slot.
banner_author Style Style of the banner.author token, coloured by the Palette::Accent slot.
banner_gradient_end Style Style of the banner.gradient.end token, which no palette slot recolours.
banner_gradient_start Style Style of the banner.gradient.start token, which no palette slot recolours.
banner_shadow Style Style of the banner.shadow token, which no palette slot recolours.
banner_update_command Style Style of the banner.update.command token, coloured by the Palette::Text slot.
banner_update_hint Style Style of the banner.update.hint token, coloured by the Palette::TextMuted slot.
banner_update_message Style Style of the banner.update.message token, coloured by the Palette::Warning slot.
banner_update_version Style Style of the banner.update.version token, coloured by the Palette::Warning slot.
banner_version Style Style of the banner.version token, coloured by the Palette::Text slot.
banner_version_date Style Style of the banner.version.date token, coloured by the Palette::Primary slot.
banner_version_revision Style Style of the banner.version.revision token, coloured by the Palette::Success slot.
border Style Style of the border token, coloured by the Palette::Border slot.
config_heading Style Style of the config.heading token, coloured by the Palette::Primary slot.
config_label Style Style of the config.label token, coloured by the Palette::TextMuted slot.
config_no_overrides Style Style of the config.no_overrides token, coloured by the Palette::TextDim slot.
config_value Style Style of the config.value token, coloured by the Palette::Text slot.
confirm_description Style Style of the confirm.description token, coloured by the Palette::TextMuted slot.
confirm_indicator Style Style of the confirm.indicator token, coloured by the Palette::Primary slot.
confirm_selected Style Style of the confirm.selected token, coloured by the Palette::Primary slot.
confirm_unselected Style Style of the confirm.unselected token, coloured by the Palette::TextDim slot.
emphasis Style Style of the emphasis token, coloured by the Palette::Primary slot.
error Style Style of the error token, coloured by the Palette::Error slot.
id_prefix Style Style of the id.prefix token, coloured by the Palette::Primary slot.
id_rest Style Style of the id.rest token, coloured by the Palette::TextMuted slot.
indicator_blocked Style Style of the indicator.blocked token, coloured by the Palette::Error slot.
indicator_blocked_by_id Style Style of the indicator.blocked_by.id token, coloured by the Palette::Primary slot.
indicator_blocked_by_label Style Style of the indicator.blocked_by.label token, coloured by the Palette::TextMuted slot.
indicator_blocking Style Style of the indicator.blocking token, coloured by the Palette::Warning slot.
init_command_prefix Style Style of the init.command.prefix token, coloured by the Palette::Border slot.
init_label Style Style of the init.label token, coloured by the Palette::TextMuted slot.
init_section Style Style of the init.section token, coloured by the Palette::TextMuted slot.
init_value Style Style of the init.value token, coloured by the Palette::Text slot.
iteration_detail_count_blocked Style Style of the iteration.detail.count.blocked token, coloured by the Palette::Error slot.
iteration_detail_count_done Style Style of the iteration.detail.count.done token, coloured by the Palette::Success slot.
iteration_detail_count_in_progress Style Style of the iteration.detail.count.in_progress token, coloured by the Palette::Warning slot.
iteration_detail_count_open Style Style of the iteration.detail.count.open token, coloured by the Palette::Text slot.
iteration_detail_label Style Style of the iteration.detail.label token, coloured by the Palette::TextMuted slot.
iteration_detail_value Style Style of the iteration.detail.value token, coloured by the Palette::Text slot.
iteration_graph_branch Style Style of the iteration.graph.branch token, coloured by the Palette::Border slot.
iteration_graph_phase_icon Style Style of the iteration.graph.phase.icon token, coloured by the Palette::Primary slot.
iteration_graph_phase_label Style Style of the iteration.graph.phase.label token, coloured by the Palette::Primary slot.
iteration_graph_phase_name Style Style of the iteration.graph.phase.name token, coloured by the Palette::TextMuted slot.
iteration_graph_separator Style Style of the iteration.graph.separator token, coloured by the Palette::Border slot.
iteration_graph_title Style Style of the iteration.graph.title token, coloured by the Palette::Text slot.
iteration_list_summary Style Style of the iteration.list.summary token, coloured by the Palette::TextMuted slot.
iteration_list_title Style Style of the iteration.list.title token, coloured by the Palette::Text slot.
iteration_status_label Style Style of the iteration.status.label token, coloured by the Palette::TextMuted slot.
iteration_status_progress Style Style of the iteration.status.progress token, coloured by the Palette::Primary slot.
iteration_status_value Style Style of the iteration.status.value token, coloured by the Palette::Text slot.
list_heading Style Style of the list.heading token, coloured by the Palette::Primary slot.
list_summary Style Style of the list.summary token, coloured by the Palette::TextMuted slot.
log_debug Style Style of the log.debug token, coloured by the Palette::PrimaryLight slot.
log_error Style Style of the log.error token, coloured by the Palette::Error slot.
log_info Style Style of the log.info token, coloured by the Palette::Primary slot.
log_timestamp Style Style of the log.timestamp token, coloured by the Palette::TextDim slot.
log_trace Style Style of the log.trace token, coloured by the Palette::TextDim slot.
log_warn Style Style of the log.warn token, coloured by the Palette::Warning slot.
markdown_alert_caution_border Style Style of the markdown.alert.caution.border token, coloured by the Palette::Error slot.
markdown_alert_important_border Style Style of the markdown.alert.important.border token, which no palette slot recolours.
markdown_alert_note_border Style Style of the markdown.alert.note.border token, coloured by the Palette::Primary slot.
markdown_alert_tip_border Style Style of the markdown.alert.tip.border token, coloured by the Palette::Success slot.
markdown_alert_warning_border Style Style of the markdown.alert.warning.border token, coloured by the Palette::Warning slot.
markdown_blockquote Style Style of the markdown.blockquote token, coloured by the Palette::TextMuted slot.
markdown_blockquote_border Style Style of the markdown.blockquote.border token, coloured by the Palette::TextDim slot.
markdown_code_block Style Style of the markdown.code.block token, coloured by the Palette::Text slot.
markdown_code_border Style Style of the markdown.code.border token, coloured by the Palette::PrimaryDark slot.
markdown_code_inline Style Style of the markdown.code.inline token, coloured by the Palette::Accent slot.
markdown_emphasis Style Style of the markdown.emphasis token, which no palette slot recolours.
markdown_heading Style Style of the markdown.heading token, coloured by the Palette::Primary slot.
markdown_link Style Style of the markdown.link token, coloured by the Palette::Primary slot.
markdown_rule Style Style of the markdown.rule token, coloured by the Palette::Border slot.
markdown_strong Style Style of the markdown.strong token, which no palette slot recolours.
meta_not_set Style Style of the meta.not_set token, coloured by the Palette::TextDim slot.
meta_value Style Style of the meta.value token, coloured by the Palette::Text slot.
message_created_label Style Style of the message.created.label token, coloured by the Palette::Text slot.
message_success_icon Style Style of the message.success.icon token, coloured by the Palette::Success slot.
message_updated_label Style Style of the message.updated.label token, coloured by the Palette::Text slot.
migrate_count Style Style of the migrate.count token, coloured by the Palette::Primary slot.
muted Style Style of the muted token, coloured by the Palette::TextMuted slot.
note_detail_label Style Style of the note.detail.label token, coloured by the Palette::TextMuted slot.
note_detail_separator Style Style of the note.detail.separator token, coloured by the Palette::Border slot.
note_detail_value Style Style of the note.detail.value token, coloured by the Palette::Text slot.
note_list_body Style Style of the note.list.body token, coloured by the Palette::TextMuted slot.
note_list_id Style Style of the note.list.id token, coloured by the Palette::Primary slot.
project_list_archived_badge Style Style of the project.list.archived.badge token, coloured by the Palette::TextDim slot.
project_list_root Style Style of the project.list.root token, coloured by the Palette::Text slot.
project_list_root_archived Style Style of the project.list.root.archived token, coloured by the Palette::TextDim slot.
project_show_value Style Style of the project.show.value token, coloured by the Palette::Text slot.
search_expand_separator Style Style of the search.expand.separator token, coloured by the Palette::Border slot.
search_no_results_hint Style Style of the search.no_results.hint token, coloured by the Palette::TextDim slot.
search_query Style Style of the search.query token, coloured by the Palette::Text slot.
search_summary Style Style of the search.summary token, coloured by the Palette::TextMuted slot.
search_type_label Style Style of the search.type.label token, coloured by the Palette::TextMuted slot.
serve_url Style Style of the serve.url token, coloured by the Palette::Primary slot.
status_cancelled Style Style of the status.cancelled token, coloured by the Palette::TextDim slot.
status_done Style Style of the status.done token, coloured by the Palette::Success slot.
status_in_progress Style Style of the status.in_progress token, coloured by the Palette::Warning slot.
status_open Style Style of the status.open token, coloured by the Palette::Text slot.
success Style Style of the success token, coloured by the Palette::Success slot.
tag Style Style of the tag token, coloured by the Palette::Primary slot.
tag_list_count Style Style of the tag.list.count token, coloured by the Palette::TextMuted slot.
tag_list_heading Style Style of the tag.list.heading token, coloured by the Palette::Primary slot.
task_detail_label Style Style of the task.detail.label token, coloured by the Palette::TextMuted slot.
task_detail_separator Style Style of the task.detail.separator token, coloured by the Palette::Border slot.
task_detail_title Style Style of the task.detail.title token, coloured by the Palette::Text slot.
task_detail_value Style Style of the task.detail.value token, coloured by the Palette::Text slot.
task_list_icon_cancelled Style Style of the task.list.icon.cancelled token, coloured by the Palette::TextDim slot.
task_list_icon_done Style Style of the task.list.icon.done token, coloured by the Palette::Success slot.
task_list_icon_in_progress Style Style of the task.list.icon.in_progress token, coloured by the Palette::Warning slot.
task_list_icon_open Style Style of the task.list.icon.open token, coloured by the Palette::Text slot.
task_list_priority Style Style of the task.list.priority token, coloured by the Palette::TextMuted slot.
task_list_title Style Style of the task.list.title token, coloured by the Palette::Text slot.
task_list_title_cancelled Style Style of the task.list.title.cancelled token, coloured by the Palette::TextDim slot.

Implements Clone, Debug, Default.

Theme::artifact_detail_label

source

pub fn artifact_detail_label(&self) -> &Style

Style of the artifact.detail.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::artifact_detail_separator

source

pub fn artifact_detail_separator(&self) -> &Style

Style of the artifact.detail.separator token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::artifact_detail_value

source

pub fn artifact_detail_value(&self) -> &Style

Style of the artifact.detail.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::artifact_list_archived_badge

source

pub fn artifact_list_archived_badge(&self) -> &Style

Style of the artifact.list.archived.badge token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::artifact_list_tag_archived

source

pub fn artifact_list_tag_archived(&self) -> &Style

Style of the artifact.list.tag.archived token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::artifact_list_title

source

pub fn artifact_list_title(&self) -> &Style

Style of the artifact.list.title token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::artifact_list_title_archived

source

pub fn artifact_list_title_archived(&self) -> &Style

Style of the artifact.list.title.archived token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::banner_author

source

pub fn banner_author(&self) -> &Style

Style of the banner.author token, coloured by the Palette::Accent slot.

Parameter Type Description
returns &Style

Theme::banner_gradient_end

source

pub fn banner_gradient_end(&self) -> &Style

Style of the banner.gradient.end token, which no palette slot recolours.

Parameter Type Description
returns &Style

Theme::banner_gradient_start

source

pub fn banner_gradient_start(&self) -> &Style

Style of the banner.gradient.start token, which no palette slot recolours.

Parameter Type Description
returns &Style

Theme::banner_shadow

source

pub fn banner_shadow(&self) -> &Style

Style of the banner.shadow token, which no palette slot recolours.

Parameter Type Description
returns &Style

Theme::banner_update_command

source

pub fn banner_update_command(&self) -> &Style

Style of the banner.update.command token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::banner_update_hint

source

pub fn banner_update_hint(&self) -> &Style

Style of the banner.update.hint token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::banner_update_message

source

pub fn banner_update_message(&self) -> &Style

Style of the banner.update.message token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::banner_update_version

source

pub fn banner_update_version(&self) -> &Style

Style of the banner.update.version token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::banner_version

source

pub fn banner_version(&self) -> &Style

Style of the banner.version token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::banner_version_date

source

pub fn banner_version_date(&self) -> &Style

Style of the banner.version.date token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::banner_version_revision

source

pub fn banner_version_revision(&self) -> &Style

Style of the banner.version.revision token, coloured by the Palette::Success slot.

Parameter Type Description
returns &Style

Theme::border

source

pub fn border(&self) -> &Style

Style of the border token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::config_heading

source

pub fn config_heading(&self) -> &Style

Style of the config.heading token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::config_label

source

pub fn config_label(&self) -> &Style

Style of the config.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::config_no_overrides

source

pub fn config_no_overrides(&self) -> &Style

Style of the config.no_overrides token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::config_value

source

pub fn config_value(&self) -> &Style

Style of the config.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::confirm_description

source

pub fn confirm_description(&self) -> &Style

Style of the confirm.description token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::confirm_indicator

source

pub fn confirm_indicator(&self) -> &Style

Style of the confirm.indicator token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::confirm_selected

source

pub fn confirm_selected(&self) -> &Style

Style of the confirm.selected token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::confirm_unselected

source

pub fn confirm_unselected(&self) -> &Style

Style of the confirm.unselected token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::emphasis

source

pub fn emphasis(&self) -> &Style

Style of the emphasis token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::error

source

pub fn error(&self) -> &Style

Style of the error token, coloured by the Palette::Error slot.

Parameter Type Description
returns &Style

Theme::id_prefix

source

pub fn id_prefix(&self) -> &Style

Style of the id.prefix token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::id_rest

source

pub fn id_rest(&self) -> &Style

Style of the id.rest token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::indicator_blocked

source

pub fn indicator_blocked(&self) -> &Style

Style of the indicator.blocked token, coloured by the Palette::Error slot.

Parameter Type Description
returns &Style

Theme::indicator_blocked_by_id

source

pub fn indicator_blocked_by_id(&self) -> &Style

Style of the indicator.blocked_by.id token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::indicator_blocked_by_label

source

pub fn indicator_blocked_by_label(&self) -> &Style

Style of the indicator.blocked_by.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::indicator_blocking

source

pub fn indicator_blocking(&self) -> &Style

Style of the indicator.blocking token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::init_command_prefix

source

pub fn init_command_prefix(&self) -> &Style

Style of the init.command.prefix token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::init_label

source

pub fn init_label(&self) -> &Style

Style of the init.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::init_section

source

pub fn init_section(&self) -> &Style

Style of the init.section token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::init_value

source

pub fn init_value(&self) -> &Style

Style of the init.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::iteration_detail_count_blocked

source

pub fn iteration_detail_count_blocked(&self) -> &Style

Style of the iteration.detail.count.blocked token, coloured by the Palette::Error slot.

Parameter Type Description
returns &Style

Theme::iteration_detail_count_done

source

pub fn iteration_detail_count_done(&self) -> &Style

Style of the iteration.detail.count.done token, coloured by the Palette::Success slot.

Parameter Type Description
returns &Style

Theme::iteration_detail_count_in_progress

source

pub fn iteration_detail_count_in_progress(&self) -> &Style

Style of the iteration.detail.count.in_progress token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::iteration_detail_count_open

source

pub fn iteration_detail_count_open(&self) -> &Style

Style of the iteration.detail.count.open token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::iteration_detail_label

source

pub fn iteration_detail_label(&self) -> &Style

Style of the iteration.detail.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::iteration_detail_value

source

pub fn iteration_detail_value(&self) -> &Style

Style of the iteration.detail.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::iteration_graph_branch

source

pub fn iteration_graph_branch(&self) -> &Style

Style of the iteration.graph.branch token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::iteration_graph_phase_icon

source

pub fn iteration_graph_phase_icon(&self) -> &Style

Style of the iteration.graph.phase.icon token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::iteration_graph_phase_label

source

pub fn iteration_graph_phase_label(&self) -> &Style

Style of the iteration.graph.phase.label token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::iteration_graph_phase_name

source

pub fn iteration_graph_phase_name(&self) -> &Style

Style of the iteration.graph.phase.name token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::iteration_graph_separator

source

pub fn iteration_graph_separator(&self) -> &Style

Style of the iteration.graph.separator token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::iteration_graph_title

source

pub fn iteration_graph_title(&self) -> &Style

Style of the iteration.graph.title token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::iteration_list_summary

source

pub fn iteration_list_summary(&self) -> &Style

Style of the iteration.list.summary token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::iteration_list_title

source

pub fn iteration_list_title(&self) -> &Style

Style of the iteration.list.title token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::iteration_status_label

source

pub fn iteration_status_label(&self) -> &Style

Style of the iteration.status.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::iteration_status_progress

source

pub fn iteration_status_progress(&self) -> &Style

Style of the iteration.status.progress token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::iteration_status_value

source

pub fn iteration_status_value(&self) -> &Style

Style of the iteration.status.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::list_heading

source

pub fn list_heading(&self) -> &Style

Style of the list.heading token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::list_summary

source

pub fn list_summary(&self) -> &Style

Style of the list.summary token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::log_debug

source

pub fn log_debug(&self) -> &Style

Style of the log.debug token, coloured by the Palette::PrimaryLight slot.

Parameter Type Description
returns &Style

Theme::log_error

source

pub fn log_error(&self) -> &Style

Style of the log.error token, coloured by the Palette::Error slot.

Parameter Type Description
returns &Style

Theme::log_info

source

pub fn log_info(&self) -> &Style

Style of the log.info token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::log_timestamp

source

pub fn log_timestamp(&self) -> &Style

Style of the log.timestamp token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::log_trace

source

pub fn log_trace(&self) -> &Style

Style of the log.trace token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::log_warn

source

pub fn log_warn(&self) -> &Style

Style of the log.warn token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::markdown_alert_caution_border

source

pub fn markdown_alert_caution_border(&self) -> &Style

Style of the markdown.alert.caution.border token, coloured by the Palette::Error slot.

Parameter Type Description
returns &Style

Theme::markdown_alert_important_border

source

pub fn markdown_alert_important_border(&self) -> &Style

Style of the markdown.alert.important.border token, which no palette slot recolours.

Parameter Type Description
returns &Style

Theme::markdown_alert_note_border

source

pub fn markdown_alert_note_border(&self) -> &Style

Style of the markdown.alert.note.border token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::markdown_alert_tip_border

source

pub fn markdown_alert_tip_border(&self) -> &Style

Style of the markdown.alert.tip.border token, coloured by the Palette::Success slot.

Parameter Type Description
returns &Style

Theme::markdown_alert_warning_border

source

pub fn markdown_alert_warning_border(&self) -> &Style

Style of the markdown.alert.warning.border token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::markdown_blockquote

source

pub fn markdown_blockquote(&self) -> &Style

Style of the markdown.blockquote token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::markdown_blockquote_border

source

pub fn markdown_blockquote_border(&self) -> &Style

Style of the markdown.blockquote.border token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::markdown_code_block

source

pub fn markdown_code_block(&self) -> &Style

Style of the markdown.code.block token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::markdown_code_border

source

pub fn markdown_code_border(&self) -> &Style

Style of the markdown.code.border token, coloured by the Palette::PrimaryDark slot.

Parameter Type Description
returns &Style

Theme::markdown_code_inline

source

pub fn markdown_code_inline(&self) -> &Style

Style of the markdown.code.inline token, coloured by the Palette::Accent slot.

Parameter Type Description
returns &Style

Theme::markdown_emphasis

source

pub fn markdown_emphasis(&self) -> &Style

Style of the markdown.emphasis token, which no palette slot recolours.

Parameter Type Description
returns &Style

Theme::markdown_heading

source

pub fn markdown_heading(&self) -> &Style

Style of the markdown.heading token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::markdown_rule

source

pub fn markdown_rule(&self) -> &Style

Style of the markdown.rule token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::markdown_strong

source

pub fn markdown_strong(&self) -> &Style

Style of the markdown.strong token, which no palette slot recolours.

Parameter Type Description
returns &Style

Theme::meta_not_set

source

pub fn meta_not_set(&self) -> &Style

Style of the meta.not_set token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::meta_value

source

pub fn meta_value(&self) -> &Style

Style of the meta.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::message_created_label

source

pub fn message_created_label(&self) -> &Style

Style of the message.created.label token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::message_success_icon

source

pub fn message_success_icon(&self) -> &Style

Style of the message.success.icon token, coloured by the Palette::Success slot.

Parameter Type Description
returns &Style

Theme::message_updated_label

source

pub fn message_updated_label(&self) -> &Style

Style of the message.updated.label token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::migrate_count

source

pub fn migrate_count(&self) -> &Style

Style of the migrate.count token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::muted

source

pub fn muted(&self) -> &Style

Style of the muted token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::note_detail_label

source

pub fn note_detail_label(&self) -> &Style

Style of the note.detail.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::note_detail_separator

source

pub fn note_detail_separator(&self) -> &Style

Style of the note.detail.separator token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::note_detail_value

source

pub fn note_detail_value(&self) -> &Style

Style of the note.detail.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::note_list_body

source

pub fn note_list_body(&self) -> &Style

Style of the note.list.body token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::note_list_id

source

pub fn note_list_id(&self) -> &Style

Style of the note.list.id token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::project_list_archived_badge

source

pub fn project_list_archived_badge(&self) -> &Style

Style of the project.list.archived.badge token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::project_list_root

source

pub fn project_list_root(&self) -> &Style

Style of the project.list.root token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::project_list_root_archived

source

pub fn project_list_root_archived(&self) -> &Style

Style of the project.list.root.archived token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::project_show_value

source

pub fn project_show_value(&self) -> &Style

Style of the project.show.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::search_expand_separator

source

pub fn search_expand_separator(&self) -> &Style

Style of the search.expand.separator token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::search_no_results_hint

source

pub fn search_no_results_hint(&self) -> &Style

Style of the search.no_results.hint token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::search_query

source

pub fn search_query(&self) -> &Style

Style of the search.query token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::search_summary

source

pub fn search_summary(&self) -> &Style

Style of the search.summary token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::search_type_label

source

pub fn search_type_label(&self) -> &Style

Style of the search.type.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::serve_url

source

pub fn serve_url(&self) -> &Style

Style of the serve.url token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::status_cancelled

source

pub fn status_cancelled(&self) -> &Style

Style of the status.cancelled token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::status_done

source

pub fn status_done(&self) -> &Style

Style of the status.done token, coloured by the Palette::Success slot.

Parameter Type Description
returns &Style

Theme::status_in_progress

source

pub fn status_in_progress(&self) -> &Style

Style of the status.in_progress token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::status_open

source

pub fn status_open(&self) -> &Style

Style of the status.open token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::success

source

pub fn success(&self) -> &Style

Style of the success token, coloured by the Palette::Success slot.

Parameter Type Description
returns &Style

Theme::tag

source

pub fn tag(&self) -> &Style

Style of the tag token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::tag_list_count

source

pub fn tag_list_count(&self) -> &Style

Style of the tag.list.count token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::tag_list_heading

source

pub fn tag_list_heading(&self) -> &Style

Style of the tag.list.heading token, coloured by the Palette::Primary slot.

Parameter Type Description
returns &Style

Theme::task_detail_label

source

pub fn task_detail_label(&self) -> &Style

Style of the task.detail.label token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::task_detail_separator

source

pub fn task_detail_separator(&self) -> &Style

Style of the task.detail.separator token, coloured by the Palette::Border slot.

Parameter Type Description
returns &Style

Theme::task_detail_title

source

pub fn task_detail_title(&self) -> &Style

Style of the task.detail.title token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::task_detail_value

source

pub fn task_detail_value(&self) -> &Style

Style of the task.detail.value token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::task_list_icon_cancelled

source

pub fn task_list_icon_cancelled(&self) -> &Style

Style of the task.list.icon.cancelled token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::task_list_icon_done

source

pub fn task_list_icon_done(&self) -> &Style

Style of the task.list.icon.done token, coloured by the Palette::Success slot.

Parameter Type Description
returns &Style

Theme::task_list_icon_in_progress

source

pub fn task_list_icon_in_progress(&self) -> &Style

Style of the task.list.icon.in_progress token, coloured by the Palette::Warning slot.

Parameter Type Description
returns &Style

Theme::task_list_icon_open

source

pub fn task_list_icon_open(&self) -> &Style

Style of the task.list.icon.open token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::task_list_priority

source

pub fn task_list_priority(&self) -> &Style

Style of the task.list.priority token, coloured by the Palette::TextMuted slot.

Parameter Type Description
returns &Style

Theme::task_list_title

source

pub fn task_list_title(&self) -> &Style

Style of the task.list.title token, coloured by the Palette::Text slot.

Parameter Type Description
returns &Style

Theme::task_list_title_cancelled

source

pub fn task_list_title_cancelled(&self) -> &Style

Style of the task.list.title.cancelled token, coloured by the Palette::TextDim slot.

Parameter Type Description
returns &Style

Theme::from_config

source

pub fn from_config(settings: &crate::config::Settings) -> Self

Build a theme by applying palette cascades and token overrides from config.

Resolution order:

  1. Built-in defaults
  2. Palette colors — cascade to all tokens referencing the slot (fg only, modifiers preserved)
  3. Token overrides — most specific, full ColorValue wins
Parameter Type Description
settings &crate::config::Settings the loaded configuration, whose [colors] table supplies the palette and token overrides
returns Self The resolved theme.

Theme::apply_overrides

source

fn apply_overrides(&mut self, colors: &crate::config::colors::Settings)

Merge user color overrides into this theme, matching dot-separated keys to fields.

An unknown key logs a warning and is skipped.

Parameter Type Description
colors &crate::config::colors::Settings the [colors] settings whose token overrides are applied

Theme::apply_palette

source

fn apply_palette(&mut self, colors: &crate::config::colors::Settings)

Cascade palette color overrides to all tokens referencing each slot.

Palette values are color-only: they replace the fg color but preserve per-token modifiers (bold, italic, etc.) from defaults.

Parameter Type Description
colors &crate::config::colors::Settings the [colors] settings whose palette table is cascaded

Theme::style_mut

source

fn style_mut(&mut self, key: &str) -> Option<&mut Style>

Return a mutable reference to the style field for the given token key.

Parameter Type Description
key &str a token key from [ALL_TOKENS], or its md. alias (md.code for markdown.code.inline)
returns Option<&mut Style> A mutable reference to the style field for the key, or None when the key names no token.

fn global

source

pub fn global() -> &'static Theme

Return the global theme, falling back to defaults if not yet initialized.

Parameter Type Description
returns &'static Theme The global theme, falling back to defaults if not yet initialized; a call before set_global fixes it to Theme::default.

fn set_global

source

pub fn set_global(theme: Theme)

Store the resolved theme for global access.

Must be called before CLI parsing so that long_about() and error handlers see user-configured colors. Subsequent calls are no-ops.

Parameter Type Description
theme Theme the resolved theme, usually from [Theme::from_config]

fn palette_for_token

source

fn palette_for_token(key: &str) -> Option<Palette>

Returns the Palette slot that a given token key draws its default color from.

Parameter Type Description
key &str a token key from [ALL_TOKENS]
returns Option<Palette> The Palette slot that the token draws its default color from, or None for tokens that palette overrides leave alone, such as the banner gradient.