sparkle-design-cli 1.4.0 → 1.4.1
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/bin/sparkle-design.js +17 -0
- package/package.json +1 -1
package/bin/sparkle-design.js
CHANGED
|
@@ -144,6 +144,23 @@ Generate options:
|
|
|
144
144
|
-c, --config <path> 設定ファイルのパス (default: ./sparkle.config.json)
|
|
145
145
|
-o, --output <path> 出力ファイルのパス (default: ./src/app/sparkle-design.css)
|
|
146
146
|
|
|
147
|
+
sparkle.config.json の設定フィールド:
|
|
148
|
+
primary プライマリカラー (blue, red, orange, green, purple, pink, yellow など)
|
|
149
|
+
font-pro プロポーショナルフォント (Google Fonts の名前)
|
|
150
|
+
配列を指定するとフォールバックチェーン
|
|
151
|
+
例: ["Montserrat", "Noto Sans JP"]
|
|
152
|
+
font-mono モノスペースフォント (Google Fonts の名前、配列も可)
|
|
153
|
+
radius 角丸設定 (none, sm, md, lg, xl, full)
|
|
154
|
+
font-pro-weights (任意) フォントウェイト配列 (default: [400, 700])
|
|
155
|
+
例: [400, 500, 600, 700]
|
|
156
|
+
font-mono-weights (任意) モノスペースフォントのウェイト配列 (default: [400, 700])
|
|
157
|
+
source-packages (任意) @source で追加スキャンする npm パッケージ名の配列
|
|
158
|
+
custom-css (任意) プロジェクト固有のカスタムトークン CSS ファイルパス
|
|
159
|
+
globals.css に @import が自動挿入される
|
|
160
|
+
|
|
161
|
+
設定ファイルは Sparkle Design Theme Settings Figma プラグインから書き出せます:
|
|
162
|
+
https://www.figma.com/community/plugin/1443500367756891364
|
|
163
|
+
|
|
147
164
|
Check options:
|
|
148
165
|
-h, --help このヘルプメッセージを表示
|
|
149
166
|
--strict 違反があれば exit code 1 で終了
|