npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@solar-icons/solid-v2

v2.2.0

Published

Solar Icons for Solid 2

Readme

@solar-icons/solid-v2

SolidJS 2 components for Solar Icons. This package provides 10,152 SVG icons across 6 styles (Bold, Broken, Linear, Outline, Bold Duotone, Line Duotone), built for Solid 2.

Which package should I use?

| Your app uses | Install | | ------------- | ----------------------- | | Solid 1 | @solar-icons/solid | | Solid 2 | @solar-icons/solid-v2 |

The v2 in the name is the Solid major version. It is not the Solar Icons major version, which both packages share.

Solid 1 and Solid 2 changed their compiler output, their DOM and server runtimes (solid-js/web became @solidjs/web), their reactivity rules and their JSX types. A single published build cannot serve both without trade-offs in SSR, hydration and typing, so the two lines are kept apart for the time being. This is a transition measure for Solid, not a pattern we plan to repeat for other frameworks. We will look again at a single package once the Solid 2 ecosystem is mature, and @solar-icons/solid remains the package for Solid 1 and is not deprecated.

Features

  • 10,152 SVGs: 1,692 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.
  • Dynamic icons: Switch the style at runtime with weight.
  • SSR and hydration: Server and DOM builds, selected through package conditions.
  • TypeScript: Typed components and props.

Install

npm install @solar-icons/solid-v2 solid-js @solidjs/web

Peer dependencies: solid-js and @solidjs/web, both ^2.0.0. Solid 1 is rejected by the install, on purpose.

Your build must compile JSX for Solid 2: use @solidjs/vite-plugin (3.x) or unplugin-solid 3, and set "jsxImportSource": "@solidjs/web" in tsconfig.json.

Usage

import { HomeIcon, LoginIcon } from '@solar-icons/solid-v2/linear'

function App() {
    return (
        <div>
            <HomeIcon />
            <LoginIcon color="#3b82f6" size={32} strokeWidth={2} />
        </div>
    )
}

Global Configuration (Provider)

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

import { SolarProvider } from '@solar-icons/solid-v2'
import { HomeIcon } from '@solar-icons/solid-v2/linear'

function App() {
    return (
        <SolarProvider size={24} color="currentColor" strokeWidth={1.5}>
            <HomeIcon />
        </SolarProvider>
    )
}

Dynamic icons

import { HeartIcon } from '@solar-icons/solid-v2/dynamic'
import { createSignal } from 'solid-js'

function App() {
    const [weight, setWeight] = createSignal<'Linear' | 'Bold'>('Linear')

    return <HeartIcon weight={weight()} onClick={() => setWeight('Bold')} />
}

Differences with @solar-icons/solid

The import paths, component names, props, CSS variables and CSS classes are the same. These points follow Solid 2 and differ from the Solid 1 package:

| Topic | @solar-icons/solid (Solid 1) | @solar-icons/solid-v2 (Solid 2) | | ------------------ | ------------------------------ | ------------------------------------------------------------------------ | | Peer dependency | solid-js ^1.6.0 | solid-js and @solidjs/web, ^2.0.0 | | JSX types | JSX from solid-js | JSX from @solidjs/web | | class | String | String, array or object (Solid 2 class values) | | useSolar setters | Apply right away | Batched like any Solid 2 signal write: the DOM updates on the next flush | | No provider | useSolar() throws | useSolar() throws Solid's context error | | Version | Stable | Stable |

Documentation

For the API reference and a searchable icon catalog, visit the Solid Documentation.

Versions this package is tested with

solid-js and @solidjs/web 2.0.0, @solidjs/vite-plugin 3.0.1, unplugin-solid 3.0.0.

License

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