Skip to content

Commit

Permalink
fix: update font
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Mar 16, 2024
1 parent f54d0fc commit 458bfd2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/app/(mdx)/hooks/page.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 1.8
order: 2.9
---

# Hooks
Expand Down
6 changes: 5 additions & 1 deletion demo/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import "./index.css"
import type { SVGProps } from "react"
import Script from "next/script"
import { PresentSheet } from "~/sheet"
import { GeistMono } from "geist/font/mono"
import { GeistSans } from "geist/font/sans"

import { siteConfig } from "@/config/site"
import { LeftAside } from "@/components/layout/sidebar"
Expand Down Expand Up @@ -73,7 +75,9 @@ export default function RootLayout({ children }: RootLayoutProps) {
async
/>
</head>
<body className={"bg-background min-h-screen font-sans antialiased"}>
<body
className={`bg-background min-h-screen antialiased ${GeistSans.className}`}
>
<ThemeProvider>
<div className="relative flex min-h-screen flex-col">
<SiteHeader />
Expand Down
1 change: 1 addition & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"framer-motion": "^11.0.14",
"geist": "1.2.2",
"js-yaml": "4.1.0",
"lucide-react": "0.358.0",
"next": "^14",
Expand Down
3 changes: 0 additions & 3 deletions demo/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ module.exports = {
"accordion-up": "accordion-up 0.2s ease-out",
},
fontFamily: {
sans: 'Manrope,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',
serif:
'"Noto Serif CJK SC","Noto Serif SC",var(--font-serif),"Source Han Serif SC","Source Han Serif",source-han-serif-sc,SongTi SC,SimSum,"Hiragino Sans GB",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,"Microsoft YaHei","WenQuanYi Micro Hei",sans-serif',
mono: `"OperatorMonoSSmLig Nerd Font","Cascadia Code PL","FantasqueSansMono Nerd Font","operator mono",JetBrainsMono,"Fira code Retina","Fira code","Consolas", Monaco, "Hannotate SC", monospace, -apple-system`,
},
},
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 458bfd2

Please sign in to comment.