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

feat: allow for parsing first style path segment as mode #31

Open
2 tasks
timcreatedit opened this issue Dec 13, 2023 · 0 comments
Open
2 tasks

feat: allow for parsing first style path segment as mode #31

timcreatedit opened this issue Dec 13, 2023 · 0 comments

Comments

@timcreatedit
Copy link
Contributor

timcreatedit commented Dec 13, 2023

Description

When generating tokens from styles (not variables), it would be a nice convenience feature to have figmage use the first path segment as a mode equivalent. This would allow putting these styles into the Figma file:

Color Styles:

  • light/primary
  • light/secondary
  • dark/primary
  • dark/secondary

and parsing the colors as if they were part of the light and dark mode.

Requirements

  • Modify config
  • Check if all modes have the same "shape" if this is active

Additional Context

This would be especially nice for all figmage users without the Figma Enterprise plan since they can't use variables in figmage.

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

No branches or pull requests

1 participant