-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typography): Easy font setting, default is google font
Treats `base: Open Sans` and `base.family: Open Sans` as "get from Google Fonts" For #21
- Loading branch information
Showing
6 changed files
with
145 additions
and
2 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,9 @@ | ||
meta: | ||
name: examples/brand-typography-simple.yml | ||
typography: | ||
fonts: | ||
- family: Open Sans | ||
source: file | ||
base: Open Sans | ||
headings: Roboto Slab | ||
monospace: Fira Code |
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"base": { | ||
"color": "#1b1818" | ||
}, | ||
"fonts": [], | ||
"headings": { | ||
"color": "#87CEEB" | ||
}, | ||
|
38 changes: 38 additions & 0 deletions
38
pkg-py/tests/__snapshots__/test_typography/test_brand_typography_ex_minimal.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"meta": { | ||
"name": { | ||
"full": "examples/brand-typography-simple.yml" | ||
} | ||
}, | ||
"typography": { | ||
"base": { | ||
"family": "Open Sans" | ||
}, | ||
"fonts": [ | ||
{ | ||
"family": "Open Sans", | ||
"source": "file" | ||
}, | ||
{ | ||
"family": "Roboto Slab", | ||
"source": "google" | ||
}, | ||
{ | ||
"family": "Fira Code", | ||
"source": "google" | ||
} | ||
], | ||
"headings": { | ||
"family": "Roboto Slab" | ||
}, | ||
"monospace": { | ||
"family": "Fira Code" | ||
}, | ||
"monospace-block": { | ||
"family": "Fira Code" | ||
}, | ||
"monospace-inline": { | ||
"family": "Fira Code" | ||
} | ||
} | ||
} |
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