diff --git a/components.json b/components.json new file mode 100644 index 0000000..1e96caa --- /dev/null +++ b/components.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": true, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/app/globals.css", + "baseColor": "gray", + "cssVariables": true, + "prefix": "" + }, + "iconLibrary": "lucide", + "rtl": false, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "registries": {} +} diff --git a/mdx-components.tsx b/mdx-components.tsx deleted file mode 100644 index dcb8294..0000000 --- a/mdx-components.tsx +++ /dev/null @@ -1,176 +0,0 @@ -import type { MDXComponents } from "mdx/types"; -import { Callout } from "@/components/ui/Callout"; -import { Card, Cards } from "@/components/ui/Card"; -import { CodeBlock } from "@/components/ui/CodeBlock"; - -export function useMDXComponents(components: MDXComponents): MDXComponents { - return { - // Custom components available in all MDX files - Callout, - Card, - Cards, - CodeBlock, - - // Override default HTML elements for consistent styling - h1: ({ children, ...props }) => ( -
- {children} -
- ), - a: ({ children, href, ...props }) => ( - - {children} - - ), - ul: ({ children, ...props }) => ( -- {children} -- ), - code: ({ children, className, ...props }) => { - // Inline code (no className means it's inline) - if (!className) { - return ( -
- {children}
-
- );
- }
- return (
-
- {children}
-
- );
- },
- pre: ({ children, ...props }) => (
-
- {children}
-
- ),
- table: ({ children, ...props }) => (
-