-
Notifications
You must be signed in to change notification settings - Fork 24
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
247 changed files
with
50,277 additions
and
1,455 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,9 @@ name: Sync tokens to Figma | |
on: | ||
push: | ||
branches: | ||
- design-tokens | ||
- design-tokens-alpha | ||
paths: | ||
- design-tokens/** | ||
|
||
jobs: | ||
sync-tokens-to-figma: | ||
|
@@ -11,7 +13,7 @@ jobs: | |
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16.0' | ||
node-version: '18.18.0' | ||
|
||
- name: Set NPM version | ||
run: npm install -g [email protected] | ||
|
@@ -20,12 +22,14 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
run: yarn install | ||
working-directory: design-tokens | ||
|
||
- name: Sync tokens to Figma file | ||
run: npm run sync-tokens-to-figma | ||
run: yarn sync-tokens-to-figma | ||
working-directory: design-tokens | ||
env: | ||
FILE_KEY: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY }} | ||
FILE_KEY_PRIMITIVE: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY_PRIMITIVE }} | ||
FILE_KEY_SEMANTIC: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY_SEMANTIC }} | ||
FILE_KEY_COMPONENT: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY_COMPONENT }} | ||
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
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,11 +1,13 @@ | ||
name: Update design-tokens-alpha-stable | ||
name: Update design-tokens-stable | ||
on: | ||
push: | ||
branches: | ||
- design-tokens-alpha | ||
- master | ||
paths: | ||
- design-tokens/** | ||
|
||
jobs: | ||
update-design-tokens-alpha-stable: | ||
update-design-tokens-stable: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Node.js | ||
|
@@ -26,12 +28,20 @@ jobs: | |
- name: Build | ||
run: yarn build | ||
working-directory: design-tokens | ||
|
||
- name: Update design-tokens-alpha-stable | ||
- name: Update design-tokens-stable | ||
run: | | ||
git config --global user.name "Grommet Community Bot" | ||
git config --global user.email "[email protected]" | ||
yarn release-stable | ||
working-directory: design-tokens | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_ACTION_ACCESS_TOKEN }} | ||
# If stable is successfully update, push the same updates to Figma | ||
- name: Sync tokens to Figma file | ||
run: yarn sync-tokens-to-figma | ||
working-directory: design-tokens | ||
env: | ||
FILE_KEY_PRIMITIVE: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY_PRIMITIVE }} | ||
FILE_KEY_SEMANTIC: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY_SEMANTIC }} | ||
FILE_KEY_COMPONENT: ${{ secrets.GH_ACTION_FIGMA_FILE_KEY_COMPONENT }} | ||
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
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 +1,2 @@ | ||
https://aries.hpe.design/* https://design-system.hpe.design/:splat 301! | ||
/tokens/* /design-tokens/:splat 307! |
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,89 @@ | ||
/* eslint-disable max-len */ | ||
import { Figma, Code, Book, Table } from 'grommet-icons'; | ||
import { Box, Text } from 'grommet'; | ||
|
||
export const tokens = [ | ||
{ | ||
name: 'Overview', | ||
type: 'Getting started', | ||
description: 'The what and why of design tokens.', | ||
preview: { | ||
component: () => <Book size="xxlarge" color="text-strong" />, | ||
}, | ||
seoDescription: 'The what and why of design tokens.', | ||
sections: [], | ||
relatedContent: ['How to read design tokens'], | ||
tags: [], | ||
}, | ||
{ | ||
name: 'How to read design tokens', | ||
type: 'Getting started', | ||
description: | ||
'An explanation of HPE Design System design token naming conventions.', | ||
preview: { | ||
component: () => ( | ||
<Box align="center" direction="row" gap="small"> | ||
<Box background="brand" pad="medium" round="small" flex={false} /> | ||
<Text size="large">hpe.color.brand</Text> | ||
</Box> | ||
), | ||
}, | ||
seoDescription: | ||
'An explanation of HPE Design System design token naming conventions.', | ||
sections: [], | ||
relatedContent: [ | ||
'All design tokens', | ||
'Using design tokens in code', | ||
'Using design tokens in Figma', | ||
], | ||
tags: [], | ||
}, | ||
{ | ||
name: 'Using design tokens in code', | ||
type: 'Building with tokens', | ||
description: 'How to map design tokens to code.', | ||
preview: { | ||
component: () => <Code size="xxlarge" color="text-strong" />, | ||
}, | ||
seoDescription: 'How to map design tokens to code.', | ||
sections: [], | ||
relatedContent: [ | ||
'All design tokens', | ||
'How to read design tokens', | ||
'Using design tokens in Figma', | ||
], | ||
tags: [], | ||
}, | ||
{ | ||
name: 'Using design tokens in Figma', | ||
type: 'Building with tokens', | ||
description: 'How to use design tokens with Figma variables.', | ||
preview: { | ||
component: () => <Figma size="xxlarge" color="plain" />, | ||
}, | ||
seoDescription: 'How to use design tokens with Figma variables.', | ||
sections: [], | ||
relatedContent: [ | ||
'All design tokens', | ||
'How to read design tokens', | ||
'Using design tokens in code', | ||
], | ||
tags: [], | ||
}, | ||
{ | ||
name: 'All design tokens', | ||
type: 'Building with tokens', | ||
description: 'An overview of all available design tokens.', | ||
preview: { | ||
component: () => <Table size="xxlarge" />, | ||
}, | ||
seoDescription: 'An overview of all available design tokens.', | ||
sections: [], | ||
relatedContent: [ | ||
'How to read design tokens', | ||
'Using design tokens in code', | ||
'Using design tokens in Figma', | ||
], | ||
tags: [], | ||
}, | ||
]; |
Oops, something went wrong.