-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2463 from tuva-odegard/fork-new-branch
Figma API variables
- Loading branch information
Showing
27 changed files
with
17,176 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Sync Figma variables to tokens | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
file_key: | ||
description: 'The file key of the Figma file to be updated' | ||
required: true | ||
|
||
jobs: | ||
sync-figma-to-tokens: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Need to be able to create new branches and commits | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16.0' | ||
|
||
- name: Set NPM version | ||
run: npm install -g [email protected] | ||
|
||
- name: Clone repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Sync variables in Figma file to tokens | ||
run: npm run sync-figma-to-tokens -- --output tokens | ||
env: | ||
FILE_KEY: ${{ github.event.inputs.file_key }} | ||
PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_ACTION_VARIABLES_SYNC_FIGMA_TOKEN }} | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: 'chore: Update tokens from Figma' | ||
title: 'chore: Update tokens from Figma' | ||
body: 'Update tokens from Figma from file: https://www.figma.com/file/${{ github.event.inputs.file_key }}' | ||
branch: update-tokens |
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,31 @@ | ||
name: Sync tokens to Figma | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
file_key: | ||
description: 'The file key of the Figma file to be updated' | ||
required: true | ||
|
||
jobs: | ||
sync-tokens-to-figma: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16.0' | ||
|
||
- name: Set NPM version | ||
run: npm install -g [email protected] | ||
|
||
- name: Clone repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Sync tokens to Figma file | ||
run: npm run sync-tokens-to-figma | ||
env: | ||
FILE_KEY: ${{ github.event.inputs.file_key }} | ||
PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_ACTION_VARIABLES_SYNC_FIGMA_TOKEN }} |
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 |
---|---|---|
|
@@ -26,3 +26,6 @@ types/ | |
|
||
storybook-static | ||
*storybook.log | ||
|
||
#Figma API Variable files | ||
.env |
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,13 +1,4 @@ | ||
@import '@sb1/ffe-core/css/spacing.css'; | ||
@import '@sb1/ffe-core/css/colors.css'; | ||
|
||
.ffe-docs-content-container { | ||
padding: var(--ffe-spacing-sm); | ||
} | ||
|
||
.ffe-docs-content-container { | ||
background: var(--ffe-farge-hvit); | ||
&--dark-mode { | ||
background: var(--ffe-farge-svart); | ||
} | ||
background: var(--ffe-color-background-default); | ||
} |
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,2 +1,4 @@ | ||
css/ | ||
gen-src/ | ||
less/colors-semantic.less | ||
less/colors-semantic-storybook.less |
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
Oops, something went wrong.