Architect Native Android Apps from Figma with Predictive CI/CD
A production-ready GitHub repository template integrating automatic design-token translation into Jetpack Compose, zero-overhead APK/AAB size forecasting, and declarative app.json configuration.
Tweak Tokens & Observe Native UI
Change the design tokens or toggle app.json parameters below. Watch the native Android viewport adapt in real-time, recalculating predicted APK size.
Figma Token Parameters
app.json Configurator & Features
Continuous Build Forecasting Output
PASSEDThree-Stage Continuous Delivery
Eliminating the friction between UI designers and Android engineering teams.
Figma REST API Token Extraction
A scheduled GitHub Action queries the designated Figma file ID, fetches styles and design tokens, and parses them into type-safe Jetpack Compose Kotlin objects.
val CardRadius = 16.dp
Declarative app.json Schema
Coordinates release versions, package namespaces, build budgets, and feature flags in one human-readable config file that both CI and Gradle consume.
"forecasting": { "maxAabMb": 12.0 }
Bundle & Compile Time Budgeting
Every Pull Request builds against the forecast engine. If an uncompressed asset or dependency bloats the APK beyond the threshold, CI halts and posts actionable metrics.
Threshold Check: Within Budget (95%)
Clean Modular Android Architecture
- .github/workflows/
- build-forecast.yml
- figma-tokens-sync.yml
- .figma/
- token-transformer.mjs
- app.json [Central Config]
- app/src/main/java/core/
- designsystem/ThemeTokens.kt
- config/AppConfig.kt
- gradle/
- libs.versions.toml
{
"$schema": "https://schema.novapulse.io/app-v1.json",
"project": {
"name": "NovaPulse",
"namespace": "com.novapulse.android",
"version": "1.4.0",
"versionCode": 140
},
"figma": {
"fileId": "8K9xN1p2QrStVw",
"tokenSync": {
"colorsNodeId": "1:24",
"outputDir": "app/src/main/java/core/designsystem"
}
},
"features": {
"dynamicColor": true,
"betaFeedback": false
},
"buildForecasting": {
"maxAabSizeMb": 12.0,
"sizeDeltaThresholdPercent": 4.5,
"compileTimeBudgetSec": 180
}
}
package com.novapulse.android.core.designsystem
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
// Generated automatically via .figma/token-transformer.mjs
object NovaPulseDesignTokens {
val PrimaryAccent = Color(0xFF3DDC84)
val BackgroundDark = Color(0xFF0A0E17)
val SurfaceCard = Color(0xFF0F172A)
val CornerRadiusMedium = 16.dp
}
name: Android Build Forecasting
on: [pull_request]
jobs:
forecast:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Measure Bundle Delta
run: |
./gradlew :app:bundleRelease
MAX_SIZE=$(jq '.buildForecasting.maxAabSizeMb' app.json)
# Post forecast analysis to PR comment
Start Building Native Android Faster
Clone this template, add your Figma API key and File ID into GitHub Secrets, and let automated CI forecast your build sizes while keeping Compose themes synchronized.