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

Create SASS/SCSS styles-outputter #62

Merged
merged 5 commits into from
Sep 3, 2020

Conversation

marcomontalbano
Copy link
Owner

@marcomontalbano marcomontalbano commented Sep 3, 2020

With this outputter you can export all the styles as variables inside a .sass or .scss file.

This is a sample of the output:

$ tree output/
# output/
# └── _variables.scss

You can easily add this outputter to your .figmaexportrc.js:

module.exports = {
    commands: [
        ['styles', {
            fileId: 'RSzpKJcnb6uBRQ3rOfLIyUs5',
            outputters: [
                require('@figma-export/output-styles-as-sass')({
                    output: './output'
                })
            ]
        }],
    ]
}

Closes #59

@marcomontalbano marcomontalbano added the PR: New Feature 🚀 Only for pull request. New feature label Sep 3, 2020
@marcomontalbano marcomontalbano added this to the v3.0.0 milestone Sep 3, 2020
@marcomontalbano marcomontalbano self-assigned this Sep 3, 2020
@marcomontalbano marcomontalbano merged commit de95d2c into next-3-dev Sep 3, 2020
@marcomontalbano marcomontalbano deleted the i59-scss-style-outputter branch September 3, 2020 20:31
@marcomontalbano marcomontalbano linked an issue Sep 3, 2020 that may be closed by this pull request
@marcomontalbano marcomontalbano removed this from Done in Figma Export v3 Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: New Feature 🚀 Only for pull request. New feature
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Create SASS/SCSS styles-outputter
1 participant