Skip to content

pantoken-root / android

android ​

Compatibility ​

Target: Android resources. Current format: Generated colors, dimensions, and VectorDrawable compile and link with Android build-tools. Minimum host version: API 35 / build-tools 35.0.0. Tested through API 35 / build-tools 35.0.0. Newer releases require review.

Full compatibility matrix

實驗性

@pantoken/android — 將 Instructure 設計代幣匯出為 Android 資源 XML。

它將 IR 攤平為具體的單模式值(@pantoken/core 的 toStyleDictionary),然後 透過 @pantoken/sd-config 輸出 res/values/colors.xml(色彩代幣)和 res/values/dimens.xml(尺寸代幣)。Style Dictionary 會套用 Android 轉換(#aarrggbb、dp/sp)。

介面 ​

函式 ​

參考 ​

default ​

重新命名並重新匯出 generateAndroid