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
1 parent
f506c00
commit aa1d4e5
Showing
13 changed files
with
62 additions
and
14 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
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
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,42 @@ | ||
import Code from '../components/Code'; | ||
import CodeBlock from '../components/CodeBlock'; | ||
|
||
const props = { | ||
title: ( | ||
<> | ||
Export your styles as <code className="figma-gradient with-opacity-10">Style Dictionary</code> tokens | ||
</> | ||
), | ||
description: ( | ||
<> | ||
<div> | ||
Once exported, you can configure a{' '} | ||
<a target="_blank" rel="noreferrer" href="https://amzn.github.io/style-dictionary/#/"> | ||
Style Dictionary | ||
</a>{' '} | ||
project and use the generated <code>base.json</code>. | ||
</div> | ||
</> | ||
), | ||
code: ` | ||
module.exports = { | ||
commands: [ | ||
['styles', { | ||
fileId: 'fzYhvQpqwhZDUImRz431Qo', | ||
outputters: [ | ||
// https://www.npmjs.com/package/@figma-export/output-styles-as-style-dictionary | ||
require('@figma-export/output-styles-as-style-dictionary')({ | ||
output: './output/style-dictionary', | ||
}) | ||
] | ||
}] | ||
] | ||
} | ||
`, | ||
}; | ||
|
||
const AsStyleDictionary = () => ( | ||
<CodeBlock {...props} /> | ||
); | ||
|
||
export default AsStyleDictionary; |
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