Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for exporting colors from variables #236

Merged
merged 8 commits into from
Apr 8, 2024

Conversation

alexey1312
Copy link
Contributor

@alexey1312 alexey1312 commented Apr 3, 2024

  • Added ColorsVariablesLoader
  • Updated doc

Scheme

CleanShot 2024-04-04 at 08 12 40@2x

From the documentation:

  1. tokensCollectionName - the name of the variable collection
  2. lightModeName - the name of the color variable column for the light theme
  3. darkModeName - the name of the color variable column for the dark theme
  4. lightHCModeName - the name of the color variable column for the light theme with high contrast
  5. darkHCModeName - the name of the color variable column for the dark theme with high contrast
  6. A variable that has a local value
  7. A variable that refers to another variable in a different file
  1. primitivesModeName - the name of the variable column, if the value in CONFIG.md is not specified, the default value will be used
  2. A variable that has a local value

fyi:
#217

Add Variables models
Update ExportColors

Update params name

Update params name

Small refactoring

Small refactoring

Add doc

Refactoring

Refactoring
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Sources/FigmaExport/Subcommands/ExportColors.swift Outdated Show resolved Hide resolved
Sources/FigmaExport/Subcommands/ExportColors.swift Outdated Show resolved Hide resolved
Sources/FigmaAPI/Model/Variables.swift Outdated Show resolved Hide resolved
Sources/FigmaAPI/Model/Variables.swift Show resolved Hide resolved
Sources/FigmaAPI/Model/Variables.swift Outdated Show resolved Hide resolved
Sources/FigmaAPI/Model/Variables.swift Outdated Show resolved Hide resolved
@alexey1312 alexey1312 requested a review from subdan April 8, 2024 03:37
@subdan subdan merged commit d667c99 into RedMadRobot:master Apr 8, 2024
2 of 3 checks passed
@alexey1312 alexey1312 deleted the feature/variablesColors branch April 8, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants