Skip to main content

normalize_theme_name

Function normalize_theme_name 

Source
pub fn normalize_theme_name(name: &str) -> String
Expand description

Normalize a theme name for consistent lookup and storage.

Converts to lowercase and replaces underscores and spaces with hyphens. This ensures that theme names can be matched regardless of how they appear in filenames vs. JSON content (e.g., “Catppuccin Mocha” matches “catppuccin-mocha”).