-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tokens): Add box-shadow and line-height tokens (#35)
* feat: add focus box-shadow token * fix(tokens): correct the font size token names in font sizes * feat(tokens): add line-height tokens * fix(tokens): missing digit from SG line-height-70 * feat(theme): add line height tokens to the theme * fix: line-heights and usage of them in the site components
- Loading branch information
Showing
13 changed files
with
115 additions
and
56 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
34 changes: 34 additions & 0 deletions
34
packages/paste-design-tokens/tokens/global/line-height.yml
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,34 @@ | ||
global: | ||
category: line-height | ||
type: number | ||
props: | ||
line-height-10: | ||
value: "1.666666667" ##12px * 1.666666667 = 20px | ||
comment: "Constant line-height token for font size 10" | ||
line-height-20: | ||
value: "1.714285714" ##14px * 1.714285714 = 24px | ||
comment: "Constant line-height token for font size 20" | ||
line-height-30: | ||
value: "1.5" ##16px * 1.5 = 24px | ||
comment: "Constant line-height token for font size 30" | ||
line-height-40: | ||
value: "1.555555556" ##18px * 1.555555556 = 28px | ||
comment: "Constant line-height token for font size 40" | ||
line-height-50: | ||
value: "1.6" ##20px * 1.6 = 32px | ||
comment: "Constant line-height token for font size 50" | ||
line-height-60: | ||
value: "1.5" ##24px * 1.5 = 36px | ||
comment: "Constant line-height token for font size 60" | ||
line-height-70: | ||
value: "1.5" ##24px * 1.5 = 36px | ||
comment: "Constant line-height token for font size 70" | ||
line-height-80: | ||
value: "1.5" ##24px * 1.5 = 36px | ||
comment: "Constant line-height token for font size 80" | ||
line-height-90: | ||
value: "1.5" ##24px * 1.5 = 36px | ||
comment: "Constant line-height token for font size 90" | ||
line-height-100: | ||
value: "1.5" ##24px * 1.5 = 36px | ||
comment: "Constant line-height token for font size 100" |
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
36 changes: 36 additions & 0 deletions
36
packages/paste-design-tokens/tokens/themes/sendgrid/global/line-height.yml
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,36 @@ | ||
global: | ||
category: line-height | ||
type: number | ||
imports: | ||
- ../../../global/line-height.yml | ||
props: | ||
line-height-10: | ||
value: "1.666666667" #12px * 1.666666667 = 20px | ||
comment: "Constant line-height token for font size 10" | ||
line-height-20: | ||
value: "1.714285714" #14px * 1.714285714 = 24px | ||
comment: "Constant line-height token for font size 20" | ||
line-height-30: | ||
value: "1.5" #16px * 1.5 = 24px | ||
comment: "Constant line-height token for font size 30" | ||
line-height-40: | ||
value: "1.555555556" #18px * 1.555555556 = 28px | ||
comment: "Constant line-height token for font size 40" | ||
line-height-50: | ||
value: "1.6" #20px * 1.6 = 32px | ||
comment: "Constant line-height token for font size 50" | ||
line-height-60: | ||
value: "1.5" #24px * 1.5 = 36px | ||
comment: "Constant line-height token for font size 60" | ||
line-height-70: | ||
value: "1.571428571" #28px * 1.57 = 44px | ||
comment: "Constant line-height token for font size 70" | ||
line-height-80: | ||
value: "1.5" #32px * 1.5 = 48px | ||
comment: "Constant line-height token for font size 80" | ||
line-height-90: | ||
value: "1.5" #32px * 1.5 = 48px | ||
comment: "Constant line-height token for font size 90" | ||
line-height-100: | ||
value: "1.5" #32px * 1.5 = 48px | ||
comment: "Constant line-height token for font size 100" |
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
706643b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully aliased the URL https://paste-mzg2f6u10.now.sh to the following aliases: