Foundations

Icons

Use Lucide icons, add your own SVG files and keep the bundle small.

config/lucide-set.config.ts

Two icon sets are registered in plugins/vuetify.ts:

Set
Name format
Source
lucide (default)search, arrow-right, ld-searchThe Lucide library
customcustom:brand-googleSVG files in assets/icons/

Any Vuetify prop that takes an icon accepts both:

vue
<v-icon icon="calendar-range" />
<BaseButton prepend-icon="download">Export</BaseButton>
<BaseIconButton icon="custom:brand-github" aria-label="GitHub" />

Lucide icons

Use the kebab-case name from lucide.dev. Only the icons exported from config/lucide-icons.ts are bundled, so after you use a new name run:

Terminal
$npm run icons:sync

The script scans the source (including the Markdown of these docs) for icon names and rewrites the file. If you forget, development logs a [lucide-icons] warning with the missing name and the icon renders empty.

Lucide icons render with a stroke width of 1.5 to match the template's light style.

Your own SVG icons

Drop a .svg file in assets/icons/. There is no registration step: an eager import.meta.glob in config/custom-set.config.ts picks it up. The name is the path without the extension, with folders joined by -:

File
Icon name
assets/icons/logo.svgcustom:logo
assets/icons/brand/google.svgcustom:brand-google
assets/icons/filled/star.svgcustom:filled-star

Hardcoded fill and stroke colours are rewritten to currentColor, so the icon takes the text colour and follows the theme. To keep a multicolour logo as it is, add data-keep-colors="true" to the root <svg>:

assets/icons/brand/google.svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" data-keep-colors="true">
  …
</svg>

useCustomIcons() returns the list of available custom names, which is handy for an icon picker.

Aliases

Vuetify uses internal aliases ($close, $expand, $checkboxOn…). lucideAliases in config/lucide-set.config.ts maps each one to a Lucide or custom icon, and adds the keyboard aliases used by v-hotkey (ctrl, command, shift, enter, arrows). Change an alias there to change it everywhere, for example the icon of every checkbox.

Accessibility

Icons are decorative by default. When an icon is the only content of a control, the control needs a label: BaseIconButton requires aria-label.

© 2026 melsami UI.
Developer documentation for melsami UI.