スキル一覧に戻る
amirrudd

kmp-ui-bridge

by amirrudd

0🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: kmp-ui-bridge description: Skill for translating web UI patterns (React/Tailwind) to native mobile patterns (Kotlin/Compose Multiplatform).

KMP UI Bridge

This skill provides a translation layer between web and native mobile UI development.

UI Mapping Guide

Layouts

Web (Tailwind)Mobile (Compose)
flex flex-colColumn
flex flex-rowRow
gridLazyVerticalGrid or Box
p-4Modifier.padding(16.dp)
gap-4Arrangement.spacedBy(16.dp)
items-centerAlignment.CenterVertically
justify-betweenArrangement.SpaceBetween

Components

Web ComponentMobile Component
<Button>Button or IconButton
<Input>TextField or OutlinedTextField
<img />AsyncImage (Coil)
<Dialog>AlertDialog
<toast>Snackbar

Styling

Tailwind ClassCompose Parameter
rounded-lgRoundedCornerShape(8.dp)
shadow-mdModifier.shadow(elevation = 4.dp)
bg-primarycolor = MaterialTheme.colorScheme.primary
font-boldfontWeight = FontWeight.Bold

Shared Logic Patterns

When moving logic from src/ to mobile/shared/:

  1. Extract purely logical functions into commonMain.
  2. Use Flow instead of React state for asynchronous data streams.
  3. Implement Repository pattern to share API call logic.

Examples

translation-example.md

See resources/translation-example.md for a side-by-side comparison of a UI component in both platforms.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です