About
Minimalist monochrome SaaS navigation bar featuring a kinetic split-facet logo with specular sheen and right-click brand kit, gliding layoutId nav pill, seamless 3-column mega-menu with an interactive Swiss 20x20 dot-matrix poster card, and cursor-tracked specular hairline.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Monochrome Mega Navbar to your project and fits it to your theme.
Code
How Monochrome Mega Navbar is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import React, { useEffect, useState } from 'react';
import {
DEFAULT_ACTIONS,
MonochromeMegaNavbar,
type NavbarTheme,
} from '@/components/ui/monochrome-mega-navbar';
const settings = {
theme: 'auto',
brandName: 'Vektor',
openOnHover: true,
showSpotlightCard: true,
vermilionAccent: false,
showDemoButton: true,
defaultOpenMenu: 'none',
};
type DemoSettings = Partial<typeof settings>;
function resolveTheme(value: unknown): NavbarTheme {
if (value === 'light' || value === 'dark' || value === 'auto') {
return value;
}
return 'auto';
}
function resolveInitialMenu(value: unknown): string | null {
if (value === 'products' || value === 'resources') {
return value;
}
return null;
}
const PREVIEW_TOKENS: Record<
NavbarTheme,
{
pageBg: string;
railBorder: string;
pill: string;
barStrong: string;
barMuted: string;
btnPrimary: string;
btnSecondary: string;
card: string;
toast: string;
toastLabel: string;
}
> = {
auto: {
pageBg: 'bg-white dark:bg-black',
railBorder: 'border-zinc-200/70 dark:border-zinc-800/70',
pill: 'border-zinc-200 dark:border-zinc-800 bg-zinc-100/70 dark:bg-zinc-900/70',
barStrong: 'bg-zinc-200/85 dark:bg-zinc-800/80',
barMuted: 'bg-zinc-100 dark:bg-zinc-900',
btnPrimary: 'bg-zinc-900/15 dark:bg-zinc-100/15',
btnSecondary: 'border-zinc-200 dark:border-zinc-800 bg-transparent',
card: 'border-zinc-200/80 dark:border-zinc-800/80 bg-zinc-50/50 dark:bg-zinc-950/60',
toast: 'border-zinc-200 dark:border-zinc-800 bg-zinc-50 dark:bg-zinc-950 text-zinc-500 dark:text-zinc-400',
toastLabel: 'text-zinc-900 dark:text-zinc-100',
},
light: {
pageBg: 'bg-white',
railBorder: 'border-zinc-200/70',
pill: 'border-zinc-200 bg-zinc-100/70',
barStrong: 'bg-zinc-200/85',
barMuted: 'bg-zinc-100',
btnPrimary: 'bg-zinc-900/15',
btnSecondary: 'border-zinc-200 bg-transparent',
card: 'border-zinc-200/80 bg-zinc-50/50',
toast: 'border-zinc-200 bg-zinc-50 text-zinc-500',
toastLabel: 'text-zinc-900',
},
dark: {
pageBg: 'bg-black',
railBorder: 'border-zinc-800/70',
pill: 'border-zinc-800 bg-zinc-900/70',
barStrong: 'bg-zinc-800/80',
barMuted: 'bg-zinc-900',
btnPrimary: 'bg-zinc-100/15',
btnSecondary: 'border-zinc-800 bg-transparent',
card: 'border-zinc-800/80 bg-zinc-950/60',
toast: 'border-zinc-800 bg-zinc-950 text-zinc-400',
toastLabel: 'text-zinc-100',
},
};
export function Demo(props: DemoSettings = {}) {
const merged = { ...settings, ...props };
const resolvedTheme = resolveTheme(merged.theme);
const initialMenu = resolveInitialMenu(merged.defaultOpenMenu);
const surface = PREVIEW_TOKENS[resolvedTheme];
const [activeMenuId, setActiveMenuId] = useState<string | null>(initialMenu);
const [lastSelected, setLastSelected] = useState<string | null>(null);
useEffect(() => {
setActiveMenuId(initialMenu);
}, [initialMenu]);
const actions = merged.showDemoButton
? DEFAULT_ACTIONS
: DEFAULT_ACTIONS.filter((action) => action.id !== 'get-a-demo');
return (
<div className={`flex min-h-screen w-full flex-col ${surface.pageBg}`}>
<MonochromeMegaNavbar
theme={resolvedTheme}
brandName={
typeof merged.brandName === 'string' && merged.brandName.trim()
? merged.brandName
: 'Vektor'
}
openOnHover={Boolean(merged.openOnHover)}
showSpotlightCard={Boolean(merged.showSpotlightCard)}
vermilionAccent={Boolean(merged.vermilionAccent)}
actions={actions}
activeMenuId={activeMenuId}
onActiveMenuChange={setActiveMenuId}
onNavigate={(payload) => {
setLastSelected(`${payload.label} (${payload.href ?? '#'})`);
}}
/>
{/* Minimalist Architectural Skeleton Hero Backdrop */}
<main
aria-label="Page skeleton preview"
className="mx-auto flex w-full max-w-[1440px] flex-1 flex-col px-6 sm:px-10 lg:px-14"
>
<div className={`flex flex-1 flex-col justify-center border-x ${surface.railBorder} px-6 py-14 sm:px-12 sm:py-16`}>
{/* Centered Hero Wireframe Skeleton */}
<div className="mx-auto flex max-w-[680px] flex-col items-center">
{/* Eyebrow Pill Skeleton */}
<div className={`h-6 w-36 rounded-full border ${surface.pill}`} />
{/* Headline Skeleton Bars */}
<div className="mt-7 flex w-full flex-col items-center gap-3">
<div className={`h-8 w-[88%] max-w-[520px] rounded-[4px] sm:h-10 ${surface.barStrong}`} />
<div className={`h-8 w-[62%] max-w-[360px] rounded-[4px] sm:h-10 ${surface.barStrong}`} />
</div>
{/* Subcopy Skeleton Bars */}
<div className="mt-6 flex w-full flex-col items-center gap-2">
<div className={`h-3 w-[78%] max-w-[440px] rounded-full ${surface.barMuted}`} />
<div className={`h-3 w-[56%] max-w-[320px] rounded-full ${surface.barMuted}`} />
</div>
{/* Action Button Skeletons */}
<div className="mt-8 flex items-center gap-3">
<div className={`h-9 w-32 rounded-md ${surface.btnPrimary}`} />
<div className={`h-9 w-28 rounded-md border ${surface.btnSecondary}`} />
</div>
</div>
{/* 3-Column Bento Wireframe Strip */}
<div className="mt-14 grid grid-cols-1 gap-4 sm:grid-cols-3">
{[0, 1, 2].map((idx) => (
<div
key={idx}
className={`flex flex-col justify-between rounded-[4px] border p-5 ${surface.card}`}
>
<div className={`h-7 w-7 rounded-[4px] ${surface.barMuted}`} />
<div className="mt-8 space-y-2.5">
<div className={`h-3.5 w-2/5 rounded-[3px] ${surface.barStrong}`} />
<div className={`h-2.5 w-full rounded-full ${surface.barMuted}`} />
<div className={`h-2.5 w-4/5 rounded-full ${surface.barMuted}`} />
</div>
</div>
))}
</div>
{/* Interactive Click Feedback Pill */}
{lastSelected && (
<div className="mt-8 flex justify-center">
<div
className={`inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[12px] ${surface.toast}`}
>
<span>Navigated to</span>
<span className={surface.toastLabel}>{lastSelected}</span>
</div>
</div>
)}
</div>
</main>
</div>
);
}
export const demo = Demo;
export default Demo;
















