sparkle-design-cli 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/lib/constants.js +8 -1
  2. package/package.json +5 -1
package/lib/constants.js CHANGED
@@ -65,8 +65,15 @@ export const FONT_DOMAINS = {
65
65
  // フォントのデフォルト設定
66
66
  export const FONT_DEFAULTS = {
67
67
  WEIGHTS: [400, 700],
68
+ // Material Symbols は variable font だが、sparkle-design.css では
69
+ // wght=500 / opsz=24 / GRAD=0 固定で FILL のみ 0/1 を切り替えている。
70
+ // 補間用のレンジを落として woff2 サイズを大幅に削減するため、軸指定は
71
+ // FILL: 0..1 / wght: 500(単一値)に絞る。opsz / GRAD は単一値のため省略。
72
+ // en: Narrow the axis range requested from Google Fonts. Since the emitted CSS
73
+ // only varies FILL (0/1) and uses fixed wght=500, opsz=24, GRAD=0, we can
74
+ // drop the wght/opsz/GRAD ranges. This reduces the woff2 payload by ~60-75%.
68
75
  MATERIAL_SYMBOLS_IMPORT:
69
- "@import 'https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,0..200&display=block';",
76
+ "@import 'https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL,wght@0..1,500&display=block';",
70
77
  GENERIC_FAMILY: {
71
78
  pro: 'sans-serif',
72
79
  mono: 'monospace',
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "sparkle-design-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Sparkle Design CSS Generator - デザインシステムCSSを設定ファイルから生成するツール",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org",
7
+ "access": "public"
8
+ },
5
9
  "main": "lib/generate-css.js",
6
10
  "type": "module",
7
11
  "bin": {