A Compose Multiplatform library of Phosphor Icons for Jetpack Compose.
This library provides the complete Phosphor icon set as ImageVectors that work seamlessly with:
- Jetpack Compose (Android)
- Compose Multiplatform
- Desktop
It exposes the icons through a simple and familiar API similar to Material Icons.
- Full Phosphor icon pack
- Multiple icon weights
- Optimized
ImageVectoricons - Works with Jetpack Compose & Compose Multiplatform
- Simple and clean API
Add the dependency to your build.gradle.kts:
implementation("io.github.dev778g-me:phosphoricon-compose:1.0.2")Sync your project after adding the dependency.
Phosphor icons support multiple visual weights.
object PhIcons {
object Light
object Thin
object Bold
object Filled
object Duotone
object Regular
}Each icon is available in these styles.
Example usage with Icon in Jetpack Compose:
Icon(
imageVector = PhIcons.Duotone.AcornDuotone,
tint = MaterialTheme.colorScheme.primary,
contentDescription = "Acorn icon"
)You can also control size using modifiers:
Icon(
imageVector = PhIcons.Bold.AcornBold,
contentDescription = "Acorn",
modifier = Modifier.size(56.dp)
)Row {
Icon(
imageVector = PhIcons.Light.AcornLight,
contentDescription = null
)
Icon(
imageVector = PhIcons.Bold.AcornBold,
contentDescription = null
)
Icon(
imageVector = PhIcons.Filled.AcornFill,
contentDescription = null
)
}- Android
- Desktop
- Compose Multiplatform
Phosphor is a flexible icon family designed for interfaces, diagrams, and presentations.
Official website: https://phosphoricons.com
Phosphor Icons are licensed under the MIT License.
This Compose wrapper library follows the same license.