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)に平坦化し、次に res/values/colors.xml(色トークン)と res/values/dimens.xml(寸法トークン)を @pantoken/sd-config 経由で出力します。Style Dictionary は Android 用の変換(#aarrggbb、dp/sp)を適用します。

インターフェース ​

関数 ​

参照 ​

default ​

generateAndroid の名前を変更して再エクスポートします