Skip to content

Commit

Permalink
feat: change font
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Dec 28, 2023
1 parent e3ddba7 commit 4ee4054
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
21 changes: 11 additions & 10 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,7 @@ const config: Config = {
hideable: true,
},
},
headTags: [
{
tagName: 'meta',
attributes: {
name: 'description',
content: '愧怍的个人博客',
},
},
],

navbar: {
logo: {
alt: '愧怍',
Expand Down Expand Up @@ -256,7 +248,16 @@ const config: Config = {
},
],
],
stylesheets: [],
headTags: [
{
tagName: 'meta',
attributes: {
name: 'description',
content: '愧怍的个人博客',
},
},
],
stylesheets: ['https://cdn.jsdelivr.net/npm/[email protected]/lib/Normal/MiSans-Normal.min.css'],
i18n: {
defaultLocale: 'zh-CN',
locales: ['en', 'zh-CN'],
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import clsx from 'clsx'
import { usePluginData } from '@docusaurus/useGlobalData'
import type { BlogTags, BlogPost } from '@docusaurus/plugin-content-blog'
import type { BlogPost } from '@docusaurus/plugin-content-blog'
import Link from '@docusaurus/Link'
import { Icon } from '@iconify/react'
import SocialLinks from '@site/src/components/SocialLinks'
Expand Down
19 changes: 4 additions & 15 deletions src/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
--ifm-color-primary-lighter: #b0e6ff;
--ifm-color-primary-lightest: #d5f1fd;
--ifm-code-font-size: 95%;
--ifm-font-family-base: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
'Helvetica Neue', 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji', consolas, sfmono-regular, menlo, monaco,
'Liberation Mono', monospace;
--ifm-font-family-base: misans, ui-sans-serif, system-ui, -apple-system;

--ifm-heading-font-family: var(--ifm-font-family-base);
--ifm-heading-font-family: ui-sans-serif, system-ui, -apple-system;

--ifm-navbar-shadow: 0 4px 28px rgb(0 0 0 / 10%);
--text-color: #2b333e;
Expand Down Expand Up @@ -76,19 +73,11 @@ html[data-theme='dark'] {

body {
font-family:
misans,
system-ui,
-apple-system,
'PingFang SC',
'Microsoft YaHei',
'Segoe UI',
Roboto,
Helvetica,
'noto sans sc',
'hiragino sans gb',
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji',
'Not Color Emoji';
'Microsoft YaHei';
}

html,
Expand Down

1 comment on commit 4ee4054

@vercel
Copy link

@vercel vercel bot commented on 4ee4054 Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-kuizuo.vercel.app
blog-git-main-kuizuo1.vercel.app
blog-kuizuo1.vercel.app
kuizuo.cn

Please sign in to comment.