@lism-css/mcp 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/components.json +19 -3
- package/dist/data/docs-index.json +142 -71
- package/dist/data/meta.js +2 -2
- package/dist/data/overview.json +2 -2
- package/dist/data/props-system.json +15 -0
- package/dist/data/tokens.json +15 -13
- package/dist/lib/search.js +5 -2
- package/dist/tools/convert-css.js +4 -1
- package/dist/tools/get-props-system.js +4 -1
- package/package.json +3 -3
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
"description": "CSS Gridレイアウトを構成するコンポーネント。display: grid が適用される。",
|
|
84
84
|
"aliases": ["CSS Grid", "グリッド", "grid layout", "格子", "display: grid"],
|
|
85
85
|
"props": [
|
|
86
|
-
{ "name": "gd", "type": "string | array", "description": "grid の値。" },
|
|
87
86
|
{ "name": "gt", "type": "string | array", "description": "grid-template の値。" },
|
|
88
87
|
{ "name": "gta", "type": "string | array", "description": "grid-template-areas の値。" },
|
|
89
88
|
{ "name": "gtc", "type": "string | array", "description": "grid-template-columns の値。" },
|
|
@@ -292,7 +291,11 @@
|
|
|
292
291
|
{ "name": "contrast", "type": "string | number", "description": "filterのcontrast値。" },
|
|
293
292
|
{ "name": "brightness", "type": "string | number", "description": "filterのbrightness値。" },
|
|
294
293
|
{ "name": "grayscale", "type": "string | number", "description": "filterのgrayscale値。" },
|
|
295
|
-
{ "name": "saturate", "type": "string | number", "description": "filterのsaturate値。" }
|
|
294
|
+
{ "name": "saturate", "type": "string | number", "description": "filterのsaturate値。" },
|
|
295
|
+
{ "name": "dropShadow", "type": "string | number", "description": "filterのdrop-shadow値。" },
|
|
296
|
+
{ "name": "hueRotate", "type": "string | number", "description": "filterのhue-rotate値。" },
|
|
297
|
+
{ "name": "invert", "type": "string | number", "description": "filterのinvert値。" },
|
|
298
|
+
{ "name": "sepia", "type": "string | number", "description": "filterのsepia値。" }
|
|
296
299
|
],
|
|
297
300
|
"usage": "<Media src='/image.jpg' alt='Photo' />"
|
|
298
301
|
},
|
|
@@ -321,7 +324,20 @@
|
|
|
321
324
|
"description": "デコレーターのサイズ(横幅・高さ)を一括指定。wに渡され、ar='1/1'が自動付与される。"
|
|
322
325
|
},
|
|
323
326
|
{ "name": "clipPath", "type": "string", "description": "style.clipPathへ渡す。" },
|
|
324
|
-
{ "name": "boxSizing", "type": "string", "description": "style.boxSizingへ渡す。" }
|
|
327
|
+
{ "name": "boxSizing", "type": "string", "description": "style.boxSizingへ渡す。" },
|
|
328
|
+
{ "name": "translate", "type": "string", "description": "style.translateへ渡す。CSS translate プロパティ。" },
|
|
329
|
+
{ "name": "rotate", "type": "string", "description": "style.rotateへ渡す。CSS rotate プロパティ。" },
|
|
330
|
+
{ "name": "scale", "type": "string", "description": "style.scaleへ渡す。CSS scale プロパティ。" },
|
|
331
|
+
{ "name": "transform", "type": "string", "description": "style.transformへ渡す。CSS transform プロパティ。" },
|
|
332
|
+
{ "name": "blur", "type": "string | number", "description": "filterのblur値。他のフィルタープロパティとまとめてstyle.filterに出力。" },
|
|
333
|
+
{ "name": "contrast", "type": "string | number", "description": "filterのcontrast値。" },
|
|
334
|
+
{ "name": "brightness", "type": "string | number", "description": "filterのbrightness値。" },
|
|
335
|
+
{ "name": "grayscale", "type": "string | number", "description": "filterのgrayscale値。" },
|
|
336
|
+
{ "name": "saturate", "type": "string | number", "description": "filterのsaturate値。" },
|
|
337
|
+
{ "name": "dropShadow", "type": "string | number", "description": "filterのdrop-shadow値。" },
|
|
338
|
+
{ "name": "hueRotate", "type": "string | number", "description": "filterのhue-rotate値。" },
|
|
339
|
+
{ "name": "invert", "type": "string | number", "description": "filterのinvert値。" },
|
|
340
|
+
{ "name": "sepia", "type": "string | number", "description": "filterのsepia値。" }
|
|
325
341
|
],
|
|
326
342
|
"usage": "<Decorator size='1.25em' pos='abs' t='0' l='0' bd-x-s bd-y-s />"
|
|
327
343
|
},
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"title": "インストール",
|
|
14
14
|
"description": "Lism CSS のインストール方法と基本的な使い方を解説します。",
|
|
15
15
|
"category": "guide",
|
|
16
|
-
"headings": ["CSS設計のみを導入したい場合", "専用のコンポーネントを使用したい場合"],
|
|
17
|
-
"keywords": ["install", "インストール", "CDN", "npm", "setup", "セットアップ", "導入"],
|
|
18
|
-
"snippet": "CSSを読み込むだけでも導入でき、CDN経由でも利用可能。npm パッケージとしてインストールし、lism-css/react や lism-css/astro からコンポーネントをインポートして使用。"
|
|
16
|
+
"headings": ["CSS設計のみを導入したい場合", "専用のコンポーネントを使用したい場合", "AIツール連携 (MCP)"],
|
|
17
|
+
"keywords": ["install", "インストール", "CDN", "npm", "setup", "セットアップ", "導入", "MCP", "AI"],
|
|
18
|
+
"snippet": "CSSを読み込むだけでも導入でき、CDN経由でも利用可能。npm パッケージとしてインストールし、lism-css/react や lism-css/astro からコンポーネントをインポートして使用。AIコーディングツール向けのMCPサーバーも提供。"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"sourcePath": "css-methodology.mdx",
|
|
22
22
|
"title": "CSS設計",
|
|
23
|
-
"description": "Lism CSS
|
|
23
|
+
"description": "Lism CSS の階層構造やクラス設計の方針など、CSS設計の全体像について解説します。",
|
|
24
24
|
"category": "guide",
|
|
25
25
|
"headings": ["Lism CSSの階層構造", "デザイントークン", "CSSのクラス設計", "命名規則について", "単語の省略について"],
|
|
26
26
|
"keywords": [
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"sourcePath": "tokens.mdx",
|
|
45
|
-
"title": "
|
|
46
|
-
"description": "Lism CSS
|
|
45
|
+
"title": "Design Tokens",
|
|
46
|
+
"description": "Lism CSS で定義されているカラー、スペーシング、シャドウなどのデザイントークン一覧を紹介します。",
|
|
47
47
|
"category": "guide",
|
|
48
48
|
"headings": ["COLOR", "RADIUS", "SHADOW", "OPACITY", "SIZE"],
|
|
49
49
|
"keywords": ["token", "トークン", "design token", "カラー", "スペーシング", "spacing", "color", "font-size", "shadow", "radius"],
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
{
|
|
53
53
|
"sourcePath": "prop-class.mdx",
|
|
54
54
|
"title": "Prop Class",
|
|
55
|
-
"description": "
|
|
55
|
+
"description": "CSSプロパティに紐づいた Prop Class の一覧とその使い方について解説します。",
|
|
56
56
|
"category": "props",
|
|
57
57
|
"headings": [
|
|
58
58
|
"このページの表の見方",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"sourcePath": "responsive.mdx",
|
|
74
|
-
"title": "
|
|
75
|
-
"description": "Lism CSS
|
|
74
|
+
"title": "Prop Responsive",
|
|
75
|
+
"description": "Lism CSS におけるブレイクポイントとレスポンシブ対応の仕組みについて解説します。",
|
|
76
76
|
"category": "guide",
|
|
77
77
|
"headings": ["レスポンシブ対応", "コンテナクエリ・メディアクエリ", "ブレイクポイント"],
|
|
78
78
|
"keywords": ["responsive", "レスポンシブ", "ブレークポイント", "breakpoint", "コンテナクエリ", "container query", "sm", "md"],
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"sourcePath": "typography.mdx",
|
|
83
|
-
"title": "
|
|
84
|
-
"description": "Lism CSS
|
|
83
|
+
"title": "Typography & Spacing",
|
|
84
|
+
"description": "Lism CSS で使用するフォントやスペーシングに関するデザイントークンについて解説します。",
|
|
85
85
|
"category": "guide",
|
|
86
86
|
"headings": ["Typography", "SPACE: 余白のスケーリング"],
|
|
87
87
|
"keywords": ["typography", "タイポグラフィ", "font", "文字", "テキスト", "heading", "spacing", "余白", "スペーシング", "フィボナッチ"],
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"sourcePath": "reset-css.mdx",
|
|
92
|
-
"title": "
|
|
93
|
-
"description": "Lism CSS
|
|
92
|
+
"title": "Reset CSS",
|
|
93
|
+
"description": "Lism CSS が提供する軽量な Reset CSS の内容と読み込み方法について解説します。",
|
|
94
94
|
"category": "guide",
|
|
95
95
|
"headings": [],
|
|
96
96
|
"keywords": ["reset", "リセット", "normalize", "reset css"],
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"sourcePath": "customize.mdx",
|
|
101
|
-
"title": "
|
|
102
|
-
"description": "Lism CSS
|
|
101
|
+
"title": "Customize",
|
|
102
|
+
"description": "SCSS変数の上書きや@layerの切り替えなど、Lism CSS をカスタマイズする方法について解説します。",
|
|
103
103
|
"category": "guide",
|
|
104
104
|
"headings": ["@layerをオフにする", "SCSS でのカスタマイズ", "lism.config.js でのカスタマイズ"],
|
|
105
105
|
"keywords": ["customize", "カスタマイズ", "設定", "config", "テーマ", "theme", "SCSS"],
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"sourcePath": "utility-class.mdx",
|
|
110
|
-
"title": "
|
|
111
|
-
"description": "Lism CSS
|
|
110
|
+
"title": "Utilitiy Class",
|
|
111
|
+
"description": "スタイルや装飾をまとめて適用できる Lism CSS のユーティリティクラスについて解説します。",
|
|
112
112
|
"category": "guide",
|
|
113
113
|
"headings": ["u--cbox", "u--trim & u--trimChildren", "u--expandedLink", "u--srOnly", "u--collapseGrid", "u--snap", "u--clipText", "Opt-in"],
|
|
114
114
|
"keywords": [
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
{
|
|
130
130
|
"sourcePath": "set-class.mdx",
|
|
131
131
|
"title": "Set Class",
|
|
132
|
-
"description": "
|
|
132
|
+
"description": "ベーススタイルの上書きやトークン再定義に使用する set-- 形式のユーティリティクラスについて解説します。",
|
|
133
133
|
"category": "guide",
|
|
134
134
|
"headings": [],
|
|
135
135
|
"keywords": [
|
|
@@ -148,8 +148,8 @@
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"sourcePath": "module-class.mdx",
|
|
151
|
-
"title": "
|
|
152
|
-
"description": "Lism CSS
|
|
151
|
+
"title": "Module Class",
|
|
152
|
+
"description": "Lism CSS のモジュールクラス(is--, l--, a--, c--)の分類と使い方について解説します。",
|
|
153
153
|
"category": "guide",
|
|
154
154
|
"headings": ["State Module", "Layout Modules", "Atomic Modules", "Custom Modules"],
|
|
155
155
|
"keywords": ["module", "モジュール", "layout", "レイアウト", "class", "BEM", "is--vertical"],
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"sourcePath": "base-styles.mdx",
|
|
160
|
-
"title": "
|
|
161
|
-
"description": "
|
|
160
|
+
"title": "Base Styles",
|
|
161
|
+
"description": "@lism-base レイヤーで定義される Reset CSS やHTML要素のベーススタイルについて解説します。",
|
|
162
162
|
"category": "guide",
|
|
163
163
|
"headings": ["Reset CSS", "Base styles"],
|
|
164
164
|
"keywords": ["html", "base", "ベース", "スタイル", "要素", "reset"],
|
|
@@ -166,10 +166,12 @@
|
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"sourcePath": "changelog.mdx",
|
|
169
|
-
"title": "
|
|
170
|
-
"description": "Lism CSS
|
|
169
|
+
"title": "Changelog",
|
|
170
|
+
"description": "Lism CSS の各バージョンにおける変更履歴をまとめています。",
|
|
171
171
|
"category": "guide",
|
|
172
172
|
"headings": [
|
|
173
|
+
"v.0.9.2 (2026.03.18)",
|
|
174
|
+
"v.0.9.1 (2026.03.18)",
|
|
173
175
|
"v.0.9.0 (2026.03.17)",
|
|
174
176
|
"v.0.8.3",
|
|
175
177
|
"v.0.8.2",
|
|
@@ -187,17 +189,30 @@
|
|
|
187
189
|
},
|
|
188
190
|
{
|
|
189
191
|
"sourcePath": "props/bd.mdx",
|
|
190
|
-
"title": "
|
|
191
|
-
"description": "
|
|
192
|
+
"title": "-bd",
|
|
193
|
+
"description": "ボーダーを指定する -bd プロパティクラスと関連するCSS変数の使い方について解説します。",
|
|
192
194
|
"category": "props",
|
|
193
195
|
"headings": ["方向指定", "bdwをブレイクポイントで切り替える"],
|
|
194
|
-
"keywords": [
|
|
196
|
+
"keywords": [
|
|
197
|
+
"border",
|
|
198
|
+
"ボーダー",
|
|
199
|
+
"bd",
|
|
200
|
+
"bdc",
|
|
201
|
+
"bdw",
|
|
202
|
+
"bds",
|
|
203
|
+
"bdrs",
|
|
204
|
+
"枠線",
|
|
205
|
+
"border-color",
|
|
206
|
+
"border-width",
|
|
207
|
+
"border-style",
|
|
208
|
+
"border-radius"
|
|
209
|
+
],
|
|
195
210
|
"snippet": "ボーダー関連のProp。bd, bdc, bdw, bds, bdrs を使ったボーダースタイルの設定方法。方向指定やブレイクポイントでの切り替えも解説。"
|
|
196
211
|
},
|
|
197
212
|
{
|
|
198
213
|
"sourcePath": "props/hov.mdx",
|
|
199
|
-
"title": "
|
|
200
|
-
"description": "
|
|
214
|
+
"title": "-hov",
|
|
215
|
+
"description": "hover時の挙動をコントロールする -hov プロパティクラスの使い方について解説します。",
|
|
201
216
|
"category": "props",
|
|
202
217
|
"headings": ["基本的な使い方", ".set--hov と特殊変数"],
|
|
203
218
|
"keywords": ["hover", "ホバー", "hov", "インタラクション", "animation", "set--hov", "set--transition", "transition"],
|
|
@@ -205,8 +220,8 @@
|
|
|
205
220
|
},
|
|
206
221
|
{
|
|
207
222
|
"sourcePath": "props/max-sz.mdx",
|
|
208
|
-
"title": "サイズ制御クラス
|
|
209
|
-
"description": "
|
|
223
|
+
"title": "サイズ制御クラス -max-sz:",
|
|
224
|
+
"description": "コンテンツの最大幅を制御する -max-sz ユーティリティクラスの使い方について解説します。",
|
|
210
225
|
"category": "props",
|
|
211
226
|
"headings": ["-max-sz:full, -max-sz:container", "DEMOページ"],
|
|
212
227
|
"keywords": ["max-sz", "max-inline-size", "最大サイズ", "幅", "full", "container"],
|
|
@@ -223,7 +238,7 @@
|
|
|
223
238
|
},
|
|
224
239
|
{
|
|
225
240
|
"sourcePath": "core-components/HTML.mdx",
|
|
226
|
-
"title": "HTML",
|
|
241
|
+
"title": "HTML.xxx",
|
|
227
242
|
"description": "HTMLの主要なタグに<Lism>と同じプロパティを指定できるようにするためのコンポーネントです。",
|
|
228
243
|
"category": "core-components",
|
|
229
244
|
"headings": [],
|
|
@@ -242,7 +257,7 @@
|
|
|
242
257
|
{
|
|
243
258
|
"sourcePath": "modules/l--box.mdx",
|
|
244
259
|
"title": "Box / l--box",
|
|
245
|
-
"description": "Box
|
|
260
|
+
"description": "Lism CSS の Box モジュールについて解説します。コンテンツをグループ化するシンプルなレイアウトモジュールです。",
|
|
246
261
|
"category": "modules",
|
|
247
262
|
"headings": ["対応コンポーネント", "Usage"],
|
|
248
263
|
"keywords": ["Box", "ボックス", "layout", "レイアウト", "l--box"],
|
|
@@ -251,79 +266,90 @@
|
|
|
251
266
|
{
|
|
252
267
|
"sourcePath": "modules/l--flex.mdx",
|
|
253
268
|
"title": "Flex / l--flex",
|
|
254
|
-
"description": "Flex
|
|
269
|
+
"description": "Lism CSS の Flex モジュールについて解説します。コンテンツを Flexbox で配置するためのレイアウトモジュールです。",
|
|
255
270
|
"category": "modules",
|
|
256
271
|
"headings": ["CSS", "Import", "Props", "Usage"],
|
|
257
|
-
"keywords": ["Flex", "flexbox", "フレックス", "layout", "l--flex", "横並び"],
|
|
272
|
+
"keywords": ["Flex", "flexbox", "フレックス", "layout", "l--flex", "横並び", "display", "display: flex", "flex-direction", "flex-wrap"],
|
|
258
273
|
"snippet": "Flexboxレイアウトを構成。display: flex が適用される。g, ai, jc, fxw, fxd 等で配置を制御。"
|
|
259
274
|
},
|
|
260
275
|
{
|
|
261
276
|
"sourcePath": "modules/l--stack.mdx",
|
|
262
277
|
"title": "Stack / l--stack",
|
|
263
|
-
"description": "Stack
|
|
278
|
+
"description": "Lism CSS の Stack モジュールについて解説します。複数の要素を Flex で縦方向に配置するレイアウトモジュールです。",
|
|
264
279
|
"category": "modules",
|
|
265
280
|
"headings": ["CSS", "Import", "Props", "Usage"],
|
|
266
|
-
"keywords": ["Stack", "スタック", "縦並び", "vertical", "l--stack"],
|
|
281
|
+
"keywords": ["Stack", "スタック", "縦並び", "vertical", "l--stack", "display", "display: flex", "flex-direction", "flex-direction: column"],
|
|
267
282
|
"snippet": "縦方向に要素を積み重ねるFlexレイアウト。flex-direction: column のFlex。ai='center'で内在的な中央寄せも可能。"
|
|
268
283
|
},
|
|
269
284
|
{
|
|
270
285
|
"sourcePath": "modules/l--grid.mdx",
|
|
271
286
|
"title": "Grid / l--grid",
|
|
272
|
-
"description": "Grid
|
|
287
|
+
"description": "Lism CSS の Grid モジュールについて解説します。コンテンツを CSS Grid で配置するためのレイアウトモジュールです。",
|
|
273
288
|
"category": "modules",
|
|
274
289
|
"headings": ["Import", "Props", "Usage"],
|
|
275
|
-
"keywords": [
|
|
290
|
+
"keywords": [
|
|
291
|
+
"Grid",
|
|
292
|
+
"グリッド",
|
|
293
|
+
"layout",
|
|
294
|
+
"l--grid",
|
|
295
|
+
"CSS Grid",
|
|
296
|
+
"subgrid",
|
|
297
|
+
"display",
|
|
298
|
+
"display: grid",
|
|
299
|
+
"grid-template-columns",
|
|
300
|
+
"grid-template-rows"
|
|
301
|
+
],
|
|
276
302
|
"snippet": "CSS Gridレイアウトを構成。gtc, gtr, gta, cols, rows 等で列・行を制御。subgridや-gt:repeatもサポート。"
|
|
277
303
|
},
|
|
278
304
|
{
|
|
279
305
|
"sourcePath": "modules/l--center.mdx",
|
|
280
306
|
"title": "Center / l--center",
|
|
281
|
-
"description": "Center
|
|
307
|
+
"description": "Lism CSS の Center モジュールについて解説します。要素を上下左右中央揃えで配置するためのレイアウトモジュールです。",
|
|
282
308
|
"category": "modules",
|
|
283
309
|
"headings": ["CSS", "主なProps", "Import", "Usage"],
|
|
284
|
-
"keywords": ["Center", "中央揃え", "center", "layout", "l--center"],
|
|
310
|
+
"keywords": ["Center", "中央揃え", "center", "layout", "l--center", "display", "display: grid", "place-items", "place-items: center"],
|
|
285
311
|
"snippet": "子要素を中央揃えにするレイアウト。place-items: center の Grid。高さがあれば上下左右中央揃え。"
|
|
286
312
|
},
|
|
287
313
|
{
|
|
288
314
|
"sourcePath": "modules/l--cluster.mdx",
|
|
289
315
|
"title": "Cluster / l--cluster",
|
|
290
|
-
"description": "Cluster
|
|
316
|
+
"description": "Lism CSS の Cluster モジュールについて解説します。要素を横方向に並べて自動で折り返すレイアウトモジュールです。",
|
|
291
317
|
"category": "modules",
|
|
292
318
|
"headings": ["CSS", "Import", "Usage"],
|
|
293
|
-
"keywords": ["Cluster", "クラスター", "横並び", "wrap", "l--cluster", "タグ"],
|
|
319
|
+
"keywords": ["Cluster", "クラスター", "横並び", "wrap", "l--cluster", "タグ", "display", "display: flex", "flex-wrap"],
|
|
294
320
|
"snippet": "横方向に要素を並べ、自動的に折り返すFlexレイアウト。タグやバッジの並びに適している。"
|
|
295
321
|
},
|
|
296
322
|
{
|
|
297
323
|
"sourcePath": "modules/l--columns.mdx",
|
|
298
324
|
"title": "Columns / l--columns",
|
|
299
|
-
"description": "Columns
|
|
325
|
+
"description": "Lism CSS の Columns モジュールについて解説します。ブレイクポイントごとに列数を指定できるカラムレイアウトです。",
|
|
300
326
|
"category": "modules",
|
|
301
327
|
"headings": ["Props", "CSS", "Import", "Usage"],
|
|
302
|
-
"keywords": ["Columns", "カラム", "列", "multi-column", "l--columns", "subgrid"],
|
|
328
|
+
"keywords": ["Columns", "カラム", "列", "multi-column", "l--columns", "subgrid", "display", "display: grid", "grid-template-columns"],
|
|
303
329
|
"snippet": "均等幅のカラムレイアウト。cols で列数を指定する Grid。レスポンシブ対応可能。subgridも活用可能。"
|
|
304
330
|
},
|
|
305
331
|
{
|
|
306
332
|
"sourcePath": "modules/l--flow.mdx",
|
|
307
333
|
"title": "Flow / l--flow",
|
|
308
|
-
"description": "Flow
|
|
334
|
+
"description": "Lism CSS の Flow モジュールについて解説します。子要素間の余白を自動管理する flow-root レイアウトモジュールです。",
|
|
309
335
|
"category": "modules",
|
|
310
336
|
"headings": ["対応コンポーネント", "Usage", "l--flow を入れ子にする時の注意点"],
|
|
311
|
-
"keywords": ["Flow", "フロー", "コンテンツ", "記事", "l--flow", "本文", "is--skipFlow"],
|
|
337
|
+
"keywords": ["Flow", "フロー", "コンテンツ", "記事", "l--flow", "本文", "is--skipFlow", "display: flow-root"],
|
|
312
338
|
"snippet": "コンテンツフロー用のレイアウト。display: flow-root で子要素間の余白を管理。見出しタグは余白が2倍。is--skipFlowで余白打ち消しも可能。"
|
|
313
339
|
},
|
|
314
340
|
{
|
|
315
341
|
"sourcePath": "modules/l--fluidcols.mdx",
|
|
316
342
|
"title": "FluidCols / l--fluidCols",
|
|
317
|
-
"description": "FluidCols
|
|
343
|
+
"description": "Lism CSS の FluidCols モジュールについて解説します。カラム幅に応じて自動で折り返すブレイクポイント非依存の段組みレイアウトです。",
|
|
318
344
|
"category": "modules",
|
|
319
345
|
"headings": ["Props", "CSS", "Import", "Usage"],
|
|
320
|
-
"keywords": ["FluidCols", "流動カラム", "auto-fill", "fluid", "l--fluidCols"],
|
|
346
|
+
"keywords": ["FluidCols", "流動カラム", "auto-fill", "fluid", "l--fluidCols", "display", "display: grid"],
|
|
321
347
|
"snippet": "子要素が最小幅に達すると自動的に折り返すグリッドレイアウト。メディアクエリに依存しない。cols で最小幅を指定。"
|
|
322
348
|
},
|
|
323
349
|
{
|
|
324
350
|
"sourcePath": "modules/l--frame.mdx",
|
|
325
351
|
"title": "Frame / l--frame",
|
|
326
|
-
"description": "Frame
|
|
352
|
+
"description": "Lism CSS の Frame モジュールについて解説します。直下のメディア要素を自身のサイズに合わせて表示するレイアウトモジュールです。",
|
|
327
353
|
"category": "modules",
|
|
328
354
|
"headings": ["対応コンポーネント", "Usage"],
|
|
329
355
|
"keywords": ["Frame", "フレーム", "aspect-ratio", "アスペクト比", "l--frame", "画像", "video", "iframe"],
|
|
@@ -332,7 +358,7 @@
|
|
|
332
358
|
{
|
|
333
359
|
"sourcePath": "modules/l--switchcols.mdx",
|
|
334
360
|
"title": "SwitchCols / l--switchCols",
|
|
335
|
-
"description": "SwitchCols
|
|
361
|
+
"description": "Lism CSS の SwitchCols モジュールについて解説します。メディアクエリ不要で複数列と1列を自動切り替えするレイアウトです。",
|
|
336
362
|
"category": "modules",
|
|
337
363
|
"headings": ["Props", "CSS", "Import", "Usage"],
|
|
338
364
|
"keywords": ["SwitchCols", "切り替え", "switch", "カラム", "l--switchCols"],
|
|
@@ -341,7 +367,7 @@
|
|
|
341
367
|
{
|
|
342
368
|
"sourcePath": "modules/l--sidemain.mdx",
|
|
343
369
|
"title": "SideMain / l--sideMain",
|
|
344
|
-
"description": "SideMain
|
|
370
|
+
"description": "Lism CSS の SideMain モジュールについて解説します。メディアクエリ不要でサイドとメインの2カラムレイアウトを構築します。",
|
|
345
371
|
"category": "modules",
|
|
346
372
|
"headings": ["基本構造", "CSS", "Import", "Props", "Usage", "Gridを使って似たレイアウトを構成する例"],
|
|
347
373
|
"keywords": ["SideMain", "サイドバー", "sidebar", "メイン", "l--sideMain", "2カラム", "is--side"],
|
|
@@ -350,7 +376,7 @@
|
|
|
350
376
|
{
|
|
351
377
|
"sourcePath": "modules/is--container.mdx",
|
|
352
378
|
"title": "Container / is--container",
|
|
353
|
-
"description": "Container
|
|
379
|
+
"description": "Lism CSS の Container モジュールについて解説します。container-type を設定しコンテナクエリを有効にするコンポーネントです。",
|
|
354
380
|
"category": "modules",
|
|
355
381
|
"headings": ["Props", "Import", "Usage"],
|
|
356
382
|
"keywords": ["Container", "コンテナ", "container query", "is--container", "isContainer"],
|
|
@@ -359,16 +385,16 @@
|
|
|
359
385
|
{
|
|
360
386
|
"sourcePath": "modules/is--layer.mdx",
|
|
361
387
|
"title": "Layer / is--layer",
|
|
362
|
-
"description": "Layer
|
|
388
|
+
"description": "Lism CSS の Layer モジュールについて解説します。親要素に重ねて配置するオーバーレイ用のコンポーネントです。",
|
|
363
389
|
"category": "modules",
|
|
364
390
|
"headings": ["Props", "Import", "Usage"],
|
|
365
|
-
"keywords": ["Layer", "レイヤー", "overlay", "オーバーレイ", "is--layer", "absolute", "backdrop-filter", "blur"],
|
|
391
|
+
"keywords": ["Layer", "レイヤー", "overlay", "オーバーレイ", "is--layer", "absolute", "backdrop-filter", "blur", "position: absolute"],
|
|
366
392
|
"snippet": "親要素に対して絶対配置で重なるレイヤー要素。オーバーレイや背景装飾に使用。blur等のbackdrop-filterプロパティも個別に指定可能。"
|
|
367
393
|
},
|
|
368
394
|
{
|
|
369
395
|
"sourcePath": "modules/is--linkBox.mdx",
|
|
370
396
|
"title": "LinkBox / is--linkBox",
|
|
371
|
-
"description": "LinkBox
|
|
397
|
+
"description": "Lism CSS の LinkBox モジュールについて解説します。ボックス全体をクリック可能なリンクにするコンポーネントです。",
|
|
372
398
|
"category": "modules",
|
|
373
399
|
"headings": ["Import", "Props", "Usage", "Opt-in"],
|
|
374
400
|
"keywords": ["LinkBox", "リンク", "clickable", "カード", "is--linkBox", "u--expandedLink"],
|
|
@@ -377,7 +403,7 @@
|
|
|
377
403
|
{
|
|
378
404
|
"sourcePath": "modules/is--wrapper.mdx",
|
|
379
405
|
"title": "Wrapper / is--wrapper",
|
|
380
|
-
"description": "Wrapper
|
|
406
|
+
"description": "Lism CSS の Wrapper モジュールについて解説します。コンテンツ幅を制御する is--wrapper クラスを出力するコンポーネントです。",
|
|
381
407
|
"category": "modules",
|
|
382
408
|
"headings": ["Props", "Import", "Usage"],
|
|
383
409
|
"keywords": ["Wrapper", "ラッパー", "コンテンツ幅", "max-width", "is--wrapper", "contentSize"],
|
|
@@ -386,7 +412,7 @@
|
|
|
386
412
|
{
|
|
387
413
|
"sourcePath": "modules/a--icon.mdx",
|
|
388
414
|
"title": "Icon / a--icon",
|
|
389
|
-
"description": "Icon
|
|
415
|
+
"description": "Lism CSS の Icon モジュールについて解説します。SVG アイコンを出力するためのコンポーネントです。",
|
|
390
416
|
"category": "modules",
|
|
391
417
|
"headings": ["構造", "CSS", "Props", "Import", "Usage"],
|
|
392
418
|
"keywords": ["Icon", "アイコン", "SVG", "a--icon", "phosphor-icons"],
|
|
@@ -395,16 +421,16 @@
|
|
|
395
421
|
{
|
|
396
422
|
"sourcePath": "modules/a--divider.mdx",
|
|
397
423
|
"title": "Divider / a--divider",
|
|
398
|
-
"description": "Divider
|
|
424
|
+
"description": "Lism CSS の Divider モジュールについて解説します。コンテンツ間に区切り線を描画するコンポーネントです。",
|
|
399
425
|
"category": "modules",
|
|
400
426
|
"headings": ["構造", "CSS", "Props", "Import", "Usage"],
|
|
401
|
-
"keywords": ["Divider", "区切り線", "hr", "a--divider", "セパレーター"],
|
|
427
|
+
"keywords": ["Divider", "区切り線", "hr", "a--divider", "セパレーター", "border"],
|
|
402
428
|
"snippet": "区切り線を表示するコンポーネント。水平・垂直の区切りを表現。bds, bdw, bdc でスタイルをカスタマイズ可能。"
|
|
403
429
|
},
|
|
404
430
|
{
|
|
405
431
|
"sourcePath": "modules/a--media.mdx",
|
|
406
432
|
"title": "Media / a--media",
|
|
407
|
-
"description": "Media
|
|
433
|
+
"description": "Lism CSS の Media モジュールについて解説します。画像や動画などのメディア要素に適用する汎用クラスとコンポーネントです。",
|
|
408
434
|
"category": "modules",
|
|
409
435
|
"headings": ["Props", "Import"],
|
|
410
436
|
"keywords": ["Media", "メディア", "img", "video", "iframe", "a--media", "画像", "filter"],
|
|
@@ -413,7 +439,7 @@
|
|
|
413
439
|
{
|
|
414
440
|
"sourcePath": "modules/a--spacer.mdx",
|
|
415
441
|
"title": "Spacer / a--spacer",
|
|
416
|
-
"description": "Spacer
|
|
442
|
+
"description": "Lism CSS の Spacer モジュールについて解説します。要素間にスペースを確保するための空要素を出力します。",
|
|
417
443
|
"category": "modules",
|
|
418
444
|
"headings": ["構造", "Props", "Import", "Usage"],
|
|
419
445
|
"keywords": ["Spacer", "スペーサー", "余白", "空白", "a--spacer"],
|
|
@@ -422,7 +448,7 @@
|
|
|
422
448
|
{
|
|
423
449
|
"sourcePath": "modules/a--decorator.mdx",
|
|
424
450
|
"title": "Decorator / a--decorator",
|
|
425
|
-
"description": "Decorator
|
|
451
|
+
"description": "Lism CSS の Decorator モジュールについて解説します。装飾用の空要素を出力するコンポーネントです。",
|
|
426
452
|
"category": "modules",
|
|
427
453
|
"headings": ["構造", "Props", "Import", "Usage"],
|
|
428
454
|
"keywords": ["Decorator", "デコレーター", "装飾", "a--decorator"],
|
|
@@ -440,7 +466,7 @@
|
|
|
440
466
|
{
|
|
441
467
|
"sourcePath": "ui/Modal.mdx",
|
|
442
468
|
"title": "Modal",
|
|
443
|
-
"description": "Modal
|
|
469
|
+
"description": "@lism-css/ui で提供する Modal コンポーネントについて解説します。",
|
|
444
470
|
"category": "ui",
|
|
445
471
|
"headings": ["How to use", "Props", "Usage"],
|
|
446
472
|
"keywords": ["Modal", "モーダル", "dialog", "ダイアログ", "ポップアップ"],
|
|
@@ -449,7 +475,7 @@
|
|
|
449
475
|
{
|
|
450
476
|
"sourcePath": "ui/Tabs.mdx",
|
|
451
477
|
"title": "Tabs",
|
|
452
|
-
"description": "Tabs
|
|
478
|
+
"description": "@lism-css/ui で提供する Tabs コンポーネントについて解説します。",
|
|
453
479
|
"category": "ui",
|
|
454
480
|
"headings": ["基本構造", "CSS", "JavaScript", "Import", "Props", "Usage", "スタイルバリエーションの作成例", "Opt-in"],
|
|
455
481
|
"keywords": ["Tabs", "タブ", "切り替え", "panel"],
|
|
@@ -512,7 +538,7 @@
|
|
|
512
538
|
{
|
|
513
539
|
"sourcePath": "ui/Chat.mdx",
|
|
514
540
|
"title": "Chat",
|
|
515
|
-
"description": "Chat
|
|
541
|
+
"description": "@lism-css/ui で提供する Chat コンポーネントについて解説します。",
|
|
516
542
|
"category": "ui",
|
|
517
543
|
"headings": ["How to use", "Examples", "Opt-in"],
|
|
518
544
|
"keywords": ["Chat", "チャット", "吹き出し", "会話", "balloon"],
|
|
@@ -521,7 +547,7 @@
|
|
|
521
547
|
{
|
|
522
548
|
"sourcePath": "ui/NavMenu.mdx",
|
|
523
549
|
"title": "NavMenu",
|
|
524
|
-
"description": "NavMenu
|
|
550
|
+
"description": "@lism-css/ui で提供する NavMenu コンポーネントについて解説します。",
|
|
525
551
|
"category": "ui",
|
|
526
552
|
"headings": ["How to use", "Examples"],
|
|
527
553
|
"keywords": ["NavMenu", "ナビ", "メニュー", "navigation", "リンク"],
|
|
@@ -530,7 +556,7 @@
|
|
|
530
556
|
{
|
|
531
557
|
"sourcePath": "ui/ShapeDivider.mdx",
|
|
532
558
|
"title": "ShapeDivider",
|
|
533
|
-
"description": "ShapeDivider
|
|
559
|
+
"description": "@lism-css/ui で提供する ShapeDivider コンポーネントについて解説します。",
|
|
534
560
|
"category": "ui",
|
|
535
561
|
"headings": ["How to use", "Examples"],
|
|
536
562
|
"keywords": ["ShapeDivider", "波", "wave", "区切り", "SVG", "セクション"],
|
|
@@ -539,7 +565,7 @@
|
|
|
539
565
|
{
|
|
540
566
|
"sourcePath": "ui/examples/Card.mdx",
|
|
541
567
|
"title": "Card",
|
|
542
|
-
"description": "
|
|
568
|
+
"description": "Lism CSS で実装するカード型コンテンツレイアウトの実装例です。",
|
|
543
569
|
"category": "ui",
|
|
544
570
|
"headings": ["Examples"],
|
|
545
571
|
"keywords": ["Card", "カード", "example", "実装例"],
|
|
@@ -584,7 +610,7 @@
|
|
|
584
610
|
{
|
|
585
611
|
"sourcePath": "ui/examples/Timeline.mdx",
|
|
586
612
|
"title": "Timeline",
|
|
587
|
-
"description": "
|
|
613
|
+
"description": "Lism CSS で実装するタイムラインレイアウトの実装例です。",
|
|
588
614
|
"category": "ui",
|
|
589
615
|
"headings": ["Create Component", "Usage"],
|
|
590
616
|
"keywords": ["Timeline", "タイムライン", "年表", "example"],
|
|
@@ -611,10 +637,55 @@
|
|
|
611
637
|
{
|
|
612
638
|
"sourcePath": "ui/examples/Reel.mdx",
|
|
613
639
|
"title": "Reel",
|
|
614
|
-
"description": "
|
|
640
|
+
"description": "Lism CSS で実装する、コンテンツを横スクロールで表示するリールコンポーネントの実装例です。",
|
|
615
641
|
"category": "ui",
|
|
616
642
|
"headings": ["Flex で実装する例", "Gridで実装する例", "ナビゲーションをつける", "大きい画面サイズでReelを解除する", "縦向きのリール"],
|
|
617
643
|
"keywords": ["Reel", "横スクロール", "scroll", "carousel", "example"],
|
|
618
644
|
"snippet": "横スクロール(リール)レイアウトの実装例。Flex/Grid両方の実装パターンを紹介。"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"sourcePath": "ui/examples/BalloonBox.mdx",
|
|
648
|
+
"title": "BalloonBox",
|
|
649
|
+
"description": "Lism CSS で実装するふきだし風装飾ボックスの実装例です。",
|
|
650
|
+
"category": "ui",
|
|
651
|
+
"headings": ["Import", "Props", "Usage"],
|
|
652
|
+
"keywords": ["BalloonBox", "吹き出し", "ふきだし", "balloon", "装飾", "ボックス", "example"],
|
|
653
|
+
"snippet": "ふきだし風装飾ボックスの作成例。variant でふきだしの方向、keycolor で色を指定。"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"sourcePath": "ui/examples/Decorations.mdx",
|
|
657
|
+
"title": "Decorations",
|
|
658
|
+
"description": "Lism CSS で実装する装飾ボックスパターンの実装例です。",
|
|
659
|
+
"category": "ui",
|
|
660
|
+
"headings": ["Examples"],
|
|
661
|
+
"keywords": ["Decorations", "装飾", "デコレーション", "ボックス", "example"],
|
|
662
|
+
"snippet": "装飾ボックスの実装例。Call, Kakko, Sticky など様々な装飾パターンを紹介。"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"sourcePath": "ui/examples/List.mdx",
|
|
666
|
+
"title": "List",
|
|
667
|
+
"description": "Lism CSS で実装する、アイコン付き装飾リストの実装例です。",
|
|
668
|
+
"category": "ui",
|
|
669
|
+
"headings": ["Create Component", "Usage"],
|
|
670
|
+
"keywords": ["List", "リスト", "アイコン", "装飾リスト", "example"],
|
|
671
|
+
"snippet": "アイコンを使った装飾リストの作成例。List(.c--list)コンポーネントの実装と使い方を紹介。"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"sourcePath": "ui/examples/Others.mdx",
|
|
675
|
+
"title": "Others",
|
|
676
|
+
"description": "Lism CSS で実装する、ステップナビゲーションやメニュー表などその他のUIパターンの実装例です。",
|
|
677
|
+
"category": "ui",
|
|
678
|
+
"headings": ["独自ユーティリティクラスの作成例"],
|
|
679
|
+
"keywords": ["Others", "その他", "ステップ", "ナビゲーション", "メニュー", "example"],
|
|
680
|
+
"snippet": "ステップナビゲーションやメニュー表など、その他のUIパターンの実装例。"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"sourcePath": "ui/examples/Table.mdx",
|
|
684
|
+
"title": "Table",
|
|
685
|
+
"description": "Lism CSS で実装する、行・列の固定表示に対応した汎用テーブルレイアウトの実装例です。",
|
|
686
|
+
"category": "ui",
|
|
687
|
+
"headings": ["Create Component", "Usage"],
|
|
688
|
+
"keywords": ["Table", "テーブル", "表", "固定", "スクロール", "example"],
|
|
689
|
+
"snippet": "行・列の固定表示に対応した汎用Tableレイアウトの実装例。CSS変数でボーダースタイルを調整可能。"
|
|
619
690
|
}
|
|
620
691
|
]
|
package/dist/data/meta.js
CHANGED
package/dist/data/overview.json
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
"name": "lism-css",
|
|
7
7
|
"npmName": "lism-css",
|
|
8
8
|
"description": "コアCSSフレームワーク。レイアウトモジュール、デザイントークン、Prop Class、React/Astroコンポーネントを提供。",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.9.4"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "lism-ui",
|
|
13
13
|
"npmName": "@lism-css/ui",
|
|
14
14
|
"description": "lism-css の上に構築されたインタラクティブな UI コンポーネントライブラリ。Accordion, Modal, Tabs 等を React/Astro で提供。",
|
|
15
|
-
"version": "0.
|
|
15
|
+
"version": "0.9.3"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"breakpoints": {
|
|
@@ -1079,6 +1079,14 @@
|
|
|
1079
1079
|
"type": "boolean",
|
|
1080
1080
|
"responsive": false,
|
|
1081
1081
|
"description": "コンテナクエリ単位(cqi)を有効にするセットクラスを付与する。"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"prop": "hov",
|
|
1085
|
+
"cssProperty": "(class: -hov:*)",
|
|
1086
|
+
"type": "boolean | string | object",
|
|
1087
|
+
"responsive": false,
|
|
1088
|
+
"description": "ホバーエフェクトを設定。文字列で '-hov:{値}' クラスを出力。オブジェクトで複数指定可能。プリセット: 'o'(opacity), 'bgc'(背景色), 'c'(テキスト色), 'bxsh'(影)等。",
|
|
1089
|
+
"values": ["o", "bgc", "c", "bdc", "bxsh", "neutral"]
|
|
1082
1090
|
}
|
|
1083
1091
|
]
|
|
1084
1092
|
},
|
|
@@ -1125,6 +1133,13 @@
|
|
|
1125
1133
|
"responsive": false,
|
|
1126
1134
|
"description": "スタッキングコンテキストの分離。",
|
|
1127
1135
|
"values": ["isolate"]
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"prop": "css",
|
|
1139
|
+
"cssProperty": "(style属性)",
|
|
1140
|
+
"type": "object",
|
|
1141
|
+
"responsive": false,
|
|
1142
|
+
"description": "CSS変数やカスタムスタイルをオブジェクトで指定。style属性に直接マージされる。例: css={{'--my-var': 'value'}}。"
|
|
1128
1143
|
}
|
|
1129
1144
|
]
|
|
1130
1145
|
}
|
package/dist/data/tokens.json
CHANGED
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"description": "フォントサイズトークン。CSS変数名は --fz--{値}。分子8の調和数列(倍音列)ベースのスケーリング。",
|
|
52
52
|
"tokens": [
|
|
53
53
|
{ "name": "--fz--base", "value": "var(--REM)", "description": "本文の基本フォントサイズ(≒ 1rem)" },
|
|
54
|
-
{ "name": "--fz--5xl", "value": "
|
|
55
|
-
{ "name": "--fz--4xl", "value": "
|
|
56
|
-
{ "name": "--fz--3xl", "value": "
|
|
57
|
-
{ "name": "--fz--2xl", "value": "
|
|
58
|
-
{ "name": "--fz--xl", "value": "
|
|
59
|
-
{ "name": "--fz--l", "value": "
|
|
60
|
-
{ "name": "--fz--m", "value": "
|
|
61
|
-
{ "name": "--fz--s", "value": "
|
|
62
|
-
{ "name": "--fz--xs", "value": "
|
|
63
|
-
{ "name": "--fz--2xs", "value": "
|
|
54
|
+
{ "name": "--fz--5xl", "value": "calc(var(--REM) * 8 / 2)", "description": "最大サイズ(8/2)" },
|
|
55
|
+
{ "name": "--fz--4xl", "value": "calc(var(--REM) * 8 / 3)", "description": "特大サイズ(8/3)" },
|
|
56
|
+
{ "name": "--fz--3xl", "value": "calc(var(--REM) * 8 / 4)", "description": "3XLサイズ(8/4)" },
|
|
57
|
+
{ "name": "--fz--2xl", "value": "calc(var(--REM) * 8 / 5)", "description": "2XLサイズ(8/5)" },
|
|
58
|
+
{ "name": "--fz--xl", "value": "calc(var(--REM) * 8 / 6)", "description": "XLサイズ(8/6)" },
|
|
59
|
+
{ "name": "--fz--l", "value": "calc(var(--REM) * 8 / 7)", "description": "Lサイズ(8/7)" },
|
|
60
|
+
{ "name": "--fz--m", "value": "calc(var(--REM) * 8 / 8)", "description": "Mサイズ(基準)" },
|
|
61
|
+
{ "name": "--fz--s", "value": "calc(var(--REM) * 8 / 9)", "description": "Sサイズ(8/9)" },
|
|
62
|
+
{ "name": "--fz--xs", "value": "calc(var(--REM) * 8 / 10)", "description": "XSサイズ(8/10)" },
|
|
63
|
+
{ "name": "--fz--2xs", "value": "calc(var(--REM) * 8 / 11)", "description": "最小サイズ(8/11)" }
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
{
|
|
@@ -105,14 +105,16 @@
|
|
|
105
105
|
{ "name": "--bdrs--30", "value": "1rem", "description": "角丸 step 30(≒ 16px)" },
|
|
106
106
|
{ "name": "--bdrs--40", "value": "1.5rem", "description": "角丸 step 40(≒ 24px)" },
|
|
107
107
|
{ "name": "--bdrs--50", "value": "2rem", "description": "角丸 step 50(≒ 32px)" },
|
|
108
|
-
{ "name": "--bdrs--99", "value": "99rem", "description": "完全な丸 (pill)" }
|
|
108
|
+
{ "name": "--bdrs--99", "value": "99rem", "description": "完全な丸 (pill)" },
|
|
109
|
+
{ "name": "--bdrs--inner", "value": "calc(var(--bdrs, 0px) - var(--p, 0px))", "description": "内側の角丸(親要素に合わせる)" }
|
|
109
110
|
]
|
|
110
111
|
},
|
|
111
112
|
{
|
|
112
113
|
"category": "shadow",
|
|
113
|
-
"description": "ボックスシャドウトークン。CSS変数名は --bxsh--{値}
|
|
114
|
+
"description": "ボックスシャドウトークン。CSS変数名は --bxsh--{値}。--shc(シャドウカラー: hsl(220 4% 8% / 5%))と --shsz--{n}(シャドウサイズ)を組み合わせた --sh--{n} 変数を複合して構成。",
|
|
114
115
|
"tokens": [
|
|
115
|
-
{ "name": "--bxsh--
|
|
116
|
+
{ "name": "--bxsh--5", "value": "var(--sh--5)", "description": "シャドウ step 5(最も薄い・単一シャドウ)" },
|
|
117
|
+
{ "name": "--bxsh--10", "value": "var(--sh--5), var(--sh--10)", "description": "シャドウ step 10" },
|
|
116
118
|
{ "name": "--bxsh--20", "value": "var(--sh--10), var(--sh--20)", "description": "シャドウ step 20" },
|
|
117
119
|
{ "name": "--bxsh--30", "value": "var(--sh--20), var(--sh--30)", "description": "シャドウ step 30" },
|
|
118
120
|
{ "name": "--bxsh--40", "value": "var(--sh--30), var(--sh--40)", "description": "シャドウ step 40" },
|
package/dist/lib/search.js
CHANGED
|
@@ -29,7 +29,10 @@ export function buildCssPropertyMap(categories) {
|
|
|
29
29
|
if (p.cssProperty.startsWith('(class:'))
|
|
30
30
|
continue;
|
|
31
31
|
// "--hl (CSS変数)" → "--hl"
|
|
32
|
-
const normalized = p.cssProperty
|
|
32
|
+
const normalized = p.cssProperty
|
|
33
|
+
.replace(/\s*\(.*\)$/, '')
|
|
34
|
+
.trim()
|
|
35
|
+
.toLowerCase();
|
|
33
36
|
if (!normalized)
|
|
34
37
|
continue;
|
|
35
38
|
const existing = map.get(normalized) ?? [];
|
|
@@ -121,7 +124,7 @@ export function searchDocs(entries, query, options) {
|
|
|
121
124
|
.filter(({ score }) => score > 0)
|
|
122
125
|
.sort((a, b) => b.score - a.score)
|
|
123
126
|
.slice(0, limit);
|
|
124
|
-
const DOCS_BASE_URL = 'https://lism-css.com/
|
|
127
|
+
const DOCS_BASE_URL = 'https://lism-css.com/docs';
|
|
125
128
|
return scored.map(({ entry, score }) => ({
|
|
126
129
|
sourcePath: entry.sourcePath,
|
|
127
130
|
url: `${DOCS_BASE_URL}/${entry.sourcePath.replace(/\.mdx$/, '')}/`,
|
|
@@ -46,7 +46,10 @@ function normalizeCssPropertyName(raw) {
|
|
|
46
46
|
if (raw.startsWith('(class:'))
|
|
47
47
|
return null;
|
|
48
48
|
// "--hl (CSS変数)" → "--hl"
|
|
49
|
-
return raw
|
|
49
|
+
return raw
|
|
50
|
+
.replace(/\s*\(.*\)$/, '')
|
|
51
|
+
.trim()
|
|
52
|
+
.toLowerCase();
|
|
50
53
|
}
|
|
51
54
|
// ----------------------------------------------------------------
|
|
52
55
|
// 値のマッピング
|
|
@@ -9,7 +9,10 @@ function normalizeCssProperty(raw) {
|
|
|
9
9
|
if (classMatch)
|
|
10
10
|
return classMatch[1].trim().toLowerCase();
|
|
11
11
|
// "--hl (CSS変数)" → "--hl"
|
|
12
|
-
return raw
|
|
12
|
+
return raw
|
|
13
|
+
.replace(/\s*\(.*\)$/, '')
|
|
14
|
+
.trim()
|
|
15
|
+
.toLowerCase();
|
|
13
16
|
}
|
|
14
17
|
export function registerGetPropsSystem(server) {
|
|
15
18
|
server.registerTool('get_props_system', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lism-css/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "MCP server for lism-css documentation and API reference.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"zod": "^3.25.76"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^
|
|
20
|
-
"typescript": "
|
|
19
|
+
"@types/node": "^25.0.0",
|
|
20
|
+
"typescript": "^5.8.3",
|
|
21
21
|
"vitest": "^4.1.0"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|