diff --git a/.vscode/settings.json b/.vscode/settings.json index 82b27d7..f9a8a7e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -81,6 +81,7 @@ "msvalidate", "noopener", "noreferrer", + "oklch", "overlayscrollbars", "pagefind", "partytown", diff --git a/src/components/Comments/Waline.astro b/src/components/Comments/Waline.astro index 72bb1ff..a079c74 100644 --- a/src/components/Comments/Waline.astro +++ b/src/components/Comments/Waline.astro @@ -19,7 +19,12 @@ const walineConfigJson = JSON.stringify({ emoji, search, imageUploader, -}); +}) + +const { + light: { primary: lightPrimary, secondary: lightSecondary, background: lightBackground }, + dark: { primary: darkPrimary, secondary: darkSecondary, background: darkBackground }, +} = themeConfig.color ---
@@ -34,7 +39,7 @@ function initWaline() { init({ el: '#waline', path: window.location.pathname.replace(/^\/([a-z]{2}(-[a-z]{2})?)\//, '/'), - dark: 'auto', + dark: 'html.dark', requiredMeta: ['nick', 'mail'], highlighter: false, texRenderer: false, @@ -46,3 +51,114 @@ function initWaline() { initWaline() document.addEventListener('astro:after-swap', initWaline) + + + + diff --git a/src/components/PhotoSwipe.astro b/src/components/PhotoSwipe.astro index 0bd4215..999e395 100644 --- a/src/components/PhotoSwipe.astro +++ b/src/components/PhotoSwipe.astro @@ -49,3 +49,27 @@ document.addEventListener('astro:page-load', createPhotoSwipe) document.addEventListener('astro:before-swap', cleanup) + + diff --git a/src/config.ts b/src/config.ts index 1b9fa0f..59a59dc 100644 --- a/src/config.ts +++ b/src/config.ts @@ -16,16 +16,24 @@ export const themeConfig: ThemeConfig = { color: { mode: 'light', // light, dark light: { - primary: '#17191A', // accent color for title - secondary: '#505050', // secondary color for text - background: '#FAEDE4', // background color - codeTheme: 'github-light', // code block theme. See more at https://shiki.style/themes and https://vscodethemes.com/ + // title color + primary: 'oklch(20% 0 0)', + // text color + secondary: 'oklch(40% 0 0)', + // background color + background: 'oklch(95% 0.018 57)', + // code block theme + codeTheme: 'github-light', }, dark: { - primary: '#BEBEBE', // accent color for title - secondary: '#A0A09F', // secondary color for text - background: '#161616', // background color - codeTheme: 'github-dark', // code block theme. See more at https://shiki.style/themes and https://vscodethemes.com/ + // title color + primary: 'oklch(80% 0 0)', + // text color + secondary: 'oklch(70% 0 0)', + // background color + background: 'oklch(20% 0 0)', + // code block theme + codeTheme: 'github-dark', }, }, // COLOR SETTINGS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> END diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index eb57eae..5633acd 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -14,7 +14,6 @@ import { getPagePath } from '@/utils/path' import '@/styles/font.css' import '@/styles/global.css' import '@/styles/heti.css' -import '@/styles/photoswipe.css' interface Props { postTitle?: string diff --git a/src/pages/posts/[slug].astro b/src/pages/posts/[slug].astro index ccf30cd..aeeb49d 100644 --- a/src/pages/posts/[slug].astro +++ b/src/pages/posts/[slug].astro @@ -25,7 +25,7 @@ const { Content, remarkPluginFrontmatter } = await post.render() postDescription={post.data.description} postImage={post.data.image} > -