From 00b96ae3979e07e685ee15bd3072b6c9871af5b5 Mon Sep 17 00:00:00 2001 From: Haishan Date: Sun, 7 Jun 2020 22:50:46 +0800 Subject: chore: switch to Open Sans and reduce emitted font files --- src/components/Root.css | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'src/components/Root.css') 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; -- cgit v1.3.1