Use Remix Icon SVGs directly
masterYou can download individual icons from remixicon.com in SVG or PNG format. For web projects, you can use the <img> tag to embed the SVG files directly.
<img height="32" width="32" src="img/admin-fill.svg" />repository·master·Indexed 27 days ago
https://github.com/remix-design/remixiconAn open-source set of neutral-style system symbols for designers and developers. Version 4.9.1 provides icons in 'Outlined' and 'Filled' styles on a 24x24 grid. Available as a webfont via npm or CDN, SVG files, SVG sprites, and dedicated component packages for React (@remixicon/react) and Vue 3 (@remixicon/vue).
You can download individual icons from remixicon.com in SVG or PNG format. For web projects, you can use the <img> tag to embed the SVG files directly.
<img height="32" width="32" src="img/admin-fill.svg" />The fastest way to use the Webfont is to include the CSS link in your HTML <head>. You can specify any historical version by changing the version number in the URL.
<link
href="https://cdn.jsdelivr.net/npm/remixicon@4.9.0/fonts/remixicon.css"
rel="stylesheet"
/>Download remixicon.symbol.svg and add it to your project. You can then reference icons using the <use> tag. This method allows you to customize size and color via CSS.
<svg class="remix">
<use xlink:href="path/to/remixicon.symbol.svg#ri-admin-fill"></use>
</svg>.remix {
width: 24px;
height: 24px;
fill: #333;
}Download the remixicon.symbol.svg file and use the <use> element to reference icons by their ID. The ID follows the pattern #ri-{name}-{style}.
<svg class="remix">
<use xlink:href="your-path/remixicon.symbol.svg#ri-admin-fill"></use>
</svg>
<style>
.remix {
width: 24px;
height: 24px;
fill: #333;
}
</style>You can use Remix Icon as a webfont via npm, CDN, or manual download.
npm install remixicon --saveThen import the CSS in your main entry point (e.g., main.js):
import 'remixicon/fonts/remixicon.css'Add this link to your HTML <head>:
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.9.0/fonts/remixicon.css" rel="stylesheet" />Use the <i> tag with the class name pattern ri-{name}-{style}.
-line for outlined style.-fill for filled style.Example:
<i class="ri-admin-line"></i> <i class="ri-admin-fill"></i>Install the @remixicon/vue package and import icon components. Components accept size, color, and className props.
npm install @remixicon/vue
# or
yarn add @remixicon/vue
# or
pnpm install @remixicon/vue<script setup lang="ts">
import { RiHeartFill } from "@remixicon/vue";
</script>
<template>
<RiHeartFill size="36px" color="red" className="my-icon" />
</template>You can use individual icons as standard image files by downloading them from remixicon.com in SVG format. This allows you to treat icons like any other image asset (e.g., JPG or PNG) using a standard <img> tag.
<img height="32" width="32" src="img/admin-fill.svg" />Install the @remixicon/react package and import specific icon components. Components accept size, color, and className props.
npm install @remixicon/react
# or
yarn add @remixicon/react
# or
pnpm install @remixicon/reactimport { RiHeartFill } from "@remixicon/react";
const MyComponent = () => {
return (
<RiHeartFill
size={36} // set size
color="red" // set color
className="my-icon" // add custom class
/>
);
};Install the Vue 3 component package:
npm install @remixicon/vueImport icon components and use them in your template. You can pass size, color, and className props.
<script setup lang="ts">
import { RiHeartFill } from "@remixicon/vue";
</script>
<template>
<RiHeartFill size="36px" color="red" className="my-icon" />
</template>Install the React component package:
npm install @remixicon/reactImport specific icon components (using PascalCase) and use them as React components. You can pass size, color, and className props.
import { RiHeartFill } from "@remixicon/react";
const MyComponent = () => {
return (
<RiHeartFill
size={36} // set custom `width` and `height`
color="red" // set `fill` color
className="my-icon" // add custom class name
/>
);
};Icons inherit the font-size of their parent container. You can use built-in utility classes to adjust the size relative to the inherited size, or use ri-fw for a fixed width.
Available size classes:
ri-xxs (0.5em)ri-xs (0.75em)ri-sm (0.875em)ri-1x (1em)ri-lg (1.3333em)ri-xl (1.5em)ri-2x (2em)ri-10x (10em)<div style="font-size: 24px;">
<i class="ri-admin-line ri-fw"></i>
<i class="ri-admin-line ri-xxs"></i>
<i class="ri-admin-line ri-xs"></i>
<i class="ri-admin-line ri-sm"></i>
<i class="ri-admin-line ri-1x"></i>
<i class="ri-admin-line ri-lg"></i>
<i class="ri-admin-line ri-xl"></i>
<i class="ri-admin-line ri-2x"></i>
</div>Remix Icon provides built-in utility classes to change icon size using em relative units. You can also use ri-fw to give the icon a fixed width, which is useful for list layouts.
Common size classes include:
ri-xxs (0.5em)ri-xs (0.75em)ri-sm (0.875em)ri-1x (1em)ri-lg (1.3333em)ri-xl (1.5em)ri-2x (2em)ri-10x (10em)<div style="font-size: 24px;">
<i class="ri-admin-line ri-fw"></i>
<!-- fixed width -->
<i class="ri-admin-line ri-xxs"></i>
<!-- 0.5em -->
<i class="ri-admin-line ri-xs"></i>
<!-- 0.75em -->
<i class="ri-admin-line ri-sm"></i>
<!-- 0.875em -->
<i class="ri-admin-line ri-1x"></i>
<!-- 1em -->
<i class="ri-admin-line ri-lg"></i>
<!-- 1.3333em -->
<i class="ri-admin-line ri-xl"></i>
<!-- 1.5em -->
<i class="ri-admin-line ri-2x"></i>
<!-- 2em -->
<i class="ri-admin-line ri-3x"></i>
<!-- ... -->
<i class="ri-admin-line ri-10x"></i>
</div>