Skip to content

iconify.yaml Configuration Reference

The iconify.yaml file is the central configuration for the iconify_sdk project, used by the CLI and builder to manage icon bundling and code generation.

Place the iconify.yaml file in the root of your Flutter/Dart project.

FieldTypeDefaultDescription
setsList<String>[]List of icon identifiers or patterns to include (e.g., mdi:home, lucide:*).
outputStringlib/icons.g.dartPath for the generated Dart file containing icon data.
data_dirStringassets/iconifyDirectory where local JSON snapshots of icon sets are stored.
modeEnumautoOperation mode. Options: auto, offline, generated, remoteAllowed.
license_policyEnumwarnHow to handle attribution-required licenses. Options: permissive, warn, strict.
custom_setsList<String>[]Paths to local JSON files for custom icon collections.
fail_on_missingBoolfalseWhether the build should fail if an icon is not found.
ModeDescription
autoUses local assets if available, falls back to remote in debug mode.
offlineOnly uses local assets and starter registry. No network calls.
generatedStrict mode using only code-generated constants.
remoteAllowedAllows remote fetching in both debug and release builds (not recommended).
PolicyDescription
permissiveSilently bundles all icons.
warnBundles icons but prints warnings for those requiring attribution.
strictFails the build if an icon requiring attribution is used without explicit approval.