Skip to main content

Vector Graphics

UI Design

What are Vector Graphics

Vector graphics are images built from geometric shapes: points, lines, curves and polygons defined by math. Because the shapes are calculated, a vector image stays sharp at any size, from a tiny icon to a billboard.

Vector vs. Raster Graphics

  • Vector: Made of shapes. Scales without losing quality. Best for icons, logos and illustrations
  • Raster: Made of pixels. Blurs when enlarged. Best for photos and detailed textures

When to use Vector Graphics

Use vectors for anything built from shapes: icons, logos, simple illustrations, charts and UI elements. Most UI design tools, such as Figma, draw in vectors by default. Export to SVG for the web.

Benefits of Vector Graphics

One file works on every screen density, files are often small, and shapes are easy to edit and recolor. For UI designers, vector assets keep icons crisp on high-resolution screens and simplify handoff.

Frequently asked questions

What is the difference between vector and raster graphics?

Vector graphics are built from shapes defined by math, so they scale to any size without losing quality. Raster graphics are grids of pixels, so they blur or pixelate when enlarged, but they handle photos and fine detail well.

What file formats are vector?

SVG is the main vector format for the web. PDF, AI (Adobe Illustrator) and EPS can also hold vector graphics, mostly for print and design tools.

When should you use raster images instead?

For photos, detailed textures and complex artwork with many colors and gradients. Raster formats such as JPEG, PNG and WebP are better suited to that kind of image.