diff --git a/packages/neuron-ui/public/css/fonts.css b/packages/neuron-ui/public/css/fonts.css index 85b52a469f..d183b3bf33 100644 --- a/packages/neuron-ui/public/css/fonts.css +++ b/packages/neuron-ui/public/css/fonts.css @@ -37,3 +37,13 @@ src: url('../fonts/JetBrainsMonoNL-Regular.otf') format('opentype'), url('../fonts/JetBrainsMonoNL-Regular.ttf') format('opentype'); } + +@font-face { + font-family: 'Inter-Regular'; + src: url('../fonts/Inter-Regular.otf') format('opentype'), url('../fonts/Inter-Regular.ttf') format('opentype'); +} + +@font-face { + font-family: 'Inter-Medium'; + src: url('../fonts/Inter-Medium.otf') format('opentype'), url('../fonts/Inter-Medium.ttf') format('opentype'); +} diff --git a/packages/neuron-ui/public/fonts/Inter-Medium.otf b/packages/neuron-ui/public/fonts/Inter-Medium.otf new file mode 100644 index 0000000000..ca7bfcd434 Binary files /dev/null and b/packages/neuron-ui/public/fonts/Inter-Medium.otf differ diff --git a/packages/neuron-ui/public/fonts/Inter-Medium.ttf b/packages/neuron-ui/public/fonts/Inter-Medium.ttf new file mode 100644 index 0000000000..1d909c10d0 Binary files /dev/null and b/packages/neuron-ui/public/fonts/Inter-Medium.ttf differ diff --git a/packages/neuron-ui/public/fonts/Inter-Regular.otf b/packages/neuron-ui/public/fonts/Inter-Regular.otf new file mode 100644 index 0000000000..84e6a61c3c Binary files /dev/null and b/packages/neuron-ui/public/fonts/Inter-Regular.otf differ diff --git a/packages/neuron-ui/public/fonts/Inter-Regular.ttf b/packages/neuron-ui/public/fonts/Inter-Regular.ttf new file mode 100644 index 0000000000..d7c2eebfc6 Binary files /dev/null and b/packages/neuron-ui/public/fonts/Inter-Regular.ttf differ diff --git a/packages/neuron-ui/src/styles/index.scss b/packages/neuron-ui/src/styles/index.scss index d9d814bf82..1ee9bd160c 100755 --- a/packages/neuron-ui/src/styles/index.scss +++ b/packages/neuron-ui/src/styles/index.scss @@ -6,7 +6,7 @@ outline: none !important; -webkit-tap-highlight-color: none !important; user-select: none; - font-family: 'PingFang SC'; + font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter-Regular', 'Inter-Medium'; } [type='button'], @@ -30,7 +30,7 @@ html { } body { - @include regular-text; + font-family: 'Inter-Regular', 'Inter-Medium'; margin: 0; padding: 0; background: #f8f8f8;