blog/src/types/index.d.ts
radishzzz 09fe7dcb37 refactor: remove text-62.5%, update site layout and add site footer
- Adjust font and typography settings across components
- Update footer with new links and start year configuration
- Modify header and navbar styling for responsive design
- Remove @unpic/astro dependency
- Refine global and component-level styling
- Update font preloading and font face definitions
2025-02-21 08:33:00 +00:00

88 lines
1.4 KiB
TypeScript

import type { langPath } from '@/utils/ui'
type Exclude<T, U> = T extends U ? never : T
export interface ThemeConfig {
site: {
title: string
subtitle: string
description: string
author: string
url: string
favicon: string
}
color: {
mode: 'light' | 'dark'
light: {
primary: string
secondary: string
background: string
codeTheme: string
}
dark: {
primary: string
secondary: string
background: string
codeTheme: string
}
}
global: {
locale: typeof langPath[number]
moreLocale: typeof langPath[number][]
fontStyle: 'sans' | 'serif'
titleSpace: 1 | 2 | 3
}
comment?: {
waline?: {
serverURL?: string
emoji?: string[]
search?: boolean
imageUploader?: boolean
}
}
seo?: {
twitterID?: string
verification?: {
google?: string
bing?: string
yandex?: string
baidu?: string
}
googleAnalyticsID?: string
umamiAnalyticsID?: string
follow?: {
feedID?: string
userID?: string
}
}
footer: {
linkA: {
name: string
url: string
}
linkB: {
name: string
url: string
}
linkC: {
name: string
url: string
}
startYear: string
}
preload: {
commentURL?: string
imageHostURL?: string
customGoogleAnalyticsJS?: string
customUmamiAnalyticsJS?: string
}
}
export default ThemeConfig