style
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
static THEME: OnceLock<Theme> = OnceLock::new();Process-wide resolved theme, set once during startup.
const ALL_TOKENS
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
pub enum PaletteSemantic 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
const ALL: [Palette; 11] = _;All palette variants in definition order.
Palette::default_color
pub fn default_color(self) -> ColorThe 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
pub fn key(self) -> &'static strThe 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
pub struct ThemeSemantic 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
pub fn artifact_detail_label(&self) -> &StyleStyle of the artifact.detail.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::artifact_detail_separator
pub fn artifact_detail_separator(&self) -> &StyleStyle of the artifact.detail.separator token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::artifact_detail_value
pub fn artifact_detail_value(&self) -> &StyleStyle of the artifact.detail.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::artifact_list_archived_badge
pub fn artifact_list_archived_badge(&self) -> &StyleStyle of the artifact.list.archived.badge token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::artifact_list_tag_archived
pub fn artifact_list_tag_archived(&self) -> &StyleStyle of the artifact.list.tag.archived token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::artifact_list_title
pub fn artifact_list_title(&self) -> &StyleStyle of the artifact.list.title token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::artifact_list_title_archived
pub fn artifact_list_title_archived(&self) -> &StyleStyle of the artifact.list.title.archived token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::border
pub fn border(&self) -> &StyleStyle of the border token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::config_heading
pub fn config_heading(&self) -> &StyleStyle of the config.heading token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::config_label
pub fn config_label(&self) -> &StyleStyle of the config.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::config_no_overrides
pub fn config_no_overrides(&self) -> &StyleStyle of the config.no_overrides token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::config_value
pub fn config_value(&self) -> &StyleStyle of the config.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::confirm_description
pub fn confirm_description(&self) -> &StyleStyle of the confirm.description token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::confirm_indicator
pub fn confirm_indicator(&self) -> &StyleStyle of the confirm.indicator token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::confirm_selected
pub fn confirm_selected(&self) -> &StyleStyle of the confirm.selected token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::confirm_unselected
pub fn confirm_unselected(&self) -> &StyleStyle of the confirm.unselected token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::emphasis
pub fn emphasis(&self) -> &StyleStyle of the emphasis token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::error
pub fn error(&self) -> &StyleStyle of the error token, coloured by the Palette::Error slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::id_prefix
pub fn id_prefix(&self) -> &StyleStyle of the id.prefix token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::id_rest
pub fn id_rest(&self) -> &StyleStyle of the id.rest token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::indicator_blocked
pub fn indicator_blocked(&self) -> &StyleStyle of the indicator.blocked token, coloured by the Palette::Error slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::indicator_blocked_by_id
pub fn indicator_blocked_by_id(&self) -> &StyleStyle of the indicator.blocked_by.id token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::indicator_blocked_by_label
pub fn indicator_blocked_by_label(&self) -> &StyleStyle of the indicator.blocked_by.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::indicator_blocking
pub fn indicator_blocking(&self) -> &StyleStyle of the indicator.blocking token, coloured by the Palette::Warning slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::init_command_prefix
pub fn init_command_prefix(&self) -> &StyleStyle of the init.command.prefix token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::init_label
pub fn init_label(&self) -> &StyleStyle of the init.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::init_section
pub fn init_section(&self) -> &StyleStyle of the init.section token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::init_value
pub fn init_value(&self) -> &StyleStyle of the init.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_detail_count_blocked
pub fn iteration_detail_count_blocked(&self) -> &StyleStyle of the iteration.detail.count.blocked token, coloured by the Palette::Error slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_detail_count_done
pub fn iteration_detail_count_done(&self) -> &StyleStyle of the iteration.detail.count.done token, coloured by the Palette::Success slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_detail_count_in_progress
pub fn iteration_detail_count_in_progress(&self) -> &StyleStyle of the iteration.detail.count.in_progress token, coloured by the Palette::Warning slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_detail_count_open
pub fn iteration_detail_count_open(&self) -> &StyleStyle of the iteration.detail.count.open token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_detail_label
pub fn iteration_detail_label(&self) -> &StyleStyle of the iteration.detail.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_detail_value
pub fn iteration_detail_value(&self) -> &StyleStyle of the iteration.detail.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_graph_branch
pub fn iteration_graph_branch(&self) -> &StyleStyle of the iteration.graph.branch token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_graph_phase_icon
pub fn iteration_graph_phase_icon(&self) -> &StyleStyle of the iteration.graph.phase.icon token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_graph_phase_label
pub fn iteration_graph_phase_label(&self) -> &StyleStyle of the iteration.graph.phase.label token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_graph_phase_name
pub fn iteration_graph_phase_name(&self) -> &StyleStyle of the iteration.graph.phase.name token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_graph_separator
pub fn iteration_graph_separator(&self) -> &StyleStyle of the iteration.graph.separator token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_graph_title
pub fn iteration_graph_title(&self) -> &StyleStyle of the iteration.graph.title token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_list_summary
pub fn iteration_list_summary(&self) -> &StyleStyle of the iteration.list.summary token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_list_title
pub fn iteration_list_title(&self) -> &StyleStyle of the iteration.list.title token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_status_label
pub fn iteration_status_label(&self) -> &StyleStyle of the iteration.status.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_status_progress
pub fn iteration_status_progress(&self) -> &StyleStyle of the iteration.status.progress token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::iteration_status_value
pub fn iteration_status_value(&self) -> &StyleStyle of the iteration.status.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::list_heading
pub fn list_heading(&self) -> &StyleStyle of the list.heading token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::list_summary
pub fn list_summary(&self) -> &StyleStyle of the list.summary token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::log_debug
pub fn log_debug(&self) -> &StyleStyle of the log.debug token, coloured by the Palette::PrimaryLight slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::log_error
pub fn log_error(&self) -> &StyleStyle of the log.error token, coloured by the Palette::Error slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::log_info
pub fn log_info(&self) -> &StyleStyle of the log.info token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::log_timestamp
pub fn log_timestamp(&self) -> &StyleStyle of the log.timestamp token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::log_trace
pub fn log_trace(&self) -> &StyleStyle of the log.trace token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::log_warn
pub fn log_warn(&self) -> &StyleStyle of the log.warn token, coloured by the Palette::Warning slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_alert_caution_border
pub fn markdown_alert_caution_border(&self) -> &StyleStyle of the markdown.alert.caution.border token, coloured by the Palette::Error slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_alert_important_border
pub fn markdown_alert_important_border(&self) -> &StyleStyle of the markdown.alert.important.border token, which no palette slot recolours.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_alert_note_border
pub fn markdown_alert_note_border(&self) -> &StyleStyle of the markdown.alert.note.border token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_alert_tip_border
pub fn markdown_alert_tip_border(&self) -> &StyleStyle of the markdown.alert.tip.border token, coloured by the Palette::Success slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_alert_warning_border
pub fn markdown_alert_warning_border(&self) -> &StyleStyle of the markdown.alert.warning.border token, coloured by the Palette::Warning slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_blockquote
pub fn markdown_blockquote(&self) -> &StyleStyle of the markdown.blockquote token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_blockquote_border
pub fn markdown_blockquote_border(&self) -> &StyleStyle of the markdown.blockquote.border token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_code_block
pub fn markdown_code_block(&self) -> &StyleStyle of the markdown.code.block token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_code_border
pub fn markdown_code_border(&self) -> &StyleStyle of the markdown.code.border token, coloured by the Palette::PrimaryDark slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_code_inline
pub fn markdown_code_inline(&self) -> &StyleStyle of the markdown.code.inline token, coloured by the Palette::Accent slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_emphasis
pub fn markdown_emphasis(&self) -> &StyleStyle of the markdown.emphasis token, which no palette slot recolours.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_heading
pub fn markdown_heading(&self) -> &StyleStyle of the markdown.heading token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_link
pub fn markdown_link(&self) -> &StyleStyle of the markdown.link token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_rule
pub fn markdown_rule(&self) -> &StyleStyle of the markdown.rule token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::markdown_strong
pub fn markdown_strong(&self) -> &StyleStyle of the markdown.strong token, which no palette slot recolours.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::meta_not_set
pub fn meta_not_set(&self) -> &StyleStyle of the meta.not_set token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::meta_value
pub fn meta_value(&self) -> &StyleStyle of the meta.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::message_created_label
pub fn message_created_label(&self) -> &StyleStyle of the message.created.label token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::message_success_icon
pub fn message_success_icon(&self) -> &StyleStyle of the message.success.icon token, coloured by the Palette::Success slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::message_updated_label
pub fn message_updated_label(&self) -> &StyleStyle of the message.updated.label token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::migrate_count
pub fn migrate_count(&self) -> &StyleStyle of the migrate.count token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::muted
pub fn muted(&self) -> &StyleStyle of the muted token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::note_detail_label
pub fn note_detail_label(&self) -> &StyleStyle of the note.detail.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::note_detail_separator
pub fn note_detail_separator(&self) -> &StyleStyle of the note.detail.separator token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::note_detail_value
pub fn note_detail_value(&self) -> &StyleStyle of the note.detail.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::note_list_body
pub fn note_list_body(&self) -> &StyleStyle of the note.list.body token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::note_list_id
pub fn note_list_id(&self) -> &StyleStyle of the note.list.id token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::project_list_archived_badge
pub fn project_list_archived_badge(&self) -> &StyleStyle of the project.list.archived.badge token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::project_list_root
pub fn project_list_root(&self) -> &StyleStyle of the project.list.root token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::project_list_root_archived
pub fn project_list_root_archived(&self) -> &StyleStyle of the project.list.root.archived token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::project_show_value
pub fn project_show_value(&self) -> &StyleStyle of the project.show.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::search_expand_separator
pub fn search_expand_separator(&self) -> &StyleStyle of the search.expand.separator token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::search_no_results_hint
pub fn search_no_results_hint(&self) -> &StyleStyle of the search.no_results.hint token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::search_query
pub fn search_query(&self) -> &StyleStyle of the search.query token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::search_summary
pub fn search_summary(&self) -> &StyleStyle of the search.summary token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::search_type_label
pub fn search_type_label(&self) -> &StyleStyle of the search.type.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::serve_url
pub fn serve_url(&self) -> &StyleStyle of the serve.url token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::status_cancelled
pub fn status_cancelled(&self) -> &StyleStyle of the status.cancelled token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::status_done
pub fn status_done(&self) -> &StyleStyle of the status.done token, coloured by the Palette::Success slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::status_in_progress
pub fn status_in_progress(&self) -> &StyleStyle of the status.in_progress token, coloured by the Palette::Warning slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::status_open
pub fn status_open(&self) -> &StyleStyle of the status.open token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::success
pub fn success(&self) -> &StyleStyle of the success token, coloured by the Palette::Success slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::tag
pub fn tag(&self) -> &StyleStyle of the tag token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::tag_list_count
pub fn tag_list_count(&self) -> &StyleStyle of the tag.list.count token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::tag_list_heading
pub fn tag_list_heading(&self) -> &StyleStyle of the tag.list.heading token, coloured by the Palette::Primary slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_detail_label
pub fn task_detail_label(&self) -> &StyleStyle of the task.detail.label token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_detail_separator
pub fn task_detail_separator(&self) -> &StyleStyle of the task.detail.separator token, coloured by the Palette::Border slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_detail_title
pub fn task_detail_title(&self) -> &StyleStyle of the task.detail.title token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_detail_value
pub fn task_detail_value(&self) -> &StyleStyle of the task.detail.value token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_list_icon_cancelled
pub fn task_list_icon_cancelled(&self) -> &StyleStyle of the task.list.icon.cancelled token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_list_icon_done
pub fn task_list_icon_done(&self) -> &StyleStyle of the task.list.icon.done token, coloured by the Palette::Success slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_list_icon_in_progress
pub fn task_list_icon_in_progress(&self) -> &StyleStyle of the task.list.icon.in_progress token, coloured by the Palette::Warning slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_list_icon_open
pub fn task_list_icon_open(&self) -> &StyleStyle of the task.list.icon.open token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_list_priority
pub fn task_list_priority(&self) -> &StyleStyle of the task.list.priority token, coloured by the Palette::TextMuted slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_list_title
pub fn task_list_title(&self) -> &StyleStyle of the task.list.title token, coloured by the Palette::Text slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::task_list_title_cancelled
pub fn task_list_title_cancelled(&self) -> &StyleStyle of the task.list.title.cancelled token, coloured by the Palette::TextDim slot.
| Parameter | Type | Description |
|---|---|---|
| returns | &Style |
Theme::from_config
pub fn from_config(settings: &crate::config::Settings) -> SelfBuild a theme by applying palette cascades and token overrides from config.
Resolution order:
- Built-in defaults
- Palette colors — cascade to all tokens referencing the slot (fg only, modifiers preserved)
- Token overrides — most specific, full
ColorValuewins
| 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
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
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
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
pub fn global() -> &'static ThemeReturn 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
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
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. |