{"id":13341449,"url":"https://github.com/ishimasar/pattern-library","last_synced_at":"2025-03-11T21:31:20.354Z","repository":{"id":38373870,"uuid":"223771264","full_name":"ishimasar/pattern-library","owner":"ishimasar","description":"Pattern Library \u0026 Style Guide by Cloudy knot　https://ishimasar.github.io/pattern-library/","archived":false,"fork":false,"pushed_at":"2024-06-13T11:22:56.000Z","size":35937,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-24T08:30:55.673Z","etag":null,"topics":["css","fractal","html","javascript","pattern-library","pug","scss","semantic","style-guide","typescript","ui","web-accessibility"],"latest_commit_sha":null,"homepage":"https://ishimasar.github.io/pattern-library/dest/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ishimasar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-24T16:05:22.000Z","updated_at":"2023-07-18T09:10:46.000Z","dependencies_parsed_at":"2024-10-24T03:52:23.142Z","dependency_job_id":null,"html_url":"https://github.com/ishimasar/pattern-library","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishimasar%2Fpattern-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishimasar%2Fpattern-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishimasar%2Fpattern-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishimasar%2Fpattern-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ishimasar","download_url":"https://codeload.github.com/ishimasar/pattern-library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243115437,"owners_count":20238759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","fractal","html","javascript","pattern-library","pug","scss","semantic","style-guide","typescript","ui","web-accessibility"],"created_at":"2024-07-29T19:25:26.242Z","updated_at":"2025-03-11T21:31:16.705Z","avatar_url":"https://github.com/ishimasar.png","language":"HTML","readme":"# パターンライブラリ \u0026 スタイルガイドについて\n\nWebサイト・アプリ制作で使用されるUIやスタイルのコード見本・サンプル集です。\nコーディングの参考、UI等の設計・作成方針の土台にでき、その上で作業効率にも寄与できるようなものを目指します。\n\nまた、JavaScriptは近い将来各種フレームワークやライブラリ、alt言語などが技術の変遷によって陳腐化する傾向とリスクを持つため、これに備え基本的に言語ネイティブのJavaScriptかつES6以降の記法で記述することを旨とします(スーパーセット利用は許容)。\n\n該当URLはこちら\n\n[https://ishimasar.github.io/pattern-library/dest/](https://ishimasar.github.io/pattern-library/dest/)\n\n※このプロジェクトは、コンポーネント ライブラリ\u0026スタイルガイドツール「\u003ca href=\"https://fractal.build/\" target=\"_blank\" rel=\"noopener\"\u003eFractal\u003c/a\u003e (外部リンク)」を利用しています\n\n**コーディングガイドライン \u0026 命名規則**もあわせてご参照ください\n\n[https://ishimasar.github.io/coding-guidelines/](https://ishimasar.github.io/coding-guidelines/)\n\n## 目的\n\n1. コーディングの基本原則の確認、UI等の設計・作成方針の参考または手がかりにできる\n2. ベースとなるWeb UIコードをストックし、自由に取り出せることで作業効率・速度を向上(車輪の再発明抑止)\n3. ベストプラクティスを都度模索し、最適なフォーマット更新を継続することによる品質の保持、向上\n4. \u003ca href=\"https://www.w3.org/standards/semanticweb/\" target=\"_blank\" rel=\"noopener\"\u003eセマンティック\u003c/a\u003e / \u003ca href=\"https://developer.mozilla.org/ja/docs/Web/Accessibility\" target=\"_blank\" rel=\"noopener\"\u003eWebアクセシビリティ\u003c/a\u003e(\u003ca href=\"https://developer.mozilla.org/ja/docs/Learn/Accessibility/WAI-ARIA_basics\" target=\"_blank\" rel=\"noopener\"\u003eWAI-ARIA\u003c/a\u003e含む)および\u003ca href=\"https://en.wikipedia.org/wiki/Object-oriented_user_interface\" target=\"_blank\" rel=\"noopener\"\u003eOOUI(Object-Oriented User Interface)\u003c/a\u003eなどの原理を考え実践した、インクルーシブなコーディングプロダクトの実現　※前述参照リンク先はすべて外部リンク\n\n## 使い方・参照方法\n\nComponents(UI)詳細画面の下部エリアに共通ドキュメントタブ(HTML、View、Context..等)が表示されます。おもに「View」タブ内からHTML、「Assets」タブ内からCSS、JavaScript(使用されている場合)のファイル名(style.css、index.js)をSelect boxから選ぶことでコード参照できます。ほかのFractalデフォルトタブは特に利用していません。ご自由に参照利用ください。\n\n\u003cimg src=\"https://ishimasar.github.io/pattern-library/dest/img/guidance-image.png\" class=\"carousel__img is-motioned\" alt=\"スライドパネルのコンテンツ画像1\" width=\"300\" height=\"541\" decoding=\"async\"\u003e\n\n背景技術として、HTMLテンプレートエンジンはHandlebars(Fractalデフォルト)、CSSはSass、JavaScriptはネイティブ(拡大に伴いTypeScriptへ移行中)を利用しています。\n\n## 構成\n\nUI分類 (Components)\n\n 1. **Static Ui**  \n   静的UI：JavaScriptでDOM操作など動的処理を付与しないWeb UI。List、Card、Tableなど\n 2. **Dynamic Ui**  \n   動的UI：JavaScriptで動的処理を付与したインタラクティブWeb UI。Carousel、Dialog、Tabなど\n 3. **Form Ui**  \n   フォームUI：ユーザーが情報入力・送信する際に用いるUI。Checkbox、Input field、Radioなど\n 4. **Control**  \n   コントロール系：ユーザー操作で挙動や値をコントロールするUI。Button、Slider、Switchなど\n 5. **Effect**  \n   演出・効果：CSSやJavaScriptを用いたモーション、UI。Smooth scroll、Loading effectなど\n 6. **Layout**  \n   配置・割付規則：空間上に要素を配置する際の手法、法則。Column、Flexbox、Gridなど\n 7. **Typography**  \n   文字表現：文字や書体、サイズ、字間、行間などに関連するUI。Body text、Headingなど\n 8. **Utility**  \n   汎用パターン：各UI間・内で柔軟に適用できるスタイル。 Display、Shapeなど\n\n## 仕様・注記\n\n本ライブラリはWeb UIコードの土台またはひとつの見本となることを目指し作成しています。そのため、必要最低限のスタイリングと挙動でコーディングしたシンプルなUI集となっています。制作現場ごとの多様なコンテクストに応じ、即適用や容易なカスタマイズを目的とした便利スニペットではないことをご承知ください。\n\nコードのカスタマイズや個別に改変しての適用はご自由にどうぞ。しかしながら、それによりおもに[目的 4.](https://ishimasar.github.io/pattern-library/#%E7%9B%AE%E7%9A%84)の内容・観点を崩す実装になっていないかのチェック意識や、ヒューマンリーダブルおよびマシンリーダブルの原則を見つめるきっかけになると良いなあと運営者は考えています。\n\n## 制作・運営\n\n石井 将直 / Masanao Ishii (Cloudy knot)\n\n2021-12-09\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishimasar%2Fpattern-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishimasar%2Fpattern-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishimasar%2Fpattern-library/lists"}