diff --git a/apps/guide/src/app/guide/layout.tsx b/apps/guide/src/app/guide/layout.tsx index 97db6fca3..dab30f0a7 100644 --- a/apps/guide/src/app/guide/layout.tsx +++ b/apps/guide/src/app/guide/layout.tsx @@ -1,5 +1,5 @@ import { DocsLayout } from 'fumadocs-ui/layouts/docs'; -import type { ReactNode } from 'react'; +import type { CSSProperties, ReactNode } from 'react'; import { baseOptions } from '@/app/layout.config'; import { source } from '@/lib/source'; @@ -13,17 +13,18 @@ export default function Layout({ children }: { readonly children: ReactNode }) { if (!meta || !node.icon) return option; // category selection color based on path src/styles/base.css - const color = `var(--${meta.file.path.split('/')[0]}-color, var(--color-fd-foreground))`; + const color = `var(--${meta.path.split('/')[0]}-color, var(--color-fd-foreground))`; return { ...option, icon: (