From a84a6c837aa98d9cb4a9f41b3ec0500b5d327e47 Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Tue, 18 Jun 2024 18:29:33 +0800 Subject: [PATCH] feat: theme configuration Signed-off-by: ZTL-UwU --- app.config.ts | 9 ++++---- app.vue | 2 +- bun.lockb | Bin 522165 -> 522165 bytes components/ThemeCustomizer.vue | 19 ++++++++--------- components/ThemePopover.vue | 13 ++++++++++-- components/layout/Header.vue | 2 +- composables/useConfig.ts | 6 +++++- composables/useThemes.ts | 5 +++-- content/2.api/1.configuration.md | 14 +++++++++++++ content/2.api/2.themes.md | 34 ++----------------------------- types/index.d.ts | 6 +++++- 11 files changed, 55 insertions(+), 55 deletions(-) diff --git a/app.config.ts b/app.config.ts index be85f692..09d9b4ef 100644 --- a/app.config.ts +++ b/app.config.ts @@ -5,6 +5,11 @@ export default defineAppConfig({ description: 'Beautifully designed Nuxt Content template built with shadcn-vue. Customizable. Compatible. Open Source.', ogImage: '/hero.png', }, + theme: { + customizable: true, + color: 'zinc', + radius: 0.5, + }, header: { title: 'shadcn-docs', showTitle: true, @@ -12,7 +17,6 @@ export default defineAppConfig({ light: '/logo.svg', dark: '/logo-dark.svg', }, - themeCustomize: true, darkModeToggle: true, nav: [ { @@ -21,12 +25,10 @@ export default defineAppConfig({ title: 'Getting Started', to: '/getting-started', description: 'Start building your document with shadcn-docs-nuxt', - target: undefined, }, { title: 'API', to: '/api', description: 'Discover the configurations and exposed APIs.', - target: undefined, }], }, { @@ -56,7 +58,6 @@ export default defineAppConfig({ { title: 'Use This Template', to: '/getting-started/installation', - target: undefined, }, ], links: [{ diff --git a/app.vue b/app.vue index ab581b43..bedfb019 100644 --- a/app.vue +++ b/app.vue @@ -1,6 +1,6 @@