melta-ui
llms.txt201 starsChanged 3 months agoMITView on GitHub
人間にも AI にも読めるデザインシステム(AI-Ready 2.0)。Tailwind CSS ベースで、28 コンポーネント(contract は全 40 contract = web 28 + app 先行 12)、101 デザイントークン、107 禁止ルール、検証ハーネス(CI / lint / hook)、MCP サーバーを同梱する。 UI を生成する前に DESIGN.md を読むこと。exact value は design/contracts/ の JSON が SSOT(値競合時は contracts > DESIGN.md Quick Reference > 各 md の順で優先)。
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/melta-ui.mdcCursor rule
- llms-full.txtllms.txt
- ban-patternSkill
- build-screenSkill
- design-reviewSkill
The file
Files
# melta UI > 人間にも AI にも読めるデザインシステム(AI-Ready 2.0)。Tailwind CSS ベースで、28 コンポーネント(contract は全 40 contract = web 28 + app 先行 12)、101 デザイントークン、107 禁止ルール、検証ハーネス(CI / lint / hook)、MCP サーバーを同梱する。 UI を生成する前に DESIGN.md を読むこと。exact value は design/contracts/ の JSON が SSOT(値競合時は contracts > DESIGN.md Quick Reference > 各 md の順で優先)。 ## Docs - [DESIGN.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/DESIGN.md): デザイン憲法 + Quick Reference。これだけで基本 UI を生成可能 - [AGENTS.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/AGENTS.md): AI エージェント向け作業ガイド(読み込みモード・作業ルール・タスク別ガイド) - [authority.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/authority.md): SSOT 宣言と値競合時の優先順位 - [tokens.json](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/tokens.json): 101 デザイントークン(exact value + tailwind class) - [rules.json](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/rules.json): 107 禁止ルール(ID + severity + detector + alternative) - [theme.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/foundations/theme.md): テーマ・CSS 変数・カラーパレット ## Components - [components.json](https://raw.githubusercontent.com/tsubotax/melta-ui/main/metadata/components.json): 28 コンポーネント仕様の集約ビュー(contracts から生成) - [accordion](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/accordion.contract.json): 折りたたみ式コンテンツ。aria-expanded必須。 - [action-sheet](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/action-sheet.contract.json): 画面下から出るアクション/選択リスト。web の select / dropdown を APP に adapted 変換する際の受け皿(構造的 P0)。destructive アクションは色で区別しラベルでも伝える。(web 実装は準備中) - [alert](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/alert.contract.json): インラインアラート通知。Info / Success / Warning / Error の4タイプ。 - [avatar](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/avatar.contract.json): ユーザーアバター。Image / Initials / Status / Group。 - [badge](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/badge.contract.json): ステータス・カウント表示。Status / Dot / Count / Outline の4バリエーション。 - [bottom-sheet](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/bottom-sheet.contract.json): 画面下から出る汎用シート container(content は自由 slot)。フィルタ・詳細・複雑な選択 UI の受け皿。ActionSheet がリスト特化なのに対しこちらは容器。(web 実装は準備中) - [breadcrumb](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/breadcrumb.contract.json): 階層パスナビゲーション。ol要素で構造化。 - [button](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/button.contract.json): CTA / secondary / icon button。3階層ヒエラルキー。 - [card](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/card.contract.json): コンテンツコンテナ。Basic / Metrics / Media / Action / Link の5バリエーション。 - [checkbox](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/checkbox.contract.json): 複数選択フォームコントロール。CSS 18px サイズ。 - [copy-button](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/copy-button.contract.json): クリップボードコピー + pop アニメーション付きアイコンボタン。 - [datepicker](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/datepicker.contract.json): 日付選択コンポーネント。カレンダーポップアップ + キーボードナビ。 - [divider](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/divider.contract.json): セクション間の視覚的区切り。水平 / テキスト付き / 垂直の3パターン。 - [dropdown](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/dropdown.contract.json): ドロップダウンメニュー。キーボードナビゲーション対応。 - [empty-state](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/empty-state.contract.json): データ無し時のプレースホルダー(アイコン + タイトル + 説明 + 任意のアクション)。Text + Button の compose。(web 実装は準備中) - [header](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/header.contract.json): 画面ヘッダー。defaultは左寄せ見出し、actionsは可視タイトルなしの操作バー、centered/navigationは中央タイトル。配置・寸法・文字組みはHeaderが所有し、画面の操作内容とnavigationは利用側が渡す。(web 実装は準備中) - [icon](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/icon.contract.json): 統一アイコン primitive。name prop でグリフを選択し(グリフ集合は実装側の公開面 = assets/icons の Charcoal セット由来)、色は semantic token キー限定の prop(default (web 実装は準備中) - [image](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/image.contract.json): 画像表示 primitive。aspectRatio / radius / contentFit / onError fallback を持つ。Phase1 は RN コア Image、expo-image は Phase2。(web 実装は準備中) - [list](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/list.contract.json): リストアイテム。Link / Information / Action / Toggle / Selection の6タイプ。 - [metric](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/metric.contract.json): 数値 + 単位 + ラベルの指標表示 primitive(距離 / 時間 / 獲得標高 等の走行サマリー表示)。tabular-nums で桁揃え。sizes の height は数値テキストの想定行高(px)で、実 fontSize は実(web 実装は準備中) - [modal](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/modal.contract.json): フォーカストラップとバックドロップを備えたモーダルダイアログ。 - [pagination](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/pagination.contract.json): ページ送りナビゲーション。w-10 h-10タップターゲット。 - [progress](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/progress.contract.json): リニアプログレスバー。aria-valuenow/min/max必須。 - [radio](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/radio.contract.json): 単一選択フォームコントロール。fieldsetラッパー必須。 - [row](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/row.contract.json): 子要素を横に並べる layout primitive。gap は spacing token キー限定の prop。折返し(wrap)と主軸配置(justify)を持ち、タグ列・メトリクス列・ヘッダー行の生 flexbox 手書きを置き換え(web 実装は準備中) - [screen](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/screen.contract.json): 画面骨格 primitive(SafeArea + bg-page + content padding)。header slot を scroll 外に固定し、毎画面手書きされる SafeAreaView + ScrollView + ヘッ(web 実装は準備中) - [select](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/select.contract.json): ドロップダウン選択。appearance-none + カスタムSVGシェブロン必須。 - [sidebar](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/sidebar.contract.json): メインナビゲーション用サイドバー。Standard / Compact / Drawer の3バリエーション。 - [skeleton](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/skeleton.contract.json): ローディングプレースホルダー。aria-busy="true"必須。 - [stack](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/stack.contract.json): 子要素を縦に積む layout primitive。gap は spacing token キー限定の prop(省略時 gap なし)。画面の縦リズムを生 flexbox 手書きから置き換える(dogfood 不足-1)。(web 実装は準備中) - [stepper](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/stepper.contract.json): マルチステッププロセスの進捗表示。Completed / Active / Upcoming の3状態。 - [surface](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/surface.contract.json): Card / Skeleton / EmptyState の共通土台となる箱 primitive(bg / radius / elevation / padding)。melta-app では internal(未 export)。(web 実装は準備中) - [table](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/table.contract.json): データテーブル。th scope="col"必須。 - [tabs](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/tabs.contract.json): コンテンツ切り替えタブ。underline(下線)/ bar(丸角バー)の2バリアント。キーボードナビ対応。 - [tag](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/tag.contract.json): 削除可能なタグ / フィルターチップ。 - [text](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/text.contract.json): 本文・見出し・キャプションの基本テキスト primitive。fontSize variant と semantic color、heading/body で letterSpacing を切替。(web 実装は準備中) - [textfield](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/textfield.contract.json): テキスト入力フィールド。Default / Error / Disabled / Success の4状態。 - [toast](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/toast.contract.json): 一時的な通知メッセージ。4タイプ(success/error/warning/info)。 - [toggle](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/toggle.contract.json): ON/OFFスイッチコンポーネント。role="switch"必須。 - [tooltip](https://raw.githubusercontent.com/tsubotax/melta-ui/main/design/contracts/components/tooltip.contract.json): ホバー/フォーカスで表示される補足情報。max-width: 20rem。 ## Optional - [README.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/README.md): プロジェクト全体像(アーキテクチャ・Quick Start・Enforcement) - [design_philosophy.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/foundations/design_philosophy.md): デザイン哲学の詳細 - [layout.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/patterns/layout.md): レイアウトパターン(コンテンツ幅・グリッド) - [form.md](https://raw.githubusercontent.com/tsubotax/melta-ui/main/patterns/form.md): フォームパターン - [llms-full.txt](https://raw.githubusercontent.com/tsubotax/melta-ui/main/llms-full.txt): 主要ドキュメントの全文連結(1 ファイルで読みたいエージェント向け)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

