@solar-icons/vue

Solar Icons for Vue
28,152 223
Install
npm install @solar-icons/vue
Latest Version:2.3.3
Vue:3
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: h-saoudi

@solar-icons/vue

Vue components for Solar Icons. This package provides 8,706 SVG icons across 6 styles (Bold, Broken, Linear, Outline, Bold Duotone, Line Duotone), optimized for Vue applications.

Features

  • 8,706 SVGs: 1,451 unique icons in 6 styles. Designed by 480 Design.
  • Tree-shakeable: Import only the icons you use.
  • Global configuration: Set defaults for size, color, and stroke width using <SolarProvider>.
  • Customizable: Override size, color, and stroke width per icon via props or CSS variables.
  • Duotone support: Secondary color controls for bold-duotone and line-duotone styles.
  • TypeScript: Typed components and props.

Install

npm install @solar-icons/vue

Usage

<script setup>
import { HomeIcon, LoginIcon } from '@solar-icons/vue/linear'
</script>

<template>
    <div>
        <HomeIcon />
        <LoginIcon color="#3b82f6" :size="32" :strokeWidth="2" />
    </div>
</template>

Global Configuration (Provider)

Wrap your application root in <SolarProvider> to set default properties:

<script setup>
import { SolarProvider } from '@solar-icons/vue'
import { HomeIcon } from '@solar-icons/vue/linear'
</script>

<template>
    <SolarProvider :size="24" color="currentColor" :strokeWidth="1.5">
        <HomeIcon />
    </SolarProvider>
</template>

Global Configuration (Plugin)

The plugin sets the same defaults app-wide without a provider wrapper. It writes the five CSS variables on document.body and makes useSolar() available in every component. The variables are applied client-side.

import { createApp } from 'vue'
import { SolarIconsPlugin } from '@solar-icons/vue/lib'

const app = createApp(App)
app.use(SolarIconsPlugin, {
    color: '#ef4444',
    size: 24,
    strokeWidth: 1.5,
    secondaryColor: '#f59e0b',
    secondaryOpacity: 0.5,
})
app.mount('#app')

For server-rendered apps, prefer <SolarProvider> for an exact first paint.

Documentation

For installation guides, API reference, and a searchable icon catalog, visit the Vue Documentation.

License

MIT License. Icons by 480 Design (CC BY 4.0).

Related Packages

@phosphor-icons/vue

A clean and friendly icon family for Vue, too!

2,440,550 242
phosphor-vue

A clean and friendly icon family for Vue, too!

84,110 242
@rainforestpay/phosphor-vue

A clean and friendly icon family for Vue, too!

3,159 242
@dnlsndr/vue-phosphor-icons

A clean and friendly icon family for Vue, too!

1,866 4

Version History

Version Released License
2.3.3 MIT
2.3.2 MIT
2.3.1 MIT
2.3.0 MIT
2.2.0 MIT
Pre-releases (7)
Version Released License
2.0.0-beta.3 MIT
2.0.0-beta.2 MIT
2.0.0-beta.1 MIT
2.0.0-beta.0 MIT
1.2.0-beta.2 MIT