diff --git a/public/image/moon.svg b/public/image/moon.svg deleted file mode 100644 index 6cc6f30..0000000 --- a/public/image/moon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/image/sun.svg b/public/image/sun.svg deleted file mode 100644 index eb8a262..0000000 --- a/public/image/sun.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/image/theme toggle.svg b/public/image/theme toggle.svg new file mode 100644 index 0000000..ae92b95 --- /dev/null +++ b/public/image/theme toggle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Head.astro b/src/components/Head.astro index 6c6b924..7024d69 100644 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -28,8 +28,8 @@ const { cdn, commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '', - - + + @@ -94,9 +94,8 @@ const { cdn, commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '', diff --git a/src/components/ThemeToggle.astro b/src/components/ThemeToggle.astro index 95d85a0..01b1762 100644 --- a/src/components/ThemeToggle.astro +++ b/src/components/ThemeToggle.astro @@ -1,58 +1,33 @@ - - diff --git a/src/config/index.ts b/src/config/index.ts index 2467788..6e8f83b 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -18,7 +18,7 @@ export const themeConfig: ThemeConfig = { light: { primary: '#17191A', // title text color in light mode secondary: '#505050', // post text color in light mode - background: '#F7EEEC', // background color in light mode + background: '#FAEDE4', // background color in light mode }, dark: { primary: '#BEBEBE', // title text color in dark mode diff --git a/src/types/global.d.ts b/src/types/global.d.ts new file mode 100644 index 0000000..43cf01a --- /dev/null +++ b/src/types/global.d.ts @@ -0,0 +1,7 @@ +declare global { + interface Document { + startViewTransition: (callback: () => void) => void + } +} + +export {}