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

Export json color tokens with color family objects #184

Open
markjharvey opened this issue Nov 18, 2022 · 0 comments
Open

Export json color tokens with color family objects #184

markjharvey opened this issue Nov 18, 2022 · 0 comments
Labels
enhancement New feature or request UI Issues related to the Leonardo web interface

Comments

@markjharvey
Copy link

Description

When creating color palettes, exporting by going to "Use > Design Tokens" only exports ALL the colors as a single json object.
It would be helpful to export the palette with objects per color family (gray, blue, green, etc.).

Current

{
    "color": {
        "light": {
            "gray100": {
                    ...all the grays....
            },
...rest of colors....
            "yellow100": {
                    ....all the yellows....
        },
    }
}

Ask

{
    "color": {
        "light": {
            "gray": {
                "gray100": {
                    ...all the grays....
            },
...rest of colors....
            "yellow": {
                "yellow100": {
                    ....all the yellows....
        },
    }
}

Why do you need this feature?

When importing color tokens to Figma, having the color families in an object will help so they are not one large list in the Figma color styles.
Updating this manually is very time consuming and actually breaks color style links.

Additional context

Screen Shot 2022-11-18 at 2 04 11 PM

@markjharvey markjharvey added enhancement New feature or request UI Issues related to the Leonardo web interface labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request UI Issues related to the Leonardo web interface
Projects
None yet
Development

No branches or pull requests

1 participant