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

Thử nghiệm

@pantoken/android — xuất Instructure design tokens dưới dạng XML tài nguyên Android.

Nó làm phẳng IR thành các giá trị cụ thể, chế độ đơn (@pantoken/core's toStyleDictionary), sau đó xuất res/values/colors.xml (các token màu sắc) và res/values/dimens.xml (các token kích thước) thông qua @pantoken/sd-config. Style Dictionary áp dụng các biến đổi Android (#aarrggbb, dp/sp).

Giao diện ​

Hàm ​

Tham chiếu ​

default ​

Đổi tên và xuất lại generateAndroid