Skip to content

Commit

Permalink
refactor: radii sizes and add keyframe
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Jan 11, 2024
1 parent a0c7482 commit 814b3e4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leather-wallet/tokens",
"version": "0.0.2",
"version": "0.0.3",
"description": "Shared design tokens",
"main": "src/index.ts",
"homepage": "https://github.com/leather-wallet/mono/tree/dev/packages/tokens",
Expand Down
19 changes: 10 additions & 9 deletions packages/tokens/src/keyframes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ export const keyframes = {
backgroundPosition: '500px',
},
},
rotate: {
'0%': {
transform: 'rotate(0deg)',
},
'100%': {
transform: 'rotate(360deg)',
},
},
// TODO: identical to above, remove
spin: {
'0%': {
transform: 'rotate(0deg)',
Expand All @@ -40,4 +31,14 @@ export const keyframes = {
strokeDashoffset: 0,
},
},
slideUpAndFade: {
from: {
opacity: 0,
transform: 'translateY(2px)',
},
to: {
opacity: 1,
transform: 'translateY(0)',
},
},
} as const;
10 changes: 4 additions & 6 deletions packages/tokens/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ export const tokens = {
xl: { value: '36px' },
},
radii: {
xs: { value: '8px' },
sm: { value: '10px' },
md: { value: '12px' },
lg: { value: '16px' },
xl: { value: '20px' },
xxl: { value: '24px' },
xs: { value: '2px' },
sm: { value: '4px' },
md: { value: '8px' },
lg: { value: '12px' },
},
spacing: {
// Numbers are padded with 0 to ensure they are sorted correctly in TS
Expand Down

0 comments on commit 814b3e4

Please sign in to comment.