diff options
| author | Haishan <[email protected]> | 2020-06-07 22:50:46 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-06-08 22:39:27 +0800 |
| commit | 00b96ae3979e07e685ee15bd3072b6c9871af5b5 (patch) | |
| tree | 233714fa69efca496ce29927be19529d680c6851 /src/components/Root.css | |
| parent | 68080472416cce41573e72a2c82015a1d28b9b1c (diff) | |
chore: switch to Open Sans and reduce emitted font files
Diffstat (limited to 'src/components/Root.css')
| -rw-r--r-- | src/components/Root.css | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/components/Root.css b/src/components/Root.css index 895ce14..8a2e828 100644 --- a/src/components/Root.css +++ b/src/components/Root.css @@ -1,3 +1,33 @@ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: local('Roboto Mono Regular '), local('Roboto Mono-Regular'), + url('../../node_modules/typeface-roboto-mono/files/roboto-mono-latin-400.woff2') + format('woff2'); +} + +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-display: swap; + font-weight: 400; + src: local('Open Sans Regular '), local('Open Sans-Regular'), + url('../../node_modules/typeface-open-sans/files/open-sans-latin-400.woff2') + format('woff2'); +} + +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-display: swap; + font-weight: 700; + src: local('Open Sans Bold '), local('Open Sans-Bold'), + url('../../node_modules/typeface-open-sans/files/open-sans-latin-700.woff2') + format('woff2'); +} + .relative { position: relative; } @@ -63,7 +93,7 @@ } body { - font-family: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, + font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, 'PingFang SC', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif; |
