Skip to content
Back to skills

Assets Icons Fonts

ASecurity

Optimization and usage of SVGs, fonts, and static assets.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
designgoreactnextjsperformance

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill assets-icons-fonts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Assets Icons Fonts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Assets Icons Fonts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-assets-icons-fonts/badge)](https://www.skillsdirectory.com/skills/david-li0406-assets-icons-fonts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: assets-icons-fonts
description: Optimization and usage of SVGs, fonts, and static assets.
---

# Icons, Fonts & Assets

## When to use this skill
- Adding icons (SVG, Lucide, FontAwesome).
- Loading custom fonts (Google Fonts, local WOFF2).
- Optimizing images.

## 1. Icons
- **SVG**: Prefer inline SVGs or Sprites over font icons for accessibility and performance.
- **React**: Use libraries like `lucide-react` or `heroicons` that treeshake well.
- **Attributes**: Always set `aria-hidden="true"` for decorative icons, or providing decent `aria-label`.

## 2. Fonts
- **Format**: Use `WOFF2` for local fonts.
- **Loading**: Use `font-display: swap;` in CSS to show fallback text immediately.
- **Next.js**: Use `next/font` to optimize Google Fonts and eliminate layout shift (CLS).

## 3. Images
- **Formats**: Prefer WebP or AVIF over PNG/JPEG.
- **Sizing**: Always specify `width` and `height` attributes (or aspect ratio) to prevent layout shifts.
- **Lazy Loading**: Use `loading="lazy"` for below-the-fold images.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…