-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
3,835 additions
and
752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
'!(*.d).{js,ts}': () => ['yarn lint --fix', 'yarn coverage', 'git add .'], | ||
'!(*.d).{js,ts}': () => ['yarn lint --fix', 'yarn coverage'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,904 changes: 1,903 additions & 1 deletion
1,904
packages/core/src/lib/_mocks_/figma.fileNodes.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
src | ||
tsconfig.json | ||
tsconfig.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# @figma-export/output-styles-as-sass | ||
|
||
> Styles Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that exports styles to SASS and SCSS. | ||
With this outputter you can export all the styles as variables inside a `.sass` or `.scss` file. | ||
|
||
This is a sample of the output: | ||
|
||
```sh | ||
$ tree output/ | ||
# output/ | ||
# └── _variables.scss | ||
``` | ||
|
||
|
||
## .figmaexportrc.js | ||
|
||
You can easily add this outputter to your `.figmaexportrc.js`: | ||
|
||
```js | ||
module.exports = { | ||
commands: [ | ||
['styles', { | ||
fileId: 'RSzpKJcnb6uBRQ3rOfLIyUs5', | ||
onlyFromPages: ['figma-styles'], | ||
outputters: [ | ||
require('@figma-export/output-styles-as-sass')({ | ||
output: './output' | ||
}) | ||
] | ||
}], | ||
] | ||
} | ||
``` | ||
|
||
`output` is **mandatory**. | ||
|
||
`getExtension` and `getFilename` are **optional**. | ||
|
||
```js | ||
require('@figma-export/output-styles-as-sass')({ | ||
output: './output', | ||
getExtension: () => 'SCSS', | ||
getFilename: () => '_variables', | ||
}) | ||
``` | ||
|
||
> *defaults may change, please refer to `./src/index.ts`* | ||
## Install | ||
|
||
Using npm: | ||
|
||
```sh | ||
npm install --save-dev @figma-export/output-styles-as-sass | ||
``` | ||
|
||
or using yarn: | ||
|
||
```sh | ||
yarn add @figma-export/output-styles-as-sass --dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "@figma-export/output-styles-as-sass", | ||
"version": "3.0.0-alpha.1", | ||
"description": "Outputter for @figma-export that exports styles to SASS and SCSS", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/marcomontalbano/figma-exporter.git", | ||
"directory": "packages/output-styles-as-sass" | ||
}, | ||
"author": "Marco Montalbano <me@marcomontalbano.com>", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"dependencies": { | ||
"@figma-export/types": "^3.0.0-alpha.1", | ||
"make-dir": "~3.1.0" | ||
}, | ||
"engines": { | ||
"node": ">= 10.13 <= 14.x" | ||
} | ||
} |
Oops, something went wrong.