
Type-safe DrawableResource accessors for 3,229+ Remix icons in 19 categories, offering vector/painter resources, composable or plain usage, and iterable all-icons collection.
A Kotlin Multiplatform library that wraps Remix Icon as Compose Multiplatform Resources. Provides type-safe DrawableResource accessors for all 3229+ icons across 20 categories.
// commonMain dependencies
implementation("io.github.cy745:remixicon-kmp:0.0.4")import com.lalilu.RemixIcon
import org.jetbrains.compose.resources.vectorResource
import org.jetbrains.compose.resources.painterResource
// 非 Composable 环境:传递 DrawableResource 引用
val iconRef = RemixIcon.Media.cameraFill
// Composable 环境:渲染
@Composable
fun MyIcon() {
Icon(
painter = painterResource(RemixIcon.Media.cameraFill),
contentDescription = "camera"
)
// 或使用 ImageVector
Icon(
imageVector = vectorResource(RemixIcon.Media.cameraFill),
contentDescription = "camera"
)
}
// 遍历所有图标
val allIcons = RemixIcon.AllIcons由于图标默认颜色为 #000000,渲染时通过 tint 着色:
Icon(
painter = painterResource(RemixIcon.Arrows.arrowDownFill),
contentDescription = null,
tint = Color.Red // 或 theme color
)所有分类和图标名可参考 完整图标索引。
| 分类 | 图标数 |
|---|---|
| Arrows | 178 |
| Buildings | 62 |
| Business | 220 |
| Communication | 92 |
| Design | 236 |
| Development | 66 |
| Device | 192 |
| Document | 244 |
| Editor | 151 |
| Finance | 172 |
| Food | 34 |
| GameAndSports | 50 |
| Health & Medical | 84 |
| Logos | 300 |
| Map | 172 |
| Media | 296 |
| Others | 116 |
| System | 348 |
| User & Faces | 134 |
| Weather | 82 |
请参阅 MIGRATION.md。
本库中的图标来自 Remix Icon,基于 Remix Icon License v1.0 许可使用。
Remix Icon License v1.0 允许:
详情请参阅 LICENSE-REMIXICON.md。
本库的代码(生成器、封装代码等)基于 Apache 2.0 许可,详见 LICENSE。
A Kotlin Multiplatform library that wraps Remix Icon as Compose Multiplatform Resources. Provides type-safe DrawableResource accessors for all 3229+ icons across 20 categories.
// commonMain dependencies
implementation("io.github.cy745:remixicon-kmp:0.0.4")import com.lalilu.RemixIcon
import org.jetbrains.compose.resources.vectorResource
import org.jetbrains.compose.resources.painterResource
// 非 Composable 环境:传递 DrawableResource 引用
val iconRef = RemixIcon.Media.cameraFill
// Composable 环境:渲染
@Composable
fun MyIcon() {
Icon(
painter = painterResource(RemixIcon.Media.cameraFill),
contentDescription = "camera"
)
// 或使用 ImageVector
Icon(
imageVector = vectorResource(RemixIcon.Media.cameraFill),
contentDescription = "camera"
)
}
// 遍历所有图标
val allIcons = RemixIcon.AllIcons由于图标默认颜色为 #000000,渲染时通过 tint 着色:
Icon(
painter = painterResource(RemixIcon.Arrows.arrowDownFill),
contentDescription = null,
tint = Color.Red // 或 theme color
)所有分类和图标名可参考 完整图标索引。
| 分类 | 图标数 |
|---|---|
| Arrows | 178 |
| Buildings | 62 |
| Business | 220 |
| Communication | 92 |
| Design | 236 |
| Development | 66 |
| Device | 192 |
| Document | 244 |
| Editor | 151 |
| Finance | 172 |
| Food | 34 |
| GameAndSports | 50 |
| Health & Medical | 84 |
| Logos | 300 |
| Map | 172 |
| Media | 296 |
| Others | 116 |
| System | 348 |
| User & Faces | 134 |
| Weather | 82 |
请参阅 MIGRATION.md。
本库中的图标来自 Remix Icon,基于 Remix Icon License v1.0 许可使用。
Remix Icon License v1.0 允许:
详情请参阅 LICENSE-REMIXICON.md。
本库的代码(生成器、封装代码等)基于 Apache 2.0 许可,详见 LICENSE。