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