mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-15 23:16:48 +00:00
站点字体
This commit is contained in:
@@ -15,7 +15,7 @@ const BLOG = {
|
||||
notionPageId: process.env.NOTION_PAGE_ID || 'bee1fccfa3bd47a1a7be83cc71372d83', // Important page_id!!!
|
||||
notionAccessToken: process.env.NOTION_ACCESS_TOKEN || '', // Useful if you prefer not to make your database public
|
||||
appearance: 'auto', // ['light', 'dark', 'auto'],
|
||||
font: 'font-sans tracking-wider subpixel-antialiased', // 文章字体 ['font-sans', 'font-serif', 'font-mono'] @see https://www.tailwindcss.cn/docs/font-family
|
||||
font: 'font-serif tracking-wider subpixel-antialiased', // 文章字体 ['font-sans', 'font-serif', 'font-mono'] @see https://www.tailwindcss.cn/docs/font-family
|
||||
lightBackground: '#eeeeee', // use hex value, don't forget '#' e.g #fffefc
|
||||
darkBackground: '#111827', // use hex value, don't forget '#'
|
||||
path: '', // leave this empty unless you want to deploy in a folder
|
||||
|
||||
@@ -113,7 +113,6 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
|
||||
<section id='notion-article' className='px-1'>
|
||||
{blockMap && (
|
||||
<NotionRenderer
|
||||
className={`${BLOG.font}`}
|
||||
recordMap={blockMap}
|
||||
mapPageUrl={mapPageUrl}
|
||||
components={{
|
||||
|
||||
@@ -18,7 +18,7 @@ class MyDocument extends Document {
|
||||
<ThirdPartyScript />
|
||||
</Head>
|
||||
|
||||
<body className='bg-day dark:bg-night duration-200'>
|
||||
<body className={`${BLOG.font} bg-day dark:bg-night duration-200`}>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
|
||||
BIN
public/fonts/IBMPlexSansVar-Italic.woff2
Normal file
BIN
public/fonts/IBMPlexSansVar-Italic.woff2
Normal file
Binary file not shown.
BIN
public/fonts/IBMPlexSansVar-Roman.woff2
Normal file
BIN
public/fonts/IBMPlexSansVar-Roman.woff2
Normal file
Binary file not shown.
BIN
public/fonts/SourceSerif-Italic.var.woff2
Normal file
BIN
public/fonts/SourceSerif-Italic.var.woff2
Normal file
Binary file not shown.
BIN
public/fonts/SourceSerif.var.woff2
Normal file
BIN
public/fonts/SourceSerif.var.woff2
Normal file
Binary file not shown.
@@ -72,6 +72,7 @@
|
||||
line-height: 1.5;
|
||||
color: var(--fg-color);
|
||||
caret-color: var(--fg-color);
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.notion > * {
|
||||
|
||||
@@ -1,9 +1,28 @@
|
||||
const BLOG = require('./blog.config')
|
||||
|
||||
const { fontFamily } = require('tailwindcss/defaultTheme')
|
||||
const CJK = require('./lib/cjk')
|
||||
const fontSansCJK = !CJK()
|
||||
? []
|
||||
: [`"Noto Sans CJK ${CJK()}"`, `"Noto Sans ${CJK()}"`]
|
||||
const fontSerifCJK = !CJK()
|
||||
? []
|
||||
: [`"Noto Serif CJK ${CJK()}"`, `"Noto Serif ${CJK()}"`]
|
||||
module.exports = {
|
||||
purge: ['./pages/**/*.js', './components/**/*.js', './layouts/**/*.js'],
|
||||
darkMode: BLOG.appearance === 'class' ? 'media' : 'class', // or 'media' or 'class'
|
||||
theme: {
|
||||
fontFamily: {
|
||||
sans: ['"IBM Plex Sans"', ...fontFamily.sans, ...fontSansCJK],
|
||||
serif: ['"Source Serif"', ...fontFamily.serif, ...fontSerifCJK],
|
||||
noEmoji: [
|
||||
'"IBM Plex Sans"',
|
||||
'ui-sans-serif',
|
||||
'system-ui',
|
||||
'-apple-system',
|
||||
'BlinkMacSystemFont',
|
||||
'sans-serif'
|
||||
]
|
||||
},
|
||||
extend: {
|
||||
colors: {
|
||||
day: {
|
||||
|
||||
Reference in New Issue
Block a user