Documentation

Core

new

Raw SVGs, metadata, and build utilities. The base package behind every Devicons wrapper.

@dev.icons/core contains every SVG source file, the icon metadata catalog, and the build tools that framework packages use at compile time.

You probably don’t need to install it directly. The framework packages already depend on it. Use this when you want raw SVGs, are building custom tooling, or writing a plugin.

Install

npm install @dev.icons/core

Exports

ExportTypeDescription
[iconSlug]stringRaw SVG markup for that icon
metadataIconMeta[]Catalog with names, slugs, tags, and variants
slugsstring[]All available icon slugs

Usage

import { react, vue, svelte } from "@dev.icons/core";

// Each export is a plain SVG string
console.log(react);
// '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">...</svg>'
import { metadata } from "@dev.icons/core";

console.log(metadata[0]);
// { name: "React", slug: "react", tags: ["frontend", "ui"], ... }

When to use core

  • You want SVGs without a framework dependency
  • You’re building a custom icon component for a framework we don’t ship yet
  • You need programmatic access to the icon catalog for search, filtering, or code generation
  • You’re writing a bundler plugin, Figma plugin, or CLI tool