-
Notifications
You must be signed in to change notification settings - Fork 3
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 #100 from Ayaz1997/testing-design-tokens
added design system tokens
- Loading branch information
Showing
12 changed files
with
2,495 additions
and
35 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,28 @@ | ||
name: Figma Token/Theme Sync | ||
on: | ||
push | ||
jobs: | ||
change-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node v18 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Transform Tokens | ||
run: | | ||
npx token-transformer ./src/tokens/tokens.json ./src/tokens/tokens-output.json | ||
rm ./src/tokens/tokens.json | ||
mv ./src/tokens/tokens-output.json ./src/tokens/tokens.json | ||
- name: Commit and push changes | ||
uses: devops-infra/action-commit-push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
commit_message: "Token Transformation from Token Studio format to JSON" | ||
|
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 |
---|---|---|
|
@@ -33,5 +33,4 @@ const RGThemeProvider: React.FC<RGThemeProps> = ({ | |
}; | ||
|
||
export default RGThemeProvider; | ||
|
||
export { Fonts }; |
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,31 +1,18 @@ | ||
import _ from 'lodash'; | ||
import RGTokens from './tokens'; | ||
|
||
interface colorTokenInterface { | ||
value: string; | ||
type: string; | ||
} | ||
|
||
const chakraColors = _.mapValues(RGTokens.colors, (colors) => | ||
_.mapValues(colors, (color: colorTokenInterface) => color.value) | ||
); | ||
|
||
const Colors = { | ||
white: '#fffffe', | ||
purple: { | ||
500: '#822EA6', | ||
}, | ||
red: { | ||
500: '#ff3864', | ||
}, | ||
yellow: { | ||
500: '#F2E857', | ||
}, | ||
headerGradient: { | ||
500: 'linear-gradient(96.18deg, rgb(255, 56, 100) -44.29%, rgb(139, 29, 186) 53.18%, rgb(67, 83, 223) 150.65%)', | ||
}, | ||
rgGradient: { | ||
500: 'linear-gradient(95.58deg, #FF3864 0%, #8B1DBA 53.65%, #4353DF 100%)', | ||
}, | ||
primary: { | ||
// Base colour is at 500 | ||
50: '#ff95ad', | ||
200: '#ff95ad', | ||
300: '#ff6788', | ||
400: '#ff577c', | ||
500: '#ff3864', | ||
600: '#ff194c', | ||
700: '#ff0940', | ||
800: '#da0030', | ||
}, | ||
...chakraColors, | ||
...chakraColors.base, | ||
}; | ||
|
||
export default Colors; |
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 @@ | ||
import * as RGTokens from './token-output.json'; | ||
|
||
export default RGTokens; |
Oops, something went wrong.