-
Notifications
You must be signed in to change notification settings - Fork 2
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
24 changed files
with
190 additions
and
137 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,8 @@ | ||
--- | ||
"@hopper-ui/tokens": minor | ||
--- | ||
|
||
# Font Tokens | ||
|
||
- Swapped referenced token fonts for variable fonts. | ||
- Woff2 are now the defacto font extension. |
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,17 +1,33 @@ | ||
@font-face { | ||
font-family: "ABC Favorit"; | ||
font-style: normal; | ||
[data-font="cdn"] div.favorit { | ||
font-family: "ABC Favorit", sans-serif; | ||
font-weight: 410; | ||
src: url("https://cdn.platform.workleap-dev.com/hopper/fonts/ABCFavorit-Regular.otf") format("opentype"); | ||
font-display: fallback; | ||
font-style: normal; | ||
color: var(--hd-color-neutral-text); | ||
line-height: 1.5; | ||
} | ||
|
||
[data-font="cdn"] div.favorit-mono { | ||
font-family: "ABC Favorit Mono", monospace; | ||
font-weight: 400; | ||
font-style: normal; | ||
color: var(--hd-color-neutral-text); | ||
line-height: 1.5; | ||
} | ||
|
||
[data-font="cdn"] { | ||
font-family: "ABC Favorit", sans-serif; | ||
[data-font="cdn"] div.inter { | ||
font-family: Inter, sans-serif; | ||
font-weight: 410; | ||
font-style: normal; | ||
color: #1c1b1b; | ||
color: var(--hd-color-neutral-text); | ||
line-height: 1.5; | ||
} | ||
|
||
.font-sample { | ||
margin-bottom: 4rem; | ||
padding-top: 1.5rem; | ||
border-top: 1px solid; | ||
} | ||
|
||
.number { | ||
font-size: 1.5rem; | ||
} |
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 |
---|---|---|
|
@@ -15,4 +15,3 @@ const FontWeightPreview = ({ values, style }: FontWeightPreviewProps) => { | |
}; | ||
|
||
export default FontWeightPreview; | ||
|
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 |
---|---|---|
|
@@ -156,7 +156,6 @@ const rehypeOptions = { | |
node.properties["data-word-id"] = id; | ||
} | ||
} | ||
|
||
}; | ||
|
||
export default makeSource({ | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -23,8 +23,7 @@ export const fontsConfig: Config = { | |
} | ||
} | ||
} | ||
], | ||
"actions": ["copy_assets"] | ||
] | ||
} | ||
} | ||
}; | ||
|
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.