forked from ShrihariMohan/nextra-v3-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
42 lines (40 loc) · 999 Bytes
/
theme.config.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
logo: <span> Nextra v3 Template</span>,
head: () => {
// eslint-disable-next-line react-hooks/rules-of-hooks
let { title } = useConfig()
if (title) {
title += ' | Nextra v3 Template'
}
else title = 'Nextra v3 Template'
return (
<>
<title>{title}</title>
<meta property="og:title" content={title} />
<link rel="icon" href="/images/favicon.ico" sizes="any" />
</>
)
},
nextThemes: {
defaultTheme: 'light',
forcedTheme: 'light'
},
sidebar: {
toggleButton: true,
defaultMenuCollapseLevel: 1,
autoCollapse: true
},
toc: {
backToTop: true
},
color : {
lightness : {dark : 30 , light : 45 } ,
hue : {light : 274 , dark : 279 } ,
saturation : {light : 100 , dark : 100} ,
},
darkMode: false
}
export default config