Skip to content

Commit

Permalink
[base] make base font size overrideable (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmeow authored Aug 13, 2019
1 parent 23f4e08 commit 0ed5f9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/@sanity/base/src/styles/body.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@import 'part:@sanity/base/theme/variables/fonts-style';
@import './layout/tippy.css';

:global(html, body) {
font-size: var(--font-size-base);
}

:global(a) {
color: var(--link-color);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/base/src/styles/variables/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
--font-family-serif: Georgia, "Times New Roman", Times, serif;
--font-family-monospace: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
--font-family-base: var(--font-family-sans-serif);
--font-size-base: 1rem;
--font-size-base: 16px;
--font-size-huge: 2rem;
--font-size-large: 1.25rem;
--font-size-small: 0.875rem;
Expand Down

0 comments on commit 0ed5f9f

Please sign in to comment.