UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: add legacy docs
Dillion Verma02059f6aacba
diff --git a/apps/www/components/site-header.tsx b/apps/www/components/site-header.tsxindex e6ec0692..e5c9b5ff 100644--- a/apps/www/components/site-header.tsx+++ b/apps/www/components/site-header.tsx@@ -17,7 +17,6 @@ export async function SiteHeader() {<div className="3xl:fixed:container flex h-(--header-height) items-center gap-2 **:data-[slot=separator]:!h-4"><MobileNav className="flex lg:hidden" /><LogoButton />- <VersionSelect className="hidden lg:flex" /><MainNav items={docsConfig.mainNav} className="hidden lg:flex" /><div className="flex flex-1 items-center justify-between gap-2 md:justify-end"><div className="ml-auto flex items-center gap-2 md:flex-1 md:justify-end">diff --git a/apps/www/config/docs.ts b/apps/www/config/docs.tsindex 0a72c509..f64c2ac1 100644--- a/apps/www/config/docs.ts+++ b/apps/www/config/docs.ts@@ -36,12 +36,6 @@ export const docsConfig: DocsConfig = {href: "/docs/installation",items: [],},- {- title: "Tailwind v4",- href: "/docs/tailwind-v4",- items: [],- label: "",- },{title: "MCP",href: "/docs/mcp",@@ -54,6 +48,12 @@ export const docsConfig: DocsConfig = {items: [],label: "New",},+ {+ title: "Legacy",+ href: "/docs/legacy",+ items: [],+ label: "",+ },],},{diff --git a/apps/www/content/docs/legacy.mdx b/apps/www/content/docs/legacy.mdxnew file mode 100644index 00000000..30a2817a--- /dev/null+++ b/apps/www/content/docs/legacy.mdx@@ -0,0 +1,13 @@+---+title: Legacy Versions+description: Documentation for older versions of Magic UI.+date: 2025-04-08+---++## Legacy Version (Tailwind v3)++For older Magic UI components using Tailwind CSS v3, visit: [v3.magicui.design](https://v3.magicui.design)++## Upgrading++To upgrade from legacy to current version, follow the migration guide: [https://ui.shadcn.com/docs/tailwind-v4](https://ui.shadcn.com/docs/tailwind-v4)diff --git a/apps/www/content/docs/tailwind-v4.mdx b/apps/www/content/docs/tailwind-v4.mdxdeleted file mode 100644index 220266c8..00000000--- a/apps/www/content/docs/tailwind-v4.mdx+++ /dev/null@@ -1,19 +0,0 @@-----title: Tailwind v4-description: We've released a new version of Magic UI that uses Tailwind CSS v4.-date: 2025-04-08------Magic UI now supports Tailwind v4 and React 19 by default.--## How to use Tailwind v4--You can start by going to any component and following the instructions. Try [marquee](/components/marquee) for example.--## How to use Tailwind v3--If you're using tailwind v3, you can head over to [v3.magicui.design](https://v3.magicui.design) and follow the instructions there.--## How to upgrade your project to Tailwind v4--If you would like to upgrade your project to Tailwind v4, you can follow the steps here [https://ui.shadcn.com/docs/tailwind-v4](https://ui.shadcn.com/docs/tailwind-v4).