From 0f542346dbabd13c9a155125a76e06f75f2f5538 Mon Sep 17 00:00:00 2001 From: Fuma Nama Date: Wed, 18 Dec 2024 20:56:51 +0800 Subject: [PATCH] Docs: add `redirects` --- apps/docs/content/docs/ui/meta.json | 2 +- apps/docs/next.config.mjs | 14 ++++++++++++++ packages/ui/src/theme/colors.ts | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/docs/ui/meta.json b/apps/docs/content/docs/ui/meta.json index 86badbd60..e48b04952 100644 --- a/apps/docs/content/docs/ui/meta.json +++ b/apps/docs/content/docs/ui/meta.json @@ -19,6 +19,6 @@ "theme", "components", "mdx", - "blocks" + "layouts" ] } diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs index b839c6c12..59a3cffce 100644 --- a/apps/docs/next.config.mjs +++ b/apps/docs/next.config.mjs @@ -27,6 +27,20 @@ const config = { }, ], }, + async redirects() { + return [ + { + source: '/docs/ui/blocks/layout', + destination: '/docs/ui/layouts/docs', + permanent: true, + }, + { + source: '/docs/ui/blocks/:path*', + destination: '/docs/ui/layouts/:path*', + permanent: true, + }, + ]; + }, }; const withMDX = createMDX(); diff --git a/packages/ui/src/theme/colors.ts b/packages/ui/src/theme/colors.ts index 8776f0940..2fa1cc219 100644 --- a/packages/ui/src/theme/colors.ts +++ b/packages/ui/src/theme/colors.ts @@ -113,7 +113,7 @@ const neutral: Preset = { 'popover-foreground': '0 0% 88%', card: '0 0% 9.8%', 'card-foreground': '0 0% 98%', - border: '0 0% 18%', + border: '0 0% 14%', primary: '0 0% 98%', 'primary-foreground': '0 0% 9%', secondary: '0 0% 12.9%',