animation_fetch_recolor
Fetch a Lottie animation for a given app slot and recolor it to your palette, saving a build-time JSON file so SwiftUI renders it without runtime color code.
Instructions
Fetch a CUTE app-specific Lottie animation + recolor it to the palette → Resources/Animations/.json.
Source: the free LottieFiles library (Simple License = commercial OK, no attribution). The most-viewed
match is picked and its colors are mapped to the app palette (dominant→primary, others→accent, black/white kept).
Build-time recolor — NO runtime color code in Swift; lottie-spm renders it with .named(slot).
slot: loading | success | empty | onboarding_hero. keyword: app-themed override (e.g. 'happy dog celebration').
primary_hex/accent_hex: DS.Palette light hex ('#' optional, e.g. '006A63'). Called for every slot of every app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| app_dir | Yes | ||
| keyword | No | ||
| accent_hex | Yes | ||
| primary_hex | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||