We value your feedback!

Can you spare a moment to take our survey?
Your feedback helps us improve Lucide and make it better for everyone.

Skip to content
Get Vue certificates from certificates.dev

Sizing

By default, the size of all icons is 24px by 24px. The size is adjustable using the size prop and CSS.

Adjusting the icon size using the size prop

<script setup>
import { Landmark } from "@lucide/vue"
</script>

<template>
  <Landmark :size="64" />
</template>

Adjusting the icon size via CSS

The CSS properties width and height can be used to adjust the icon size.

.my-beer-icon {
  /* Change this! */
  width: 64px;
  height: 64px;
}

Dynamically change the icon size based on the font size

It is possible to resize icons based on font size. This can be achieved using the em unit. See this MDN article for more information on the em unit.

.my-icon {
  /* Icon size will relative to font-size of .text-wrapper */
  width: 1em;
  height: 1em;
}

.text-wrapper {
  /* Change this! */
  font-size: 96px;

  /* layout stuff */
  display: flex;
  gap: 0.25em;
  align-items: center;
}

Resizing with Tailwind

size-* utilities can be used to adjust the size of the icon. See the Tailwind documentation for more information on the size-* utilities.

<script setup>
import { PartyPopper } from "@lucide/vue";
</script>

<template>
  <div>
    <PartyPopper class="size-24" />
  </div>
</template>