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 design tokens เป็นไฟล์ Android resource XML.

มันทำการย่อ IR ให้เป็นค่าที่ชัดเจนแบบโหมดเดียว (@pantoken/core's toStyleDictionary), then emits res/values/colors.xml (โทเค็นสี) และ res/values/dimens.xml (โทเค็นมิติ) ผ่าน @pantoken/sd-config. Style Dictionary ใช้ทรานส์ฟอร์มของ Android (#aarrggbb, dp/sp).

อินเทอร์เฟซ ​

ฟังก์ชัน ​

การอ้างอิง ​

default ​

เปลี่ยนชื่อและส่งออกซ้ำ generateAndroid