compose-phosphor-icon

Enables seamless integration of Phosphor Icons into UI projects, offering a script for generating icon paths and supporting multiple platforms including Android, iOS, Desktop, and Web.

Android JVMJVMKotlin/NativeWasmJS
GitHub stars28
Authorsadamglin0
Open issues1
LicenseMIT License
Creation dateover 1 year ago

Last activity11 months ago
Latest release1.0.0 (over 1 year ago)

Phosphor Icons for Compose Multiplatform

A Kotlin Multiplatform library for using Phosphor Icons in Compose Multiplatform.

Maven Central Version


Install

This library supports these platforms:

  1. [x] Android
  2. [x] iOS
  3. [x] Desktop (JVM)
  4. [x] Web (JS / WasmJS)

In your Kotlin module:

implementation("com.adamglin:phosphor-icon:$version")

Usage

Icon(imageVector = PhosphorIcons.Bold.AirTrafficControl, contentDescription = null)

Versions

lib phosphor-icon CMP Kotlin
1.0.0 2.1.0 1.7.1 2.0.21

Build By Yourself

kotlinc -script run.main.kts

what's the script do?

  1. download phosphor-icons-zip
  2. unzip it
  3. reset all path's default size
  4. convert svg to compose path

this script will generate all icons in phosphor/src/commainMain/kotlin

Sample

image

Android JVMJVMKotlin/NativeWasmJS
GitHub stars28
Authorsadamglin0
Open issues1
LicenseMIT License
Creation dateover 1 year ago

Last activity11 months ago
Latest release1.0.0 (over 1 year ago)

Phosphor Icons for Compose Multiplatform

A Kotlin Multiplatform library for using Phosphor Icons in Compose Multiplatform.

Maven Central Version


Install

This library supports these platforms:

  1. [x] Android
  2. [x] iOS
  3. [x] Desktop (JVM)
  4. [x] Web (JS / WasmJS)

In your Kotlin module:

implementation("com.adamglin:phosphor-icon:$version")

Usage

Icon(imageVector = PhosphorIcons.Bold.AirTrafficControl, contentDescription = null)

Versions

lib phosphor-icon CMP Kotlin
1.0.0 2.1.0 1.7.1 2.0.21

Build By Yourself

kotlinc -script run.main.kts

what's the script do?

  1. download phosphor-icons-zip
  2. unzip it
  3. reset all path's default size
  4. convert svg to compose path

this script will generate all icons in phosphor/src/commainMain/kotlin

Sample

image