Profiles Reference
This document describes all built-in import profiles available in FigX. Profiles can be configured in the root .figtree.toml
file and extended to create custom import configurations.
Profile Types
- Image Profiles
- png: Basic PNG asset import
- webp: WebP format conversion
- android-webp: Android-optimized WebP with density and theme support
- Vector Profiles
- svg: Raw SVG import
- compose: Jetpack Compose ImageVector conversion
- Document Profiles
- pdf: Document export
Configuration Structure
All profiles share common configuration properties:
[profiles.{profile_name}]
# Reference to remote configuration
remote = "default"
Extending Profiles
Create custom profiles by inheriting from existing ones:
[profiles.custom-webp]
extends = "webp" # Inherit all base webp settings
# Override specific properties
quality = 90
output_dir = "src/webp_assets"
Best Practices
- Naming Conventions:
- Use lowercase with hyphens (profile-name)
- Be descriptive (android-icon-webp)
- Organization:
- Group related profiles in sections
- Use comments for documentation
- Do not abuse inheritance!