You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to have different resourcePackage for resources, for example to use common fonts from core module. What I mean:
# [optional] Android export parametersandroid:
# Relative or absolute path to the `main/res` folder including it. The colors/icons/images will be exported to this foldermainRes: "../../../someTheme/src/main/res"# [optional] The package name, where the android resource constant `R` is located. Must be provided to enable code generation for Jetpack ComposeresourcePackage: "com.github.nikartm.someTheme"# [optional] Relative or absolute path to the code source folder including it. The typography for Jetpack Compose will be exported to this foldermainSrc: "../../../someTheme/src/main/java"# [optional] Path to the Stencil templates used to generate codetemplatesPath: "../Resources/Templates"# Parameters for exporting colorscolors:
# [optional] The package to export the Jetpack Compose color code to. Note: To export Jetpack Compose code, also `mainSrc` and `resourcePackage` above must be setcomposePackageName: "com.github.nikartm.someTheme.compose.theme"# Parameters for exporting iconsicons:
# Where to place icons relative to `mainRes`? FigmaExport clears this directory every time your execute `figma-export icons` commandoutput: "figma-export-icons"# Parameters for exporting imagesimages:
# Where to place images relative to `mainRes`? FigmaExport clears this directory every time your execute `figma-export images` commandoutput: "figma-export-images"# Image file format: svg, png or webpformat: webp# Format options for webp format onlywebpOptions:
# Encoding type: lossy or losslessencoding: lossy# Encoding quality in percents. Only for lossy encoding.quality: 90# Parameters for exporting typographytypography:
# FOR EXAMPLEresourcePackage: "com.github.nikartm.core"# Typography name style: camelCase or snake_casenameStyle: camelCase# [optional] The package to export the Jetpack Compose typography code to. Note: To export Jetpack Compose code, also `mainSrc` and `resourcePackage` above must be setcomposePackageName: "com.github.nikartm.someTheme.compose.theme"
See part
# Parameters for exporting typographytypography:
# FOR EXAMPLEresourcePackage: "com.github.nikartm.core"# Typography name style: camelCase or snake_casenameStyle: camelCase# [optional] The package to export the Jetpack Compose typography code to. Note: To export Jetpack Compose code, also `mainSrc` and `resourcePackage` above must be setcomposePackageName: "com.github.nikartm.someTheme.compose.theme"
Here core and someTheme is a different modules. And core contains fonts reused in the someTheme. As well as core contains base theme and its own figma-export.yaml. In this case my compose Typography will be broken, because the imports in someTheme.compose.theme.Typography.kt will be wrong.
I can't copy fonts in the someTheme resources because its will be duplicate resource problem.
It seems that custom resourcePackage can sometimes be useful for colors too.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for cool library
I need to have different resourcePackage for resources, for example to use common fonts from core module. What I mean:
See part
Here core and someTheme is a different modules. And core contains fonts reused in the someTheme. As well as core contains base theme and its own
figma-export.yaml
. In this case my compose Typography will be broken, because the imports in someTheme.compose.theme.Typography.kt will be wrong.I can't copy fonts in the someTheme resources because its will be duplicate resource problem.
It seems that custom resourcePackage can sometimes be useful for colors too.
The text was updated successfully, but these errors were encountered: