mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00
chore: update dependencies, enhance theme configuration, and improve layout structure
- Bump versions of several dependencies including @astrojs/mdx, astro, and vite. - Refactor theme configuration to include code themes for light and dark modes. - Update layout structure for better responsiveness and clarity. - Enable JavaScript in TypeScript configuration for broader compatibility. - Add new font styles and improve font-face definitions. - Clean up unused imports and commented-out code in index.astro. - Introduce global type definitions for Attributify attributes in JSX.
This commit is contained in:
parent
6ea0644928
commit
804cf72052
12 changed files with 375 additions and 257 deletions
8
src/types/global.d.ts
vendored
8
src/types/global.d.ts
vendored
|
@ -1,3 +1,11 @@
|
|||
import type { AttributifyAttributes } from '@unocss/preset-attributify'
|
||||
|
||||
declare global {
|
||||
namespace astroHTML.JSX {
|
||||
interface HTMLAttributes extends AttributifyAttributes {}
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Document {
|
||||
startViewTransition: (callback: () => void) => void
|
||||
|
|
2
src/types/index.d.ts
vendored
2
src/types/index.d.ts
vendored
|
@ -17,11 +17,13 @@ export interface ThemeConfig {
|
|||
primary: string
|
||||
secondary: string
|
||||
background: string
|
||||
codeTheme: string
|
||||
}
|
||||
dark: {
|
||||
primary: string
|
||||
secondary: string
|
||||
background: string
|
||||
codeTheme: string
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue