Beautiful map components. 100% Free, Zero config, one command setup.
TypeScript
style(docs): flatten select doc surfaces from bordered to bg-surface
Anmolacbfb652fb31
diff --git a/src/app/(main)/blocks/_components/block-viewer-code.tsx b/src/app/(main)/blocks/_components/block-viewer-code.tsxindex d0bfba0..308c435 100644--- a/src/app/(main)/blocks/_components/block-viewer-code.tsx+++ b/src/app/(main)/blocks/_components/block-viewer-code.tsx@@ -108,7 +108,7 @@ function FileTreeSidebar() {return (<SidebarProvider className="flex min-h-full! flex-col border-r">- <Sidebar collapsible="none" className="bg-card w-full flex-1">+ <Sidebar collapsible="none" className="w-full flex-1"><SidebarGroupLabel className="h-12 rounded-none border-b px-4 text-sm">Files</SidebarGroupLabel>diff --git a/src/app/(main)/docs/_components/code-block.tsx b/src/app/(main)/docs/_components/code-block.tsxindex 1214df3..6a2d5e8 100644--- a/src/app/(main)/docs/_components/code-block.tsx+++ b/src/app/(main)/docs/_components/code-block.tsx@@ -16,7 +16,7 @@ export async function CodeBlock({const highlighted = await highlightCode(code, language);return (- <div className="relative w-full overflow-hidden rounded-lg border">+ <div className="relative w-full overflow-hidden rounded-lg">{showCopyButton && (<div className="absolute top-2 right-2 z-10"><CodeCopyButton text={code} />diff --git a/src/app/(main)/docs/_components/component-preview-client.tsx b/src/app/(main)/docs/_components/component-preview-client.tsxindex 8b9756c..8eb822d 100644--- a/src/app/(main)/docs/_components/component-preview-client.tsx+++ b/src/app/(main)/docs/_components/component-preview-client.tsx@@ -47,7 +47,7 @@ export function ComponentPreviewClient({html={highlightedCode}/>{!expanded && (- <div className="from-background to-background/0 absolute inset-x-0 bottom-0 flex w-full items-center justify-center bg-linear-to-t pt-16 pb-6">+ <div className="from-surface to-surface/0 absolute inset-x-0 bottom-0 flex w-full items-center justify-center bg-linear-to-t pt-16 pb-6"><Buttonvariant="outline"size="sm"diff --git a/src/app/(main)/docs/_components/docs.tsx b/src/app/(main)/docs/_components/docs.tsxindex 561291d..d97eb1c 100644--- a/src/app/(main)/docs/_components/docs.tsx+++ b/src/app/(main)/docs/_components/docs.tsx@@ -136,7 +136,7 @@ interface DocsNoteProps {export function DocsNote({ children }: DocsNoteProps) {return (- <div className="bg-surface text-foreground/80 [&_strong]:text-foreground rounded-lg border px-5 py-4 text-[15px] leading-relaxed [&_strong]:font-medium">+ <div className="bg-surface text-foreground/80 [&_strong]:text-foreground rounded-lg px-5 py-4 text-[15px] leading-relaxed [&_strong]:font-medium">{children}</div>);diff --git a/src/app/(main)/docs/_components/install-command.tsx b/src/app/(main)/docs/_components/install-command.tsxindex 41c4124..e0eace5 100644--- a/src/app/(main)/docs/_components/install-command.tsx+++ b/src/app/(main)/docs/_components/install-command.tsx@@ -40,9 +40,9 @@ export function InstallCommand({ name }: InstallCommandProps) {};return (- <div className="relative w-full overflow-hidden rounded-lg border">+ <div className="bg-surface relative w-full overflow-hidden rounded-lg"><Tabs value={active} onValueChange={setActive} className="gap-0">- <div className="bg-code flex items-center justify-between border-b pr-2 pl-2">+ <div className="flex items-center justify-between border-b pr-2 pl-2"><TabsList variant="line" className="h-9 bg-transparent">{tabs.map((tab) => (<TabsTrigger@@ -66,7 +66,7 @@ export function InstallCommand({ name }: InstallCommandProps) {</div>{tabs.map((tab) => (<TabsContent key={tab.manager} value={tab.manager}>- <pre className="bg-code overflow-x-auto p-4 text-sm">+ <pre className="overflow-x-auto p-4 text-sm"><code className="font-mono" data-language="bash">{tab.command}</code>diff --git a/src/app/(main)/docs/page.tsx b/src/app/(main)/docs/page.tsxindex a474e78..de06598 100644--- a/src/app/(main)/docs/page.tsx+++ b/src/app/(main)/docs/page.tsx@@ -166,12 +166,10 @@ export default function IntroductionPage() {{features.map((feature) => (<divkey={feature.title}- className="bg-card space-y-3 rounded-lg border p-4"+ className="bg-surface space-y-3 rounded-lg p-4">- <div className="flex items-center gap-2">- <div className="bg-muted flex size-8 items-center justify-center rounded-md">- <feature.icon className="text-foreground size-4" />- </div>+ <div className="flex items-center gap-2.5">+ <feature.icon className="text-muted-foreground size-4" /><h3 className="text-foreground text-base font-medium">{feature.title}</h3>diff --git a/src/styles/globals.css b/src/styles/globals.cssindex a6ad0ce..2cf5d10 100644--- a/src/styles/globals.css+++ b/src/styles/globals.css@@ -83,7 +83,7 @@--sidebar-ring: oklch(0.708 0 0);--background: oklch(1 0 0);--foreground: oklch(0.145 0 0);- --surface: oklch(0.99 0 0);+ --surface: oklch(0.98 0 0);--code-number: oklch(0.69 0 0);--code: var(--surface);}