Skip to content

Commit

Permalink
Add Modern Font Stacks (#498)
Browse files Browse the repository at this point in the history
* add fonts

* remove --font-emoji

* remove fallback fonts, fixed #500

* remove quotes

* fix quotes

* remove fonts

* fix formatting

* fix removed fonts

* add fonts, better description, and use details element

* adjust .font-family-grid styles

* grammar, link to danklammer's gh

* fix test

* Update src/extra/normalize.src.css

* add old fonts

* Update src/props.fonts.css

Co-authored-by: Adam Argyle <[email protected]>

* update --monospace-code everywhere

* update --font-serif

* add notice for monospace-code font stack

* formatting

---------

Co-authored-by: Adam Argyle <[email protected]>
  • Loading branch information
Jothsa and argyleink committed Jul 2, 2024
1 parent bbf5bb7 commit e273213
Show file tree
Hide file tree
Showing 6 changed files with 203 additions and 32 deletions.
20 changes: 15 additions & 5 deletions docsite/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1053,22 +1053,32 @@ pre[class*="language-"] {
}

.font-family-grid {
--grid-cols: repeat(9, minmax(3rem, 1fr));

display: grid;
grid-template-columns: var(--grid-cols);
gap: var(--size-2);
justify-items: flex-start;

& > div {
& > details {
grid-column: 1 / -1;
}

& > details > div {
display: grid;
grid-template-columns: repeat(9, minmax(3rem, 1fr));
place-items: center;
font-size: var(--font-size-5);
grid-template-columns: var(--grid-cols);
grid-column: 1 / -1;
color: var(--text-1);
font-size: var(--font-size-5);

@media (--md-n-below) {
grid-template-columns: repeat(6, minmax(2rem, 1fr));
font-size: var(--font-size-3);
}
}

@media (--md-n-below) {
--grid-cols: repeat(6, minmax(2rem, 1fr));
}
}

#colors details h3 {
Expand Down
Loading

0 comments on commit e273213

Please sign in to comment.