Adds a token-sync/ pipeline that fetches design tokens directly from
Figma's Variables API and generates Kotlin Compose + Android XML files
via Style Dictionary, removing the dependency on @skyscanner/bpk-foundations-android.
Pipeline:
npm run tokens:sync
→ fetch.ts : Figma Variables API → DTCG JSON (primitives + light + dark)
→ build.ts : Style Dictionary → BpkColors.kt, BpkSpacing.kt,
BpkBorderRadius.kt, BpkBorderSize.kt, dimensions.spacing.xml, radii.xml
BpkColors.kt updated with values sourced from Figma.
DTCG JSON files are transient (written to /tmp, never committed).
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Summary
token-sync/pipeline that fetches design tokens directly from Figma's Variables API@skyscanner/bpk-foundations-androidnpm package for token source.kt+ Android XML files/tmp, never committed) when usingnpm run tokens:syncHow it works
Commands
npm run tokens:fetchtokens/*.jsonlocallynpm run tokens:buildtokens/*.json, generatesoutput/npm run tokens:sync/tmp→ output/ → cleanupSetup
What's not done yet (follow-up work)
BpkButtonColors.ktetc. fromComponent.*tokens)Confluence doc
Figma token syncing pipeline - Android
🤖 Generated with Claude Code