Installation
Pick the package that matches your stack and install it.
Install the package that matches your project.
Package managers
# React
npm install @dev.icons/react
# Vue
npm install @dev.icons/vue
# Svelte
npm install @dev.icons/svelte
# Icon catalog, sprite, and font files
npm install @dev.icons/core
# Icon font (CSS + webfont files)
npm install devicons
pnpm, yarn, and bun work the same way.
There is no Astro-specific package. In Astro, use the React, Vue, or Svelte package. Components render to static SVG without a client:* directive.
No build step
Link any SVG straight from devicons.io:
<img src="https://devicons.io/devicons/icons/react.svg" alt="React logo" width="48" height="48" />
Or load the icon font from a CDN. The CDN guide has pinned URLs for the font, sprite, and catalog.
Requirements
- Node.js 18.17+ (20.x LTS recommended)
- React 16.8+ / Vue 3.3+ / Svelte 5+
- Any ESM bundler: Vite, Webpack, Rollup, esbuild, Turbopack
Verify
import { Css } from "@dev.icons/react";
export default function Logo() {
return <Css size={32} alt="CSS" />;
}
Component names come from the icon’s file name. The name is split on - and PascalCased: css becomes Css and discord-icon becomes DiscordIcon. The reserved names React, Vue, Svelte, and Astro get a _ prefix, so the React logo is _React.
If the icon renders, you’re set. See the React guide for props, tree-shaking, and SSR.
FAQ
How do I install Devicons in a React project?
Run npm install @dev.icons/react, then import an icon component by its file name in PascalCase, e.g. import { Css } from '@dev.icons/react'. The React logo itself is exported as _React.
Does Devicons work with Vue and Svelte?
Yes. Install @dev.icons/vue or @dev.icons/svelte and import components the same way. Monochrome variants come from the /mono subpath of each package.
Is there an Astro package?
No. In Astro, use @dev.icons/react, @dev.icons/vue, or @dev.icons/svelte. The components render to static SVG without a client:* directive.
Can I use raw SVG files instead of components?
Yes. Every icon file is served as an SVG at https://devicons.io/devicons/icons/{file}.svg (color) and https://devicons.io/devicons/font/{file}.svg (monochrome). You can also download it from the icon page.
What license are Devicons released under?
Devicons is released under the MIT license. Brand logos remain the property of their respective owners.