diff options
| author | Haishan <[email protected]> | 2020-06-07 18:38:27 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-06-07 18:42:25 +0800 |
| commit | 361effbd9864f8da3456fcd06094c30919fd822e (patch) | |
| tree | 3bc7fc0a082df138537b7a65218f2eac5a5681c0 /src | |
| parent | e864feb4016739c0f5f2925257d2e7a6dc88f74d (diff) | |
changed: switch primary font family from Merriweather Sans to Inter
also starting to self hosting font files
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 5 | ||||
| -rw-r--r-- | src/components/Root.css | 4 | ||||
| -rw-r--r-- | src/index.template.ejs | 1 |
3 files changed, 7 insertions, 3 deletions
@@ -5,6 +5,11 @@ import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import Root from './components/Root'; +// eslint-disable-next-line no-unused-expressions +import('typeface-inter'); +// eslint-disable-next-line no-unused-expressions +import('typeface-roboto-mono'); + const rootEl = document.getElementById('app'); Modal.setAppElement(rootEl); diff --git a/src/components/Root.css b/src/components/Root.css index 22cae24..895ce14 100644 --- a/src/components/Root.css +++ b/src/components/Root.css @@ -63,8 +63,8 @@ } body { - font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, Segoe UI, - Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, + font-family: 'Inter', -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; margin: 0; diff --git a/src/index.template.ejs b/src/index.template.ejs index 9714a03..1f41e36 100644 --- a/src/index.template.ejs +++ b/src/index.template.ejs @@ -11,7 +11,6 @@ <meta name="description" content="Yet Another Clash Dashboard"> <meta name="theme-color" content="#202020"> <title><%= htmlWebpackPlugin.options.title %></title> - <link href="https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@400;700&family=Roboto+Mono&display=swap" rel="stylesheet"> <meta property="og:image" content="https://user-images.githubusercontent.com/1166872/47304841-536f3d80-d65a-11e8-8908-1917127dafc5.png"> <meta property="og:site_name" content="yacd"> <meta property="og:type" content="object"> |
