From c863dca62ce3568898e37d9bba2080210a555b2e Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:48:21 +0000 Subject: [PATCH] wip --- .vitepress/hooks/Template.vue | 20 ++++++++++++++++++-- package.json | 3 ++- pnpm-lock.yaml | 8 ++++++++ unocss.config.ts | 3 +++ 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/.vitepress/hooks/Template.vue b/.vitepress/hooks/Template.vue index f6c370a2d..5fa164688 100644 --- a/.vitepress/hooks/Template.vue +++ b/.vitepress/hooks/Template.vue @@ -5,7 +5,24 @@ defineProps<{ title: string; description?: string }>() diff --git a/package.json b/package.json index d377db835..4dbb06cbe 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,9 @@ "postinstall": "nitropack prepare" }, "dependencies": { + "@fmhy/colors": "^0.0.10", "@headlessui/vue": "^1.7.17", "@resvg/resvg-js": "^2.6.0", - "vitepress": "npm:@taskylizard/vitepress@1.0.10", "consola": "^3.2.3", "feed": "^4.2.2", "fs-extra": "^11.2.0", @@ -28,6 +28,7 @@ "nprogress": "^0.2.0", "pathe": "^1.1.2", "unocss": "^0.58.4", + "vitepress": "npm:@taskylizard/vitepress@1.0.10", "vue": "^3.4.15", "x-satori": "^0.1.5", "zod": "^3.22.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ee371defb..918caf378 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: + '@fmhy/colors': + specifier: ^0.0.10 + version: 0.0.10 '@headlessui/vue': specifier: ^1.7.17 version: 1.7.17(vue@3.4.15) @@ -1066,6 +1069,11 @@ packages: engines: {node: '>=14'} dev: false + /@fmhy/colors@0.0.10: + resolution: {integrity: sha512-iie+ZqDTbDesUACCNX6xE2SEYD8jdU5Jh4wYgoyHHsLtaxzbX1Tc2jUzG6Mn10kdPFXV04RChELSRlglv128Xg==} + engines: {node: '>=18.16.1'} + dev: false + /@headlessui/vue@1.7.17(vue@3.4.15): resolution: {integrity: sha512-hmJChv8HzKorxd9F70RGnECAwZfkvmmwOqreuKLWY/19d5qbWnSdw+DNbuA/Uo6X5rb4U5B3NrT+qBKPmjhRqw==} engines: {node: '>=10'} diff --git a/unocss.config.ts b/unocss.config.ts index c41b2bca6..1f4835384 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -1,4 +1,5 @@ import { defineConfig, presetUno, presetAttributify, presetIcons } from 'unocss' +import { colors, shortcuts } from '@fmhy/colors' export default defineConfig({ content: { @@ -6,6 +7,7 @@ export default defineConfig({ }, theme: { colors: { + colors, primary: 'var(--vp-c-brand-1)', bg: 'var(--vp-c-bg)', 'bg-alt': 'var(--vp-c-bg-alt)', @@ -15,6 +17,7 @@ export default defineConfig({ div: 'var(--vp-c-divider)' } }, + shortcuts, presets: [ presetUno(), presetAttributify(),