
Comprehensive icon library offering 1,596 icons in six styles, true-stroke rendering with adjustable stroke width, duotone theming, modular artifacts and lazy icon parsing.
A Compose Multiplatform port of the Solar Icon Set by 480 Design, modelled on the Flutter package from saoudi-h/solar-icons.
1,596 icons in each of the 6 styles (9,576 in total) for:
iosArm64, iosSimulatorArm64)jvm)wasmJs, js)Bold, BoldDuotone, Linear, LineDuotone, Broken, Outline. Every icon is available in every style.LocalContentColor (including disabled alpha) by default.solar-icons-all.In gradle/libs.versions.toml:
[versions]
solarIcons = "2.0.0"
[libraries]
solar-icons-bom = { module = "io.github.wolfeleo2.solaricons:solar-icons-bom", version.ref = "solarIcons" }
# Add only the styles you need (each one brings in solar-icons-core):
solar-icons-bold = { module = "io.github.wolfeleo2.solaricons:solar-icons-bold", version.ref = "solarIcons" }
solar-icons-bold-duotone = { module = "io.github.wolfeleo2.solaricons:solar-icons-bold-duotone", version.ref = "solarIcons" }
solar-icons-linear = { module = "io.github.wolfeleo2.solaricons:solar-icons-linear", version.ref = "solarIcons" }
solar-icons-line-duotone = { module = "io.github.wolfeleo2.solaricons:solar-icons-line-duotone", version.ref = "solarIcons" }
solar-icons-broken = { module = "io.github.wolfeleo2.solaricons:solar-icons-broken", version.ref = "solarIcons" }
solar-icons-outline = { module = "io.github.wolfeleo2.solaricons:solar-icons-outline", version.ref = "solarIcons" }
# Or everything:
solar-icons-all = { module = "io.github.wolfeleo2.solaricons:solar-icons-all", version.ref = "solarIcons" }Multiplatform (commonMain):
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.solar.icons.bold.duotone)
implementation(libs.solar.icons.linear)
}
}
}To align versions with the BOM instead, drop version.ref from the style entries and add implementation(project.dependencies.platform(libs.solar.icons.bom)).
Android-only projects:
dependencies {
implementation(libs.solar.icons.bold.duotone)
implementation(libs.solar.icons.linear)
}Icons are extension properties on the SolarIcons.<Style> objects. Each one is a SolarIcon, imported from the style's package:
import io.github.wolfeleo2.solaricons.SolarIcons
import io.github.wolfeleo2.solaricons.boldduotone.Home
import io.github.wolfeleo2.solaricons.linear.BellimageVector works with the standard Icon. tint recolors both layers and keeps the duotone layer at 50% opacity:
Icon(
imageVector = SolarIcons.BoldDuotone.Home.imageVector,
contentDescription = "Home",
tint = MaterialTheme.colorScheme.primary,
)
Icon(SolarIcons.Linear.Bell.imageVector, contentDescription = "Notifications")Use it for two-color duotone or a custom stroke width:
import io.github.wolfeleo2.solaricons.core.SolarIcon
import io.github.wolfeleo2.solaricons.boldduotone.User
SolarIcon(
icon = SolarIcons.BoldDuotone.User,
contentDescription = "Profile",
primaryColor = Color(0xFF2E63E6), // main shapes
secondaryColor = Color(0xFF90B5FF), // duotone layer
secondaryOpacity = 0.4f,
)
SolarIcon(SolarIcons.Linear.Bell, contentDescription = null, strokeWidth = 2f)| Parameter | Default |
|---|---|
primaryColor |
LocalContentColor.current |
secondaryColor |
primaryColor |
secondaryOpacity |
0.5f (multiplied with the secondary color's alpha) |
strokeWidth |
1.5f, in 24×24 viewport units; filled styles ignore it |
Outside composition, icon.asImageVector(primaryColor, secondaryColor, secondaryOpacity, strokeWidth) builds the same thing as an ImageVector.
Names are the catalogue's kebab-case names in PascalCase: arrow-right → SolarIcons.Linear.ArrowRight, bag-2 → Bag2. Icons the catalogue has renamed keep their old name as a @Deprecated alias that points to the new one.
com.wolfeleo2.solaricons with io.github.wolfeleo2.solaricons in your imports, so the package matches the Maven group.@Deprecated alias with a quick-fix to the new name (for example Magnifer → Magnifier, _4k → FourK).SolarIcon colors: primaryColor / secondaryColor are no longer nullable. Leave a parameter out to get its default, instead of passing null. secondaryOpacity now also applies when you pass secondaryColor explicitly.The style modules are generated from the saoudi-h/solar-icons catalogue. To update them:
git clone --depth 1 https://github.com/saoudi-h/solar-icons /tmp/solar-icons
python3 scripts/generate_icons.py /tmp/solar-iconsThe generator needs only Python 3's standard library and stops with an error on any SVG feature it doesn't support. scripts/UPSTREAM_COMMIT records which catalogue commit the icons came from.
A Compose Multiplatform port of the Solar Icon Set by 480 Design, modelled on the Flutter package from saoudi-h/solar-icons.
1,596 icons in each of the 6 styles (9,576 in total) for:
iosArm64, iosSimulatorArm64)jvm)wasmJs, js)Bold, BoldDuotone, Linear, LineDuotone, Broken, Outline. Every icon is available in every style.LocalContentColor (including disabled alpha) by default.solar-icons-all.In gradle/libs.versions.toml:
[versions]
solarIcons = "2.0.0"
[libraries]
solar-icons-bom = { module = "io.github.wolfeleo2.solaricons:solar-icons-bom", version.ref = "solarIcons" }
# Add only the styles you need (each one brings in solar-icons-core):
solar-icons-bold = { module = "io.github.wolfeleo2.solaricons:solar-icons-bold", version.ref = "solarIcons" }
solar-icons-bold-duotone = { module = "io.github.wolfeleo2.solaricons:solar-icons-bold-duotone", version.ref = "solarIcons" }
solar-icons-linear = { module = "io.github.wolfeleo2.solaricons:solar-icons-linear", version.ref = "solarIcons" }
solar-icons-line-duotone = { module = "io.github.wolfeleo2.solaricons:solar-icons-line-duotone", version.ref = "solarIcons" }
solar-icons-broken = { module = "io.github.wolfeleo2.solaricons:solar-icons-broken", version.ref = "solarIcons" }
solar-icons-outline = { module = "io.github.wolfeleo2.solaricons:solar-icons-outline", version.ref = "solarIcons" }
# Or everything:
solar-icons-all = { module = "io.github.wolfeleo2.solaricons:solar-icons-all", version.ref = "solarIcons" }Multiplatform (commonMain):
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.solar.icons.bold.duotone)
implementation(libs.solar.icons.linear)
}
}
}To align versions with the BOM instead, drop version.ref from the style entries and add implementation(project.dependencies.platform(libs.solar.icons.bom)).
Android-only projects:
dependencies {
implementation(libs.solar.icons.bold.duotone)
implementation(libs.solar.icons.linear)
}Icons are extension properties on the SolarIcons.<Style> objects. Each one is a SolarIcon, imported from the style's package:
import io.github.wolfeleo2.solaricons.SolarIcons
import io.github.wolfeleo2.solaricons.boldduotone.Home
import io.github.wolfeleo2.solaricons.linear.BellimageVector works with the standard Icon. tint recolors both layers and keeps the duotone layer at 50% opacity:
Icon(
imageVector = SolarIcons.BoldDuotone.Home.imageVector,
contentDescription = "Home",
tint = MaterialTheme.colorScheme.primary,
)
Icon(SolarIcons.Linear.Bell.imageVector, contentDescription = "Notifications")Use it for two-color duotone or a custom stroke width:
import io.github.wolfeleo2.solaricons.core.SolarIcon
import io.github.wolfeleo2.solaricons.boldduotone.User
SolarIcon(
icon = SolarIcons.BoldDuotone.User,
contentDescription = "Profile",
primaryColor = Color(0xFF2E63E6), // main shapes
secondaryColor = Color(0xFF90B5FF), // duotone layer
secondaryOpacity = 0.4f,
)
SolarIcon(SolarIcons.Linear.Bell, contentDescription = null, strokeWidth = 2f)| Parameter | Default |
|---|---|
primaryColor |
LocalContentColor.current |
secondaryColor |
primaryColor |
secondaryOpacity |
0.5f (multiplied with the secondary color's alpha) |
strokeWidth |
1.5f, in 24×24 viewport units; filled styles ignore it |
Outside composition, icon.asImageVector(primaryColor, secondaryColor, secondaryOpacity, strokeWidth) builds the same thing as an ImageVector.
Names are the catalogue's kebab-case names in PascalCase: arrow-right → SolarIcons.Linear.ArrowRight, bag-2 → Bag2. Icons the catalogue has renamed keep their old name as a @Deprecated alias that points to the new one.
com.wolfeleo2.solaricons with io.github.wolfeleo2.solaricons in your imports, so the package matches the Maven group.@Deprecated alias with a quick-fix to the new name (for example Magnifer → Magnifier, _4k → FourK).SolarIcon colors: primaryColor / secondaryColor are no longer nullable. Leave a parameter out to get its default, instead of passing null. secondaryOpacity now also applies when you pass secondaryColor explicitly.The style modules are generated from the saoudi-h/solar-icons catalogue. To update them:
git clone --depth 1 https://github.com/saoudi-h/solar-icons /tmp/solar-icons
python3 scripts/generate_icons.py /tmp/solar-iconsThe generator needs only Python 3's standard library and stops with an error on any SVG feature it doesn't support. scripts/UPSTREAM_COMMIT records which catalogue commit the icons came from.