liicos50 downloadsReplace file explorer icons with Material Design icons matched by file extension and filename.
English | 简体中文
Replace the default file explorer icons in Obsidian with Material Icon Theme icons, matched by file extension and filename.
Icons are applied by extension and filename — canvas notes, Markdown templates, folders, and more each get a distinct icon (see preview above).
Toggle file and folder icons independently, enable custom rules, and switch the settings UI language (10 languages supported).
Add a rule for any extension (without the leading dot) and pick an icon from the Material Icon Theme library. Custom rules override default matching when enabled.
Search and browse 500+ icons when configuring a custom rule.
d.ts before ts).gitignore, Makefile, docker-compose.ymlRelease tags match
manifest.jsonversion exactly (e.g.1.0.0, notv1.0.0) for Obsidian community installs.
material-file-icons-x.x.x.zip — extract into .obsidian/plugins/main.js, manifest.json, and styles.css into .obsidian/plugins/material-file-icons/ (required for Obsidian community install)Upgrading from an older build? The plugin id is now
material-file-icons. Remove.obsidian/plugins/obsidian-material-icon/if present, then install intomaterial-file-icons/.
git clone https://github.com/liicos/obsidian-material-icon.git
cd obsidian-material-icon
npm install
npm run build
cp main.js manifest.json styles.css /path/to/vault/.obsidian/plugins/material-file-icons/
npm install
npm run dev # watch mode (does not regenerate icon data)
npm run build # full production build
npm run build-icons # regenerate src/icon-data.ts only
| Path | Purpose |
|---|---|
src/main.ts |
Plugin logic |
scripts/build-icons.mjs |
Extract SVGs from material-icon-theme → src/icon-data.ts |
styles.css |
Icon and settings styles |
Do not edit src/icon-data.ts by hand. To add custom extension mappings, edit the custom block at the end of scripts/build-icons.mjs, then run npm run build-icons.
Built artifacts main.js and src/icon-data.ts are gitignored; run npm run build after cloning.
File icons are derived from PKief/vscode-material-icon-theme (MIT).