Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

✨ feat: Change theme to dark purple style

Dillion Vermac03511cab2bd
diff --git a/app/(docs)/components/[slug]/page.tsx b/app/(docs)/components/[slug]/page.tsx
index cc73368c..f3c2b3e1 100644
--- a/app/(docs)/components/[slug]/page.tsx
+++ b/app/(docs)/components/[slug]/page.tsx
@@ -174,21 +174,13 @@ export default async function Component({ params }: Props) {
"grid w-full lg:grid-cols-2 grid-cols-1 gap-4 min-h-[500px] lg:min-h-[300px] p-8"
}
>
- <MagicCard
- borderRadius={16}
- // background="radial-gradient(var(--mask-size) circle at var(--mouse-x) var(--mouse-y),#ffaa40 0,#9c40ff 50%,transparent 100%)"
- className="cursor-pointer shadow-2xl flex flex-col justify-center items-center overflow-hidden bg-gradient-to-br dark:from-gray-800 dark:to-gray-900 from-gray-100 to-gray-200 p-6"
- >
- <p className="text-4xl font-semibold whitespace-nowrap text-gray-800 dark:text-gray-200">
+ <MagicCard className="cursor-pointer shadow-2xl flex flex-col justify-center items-center overflow-hidden bg-background p-6">
+ <p className="text-4xl font-medium whitespace-nowrap text-gray-800 dark:text-gray-200">
Magic
</p>
</MagicCard>
- <MagicCard
- borderRadius={16}
- // background="radial-gradient(var(--mask-size) circle at var(--mouse-x) var(--mouse-y),#ffaa40 0,#9c40ff 50%,transparent 100%)"
- className="cursor-pointer shadow-2xl flex justify-center items-center overflow-hidden bg-gradient-to-br dark:from-gray-800 dark:to-gray-900 from-gray-100 to-gray-200"
- >
- <p className="text-4xl font-semibold whitespace-nowrap text-gray-800 dark:text-gray-200">
+ <MagicCard className="cursor-pointer shadow-2xl flex justify-center items-center overflow-hidden bg-background">
+ <p className="text-4xl font-medium whitespace-nowrap text-gray-800 dark:text-gray-200">
Card
</p>
</MagicCard>
diff --git a/app/(docs)/components/layout.tsx b/app/(docs)/components/layout.tsx
index 7558bc00..a60891cb 100644
--- a/app/(docs)/components/layout.tsx
+++ b/app/(docs)/components/layout.tsx
@@ -4,15 +4,13 @@ interface ComponentLayoutProps {
export default function ComponentLayout({ children }: ComponentLayoutProps) {
return (
- <div className="">
- <div className="container flex-1 items-start">
- {/* <aside className="fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block">
+ <div className="container flex-1 items-start">
+ {/* <aside className="fixed top-14 z-30 -ml-2 hidden h-[calc(100vh-3.5rem)] w-full shrink-0 md:sticky md:block">
<ScrollArea className="h-full py-6 pl-8 pr-6 lg:py-8">
<DocsSidebarNav items={docsConfig.sidebarNav} />
</ScrollArea>
</aside> */}
- {children}
- </div>
+ {children}
</div>
);
}
diff --git a/app/(docs)/components/page.tsx b/app/(docs)/components/page.tsx
index 4a4eaf6a..8dca064f 100644
--- a/app/(docs)/components/page.tsx
+++ b/app/(docs)/components/page.tsx
@@ -8,7 +8,6 @@ export const metadata = constructMetadata({
title: "Components - Magic UI",
description:
"Beautiful UI components to make your landing page look stunning.",
- image: "https://magicuikit.com/api/og",
});
export default async function ComponentPage() {
@@ -23,7 +22,7 @@ export default async function ComponentPage() {
<div className="container max-w-4xl py-6 lg:py-10">
<div className="flex flex-col items-start gap-4 md:flex-row md:justify-between md:gap-8">
<div className="flex-1 space-y-4">
- <h1 className="inline-block font-heading text-4xl tracking-tight lg:text-5xl">
+ <h1 className="inline-block font-medium text-4xl lg:text-5xl">
Components
</h1>
<p className="text-xl text-muted-foreground">
diff --git a/app/(docs)/layout.tsx b/app/(docs)/layout.tsx
index 0250c39e..bc54b207 100644
--- a/app/(docs)/layout.tsx
+++ b/app/(docs)/layout.tsx
@@ -14,7 +14,10 @@ export default async function MarketingLayout({
return (
<div className="flex min-h-screen flex-col">
<SiteHeader user={user} />
- <main className="flex-1">{children}</main>
+ <main className="flex-1">
+ <div className="pointer-events-none h-screen absolute inset-0 bg-[radial-gradient(ellipse_80%_50%_at_50%_-20%,rgba(120,119,198,0.3),rgba(255,255,255,0))]" />
+ {children}
+ </main>
<SiteFooter />
</div>
);
diff --git a/app/(docs)/templates/page.tsx b/app/(docs)/templates/page.tsx
index e6865020..67747a30 100644
--- a/app/(docs)/templates/page.tsx
+++ b/app/(docs)/templates/page.tsx
@@ -6,7 +6,6 @@ import Link from "next/link";
export const metadata = constructMetadata({
title: "Templates - Magic UI",
description: "Beautiful templates to make your landing page look stunning.",
- image: "https://magicuikit.com/api/og",
});
export default async function TemplatePage() {
diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx
index 0250c39e..bc54b207 100644
--- a/app/(marketing)/layout.tsx
+++ b/app/(marketing)/layout.tsx
@@ -14,7 +14,10 @@ export default async function MarketingLayout({
return (
<div className="flex min-h-screen flex-col">
<SiteHeader user={user} />
- <main className="flex-1">{children}</main>
+ <main className="flex-1">
+ <div className="pointer-events-none h-screen absolute inset-0 bg-[radial-gradient(ellipse_80%_50%_at_50%_-20%,rgba(120,119,198,0.3),rgba(255,255,255,0))]" />
+ {children}
+ </main>
<SiteFooter />
</div>
);
diff --git a/app/(marketing)/page.tsx b/app/(marketing)/page.tsx
index 86b43a46..cbad00b7 100644
--- a/app/(marketing)/page.tsx
+++ b/app/(marketing)/page.tsx
@@ -13,7 +13,7 @@ export default async function Home() {
return (
<>
- <section className="space-y-6 pb-8 pt-20 md:pb-12 md:pt-10 lg:py-32">
+ <section className="space-y-6 pb-8 pt-20 md:pb-12 lg:py-32">
<div className="container flex max-w-[64rem] flex-col items-center gap-4 text-center">
<FadeIn className="z-10 flex flex-col items-center justify-center w-full h-full">
<Link
@@ -56,8 +56,8 @@ export default async function Home() {
delay={0.1}
className="z-10 flex flex-col items-center justify-center w-full h-full"
>
- <h1 className="font-heading text-3xl sm:text-5xl md:text-6xl lg:text-7xl">
- Create beautiful landing pages in minutes.
+ <h1 className="font-medium text-5xl sm:text-6xl md:text-7xl lg:text-8xl">
+ Create Magical <br /> Landing Pages
</h1>
</FadeIn>
<FadeIn
@@ -65,8 +65,8 @@ export default async function Home() {
delay={0.2}
>
<p className="max-w-[42rem] leading-normal text-muted-foreground sm:text-xl sm:leading-8">
- Magic UI is a curated collection of beautiful landing page
- components built using React + Tailwind CSS + Framer Motion
+ Magic UI is a curated collection of React + Tailwind CSS + Framer
+ Motion components
</p>
</FadeIn>
<FadeIn
diff --git a/app/layout.tsx b/app/layout.tsx
index 1184b8b7..9621b9de 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -2,7 +2,7 @@ import { Analytics } from "@/components/analytics";
import { ThemeProvider } from "@/components/theme-provider";
import { Toaster } from "@/components/ui/toaster";
import { fontSans } from "@/lib/fonts";
-import { cn, constructMetadata } from "@/lib/utils";
+import { absoluteUrl, cn, constructMetadata } from "@/lib/utils";
import "@/styles/globals.css";
import "@/styles/mdx.css";
import { Metadata } from "next";
@@ -11,7 +11,7 @@ export const metadata: Metadata = constructMetadata({
title: "Magic UI",
description:
"Beautiful UI components and templates to make your landing page look stunning.",
- image: "https://magicuikit.com/api/og",
+ image: absoluteUrl("/api/og"),
});
export default function RootLayout({
diff --git a/assets/images/og-bg.png b/assets/images/og-bg.png
index 9644e15d..b2fb0960 100644
Binary files a/assets/images/og-bg.png and b/assets/images/og-bg.png differ
diff --git a/components/component-wrapper.tsx b/components/component-wrapper.tsx
index 57889ce4..18495d0c 100644
--- a/components/component-wrapper.tsx
+++ b/components/component-wrapper.tsx
@@ -8,6 +8,9 @@ const ComponentWrapper = ({
className: string;
children: any;
}) => {
+ const mask =
+ "linear-gradient(to bottom,transparent,#fff var(--mask-offset) calc(100% - var(--mask-offset)),transparent),linear-gradient(to right,transparent,#fff var(--mask-offset) calc(100% - var(--mask-offset)),transparent)";
+
return (
<div
className={cn(
@@ -24,10 +27,9 @@ const ComponentWrapper = ({
)}
style={
{
- "--mask-offset": "50px",
- mask: "linear-gradient(to bottom,transparent,#fff var(--mask-offset) calc(100% - var(--mask-offset)),transparent),linear-gradient(to right,transparent,#fff var(--mask-offset) calc(100% - var(--mask-offset)),transparent)",
- WebkitMask:
- "linear-gradient(to bottom,transparent,#fff var(--mask-offset) calc(100% - var(--mask-offset)),transparent),linear-gradient(to right,transparent,#fff var(--mask-offset) calc(100% - var(--mask-offset)),transparent)",
+ "--mask-offset": "80px",
+ mask: mask,
+ WebkitMask: mask,
maskComposite: "intersect",
WebkitMaskComposite: "source-in, xor",
// backgroundImage: `linear-gradient(to right,#1f2937 1px, transparent 1px), linear-gradient(to bottom,#1f2937 1px,transparent 1px)`,
diff --git a/components/magicui/magic-card.tsx b/components/magicui/magic-card.tsx
index 4a971fae..f803a82d 100644
--- a/components/magicui/magic-card.tsx
+++ b/components/magicui/magic-card.tsx
@@ -195,11 +195,11 @@ export function MagicCard({
className,
children,
size = 600,
- borderColor = "#475569",
+ borderColor = "rgba(120,119,198)",
borderWidth = 1,
borderRadius = 16,
spotlight = true,
- spotlightColor = "rgba(255,255,255,0.03)",
+ spotlightColor = "rgba(120,119,198,0.08)",
isolated = true,
background = `rgba(255,255,255,0.1)`,
}: MagicCardProps) {
diff --git a/components/site-footer.tsx b/components/site-footer.tsx
index 64b871dc..fec0d4ca 100644
--- a/components/site-footer.tsx
+++ b/components/site-footer.tsx
@@ -2,7 +2,14 @@ import { siteConfig } from "@/config/site";
export function SiteFooter() {
return (
- <footer className="py-6 md:px-8 md:py-0 border-t">
+ <footer className="relative py-6 md:px-8 md:py-0">
+ <div
+ className="absolute w-full h-px top-0"
+ style={{
+ background:
+ "radial-gradient(50% 100% at 50% 100%,rgba(255,255,255,.12) 0%,rgba(255,255,255,0) 100%)",
+ }}
+ ></div>
<div className="container flex flex-col items-center justify-between gap-4 md:h-16 md:flex-row">
<p className="text-center text-sm leading-loose text-muted-foreground md:text-left">
Brought to you by{" "}
@@ -12,7 +19,7 @@ export function SiteFooter() {
rel="noreferrer"
className="font-medium underline underline-offset-4"
>
- dillionverma
+ dillion
</a>
.
</p>
diff --git a/components/site-header.tsx b/components/site-header.tsx
index 27d63132..372f98e0 100644
--- a/components/site-header.tsx
+++ b/components/site-header.tsx
@@ -2,7 +2,6 @@ import { CommandMenu } from "@/components/command-menu";
import { Icons } from "@/components/icons";
import { MainNav } from "@/components/main-nav";
import { MobileNav } from "@/components/mobile-nav";
-import { ModeToggle } from "@/components/mode-toggle";
import { buttonVariants } from "@/components/ui/button";
import { UserAccountNav } from "@/components/user-account-nav";
import { siteConfig } from "@/config/site";
@@ -16,7 +15,7 @@ interface SiteHeaderProps {
export function SiteHeader({ user }: SiteHeaderProps) {
return (
- <header className="supports-backdrop-blur:bg-background/60 sticky top-0 z-40 w-full border-b bg-background/60 backdrop-blur">
+ <header className="supports-backdrop-blur:bg-background/60 sticky top-0 z-40 w-full backdrop-blur">
<div className="container flex h-16 items-center">
<MainNav />
<MobileNav />
@@ -59,7 +58,7 @@ export function SiteHeader({ user }: SiteHeaderProps) {
<span className="sr-only">Twitter</span>
</div>
</Link>
- <ModeToggle />
+ {/* <ModeToggle /> */}
{user && (
<UserAccountNav
@@ -85,6 +84,13 @@ export function SiteHeader({ user }: SiteHeaderProps) {
</nav>
</div>
</div>
+ <div
+ className="absolute w-full h-px bottom-0"
+ style={{
+ background:
+ "radial-gradient(50% 100% at 50% 100%,rgba(255,255,255,.12) 0%,rgba(255,255,255,0) 100%)",
+ }}
+ ></div>
</header>
);
}
diff --git a/lib/utils.ts b/lib/utils.ts
index 9f2efcdd..b945ae1c 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -39,7 +39,7 @@ export function absoluteUrl(path: string) {
export function constructMetadata({
title = "Magic UI - Modern React + Tailwind CSS components & Templates",
description = "Magic UI is a curated collection of the best landing page components built using React + Tailwind CSS + Framer Motion",
- image = "https://magicuikit.com/og.png",
+ image = absoluteUrl("/api/og"),
...props
}: {
title?: string;
diff --git a/styles/globals.css b/styles/globals.css
index 332588b6..2259c0e3 100644
--- a/styles/globals.css
+++ b/styles/globals.css
@@ -38,35 +38,35 @@
}
.dark {
- --background: 221 39% 11%;
+ --background: 233 100% 4%;
--foreground: 0 0% 98%;
- --muted: 216 34% 17%;
+ --muted: 216 34% 10%;
--muted-foreground: 220 9% 46%;
--popover: var(--background);
- --popover-foreground: 0 0% 98%;
+ --popover-foreground: var(--foreground);
--card: var(--background);
- --card-foreground: 0 0% 98%;
+ --card-foreground: var(--foreground);
- --border: 216 34% 17%;
- --input: 216 34% 17%;
+ --border: var(--muted);
+ --input: var(--muted);
- --primary: 0 0% 98%;
+ --primary: var(--foreground);
--primary-foreground: 240 5.9% 10%;
- --secondary: 216 34% 17%;
- --secondary-foreground: 0 0% 98%;
+ --secondary: var(--muted);
+ --secondary-foreground: var(--foreground);
- --accent: 216 34% 17%;
+ --accent: var(--muted);
--accent-foreground: ;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;
- --ring: 216 34% 17%;
+ --ring: var(--muted);
}
}