Transparent-Over-Hero Nav

Transparent on the hero, turns solid on scroll.

THE PROMPT

## Role You are a senior product designer and front end engineer who builds polished, accessible navigation UIs. ## Context I will provide - Product and audience: [what it is and who uses it] - Design system or vibe: [colours, type, spacing, or a screenshot or link] - Stack: [React and Tailwind, plain HTML and CSS, Framer, v0, or similar] If I have not given these, use clean modern defaults and tell me what you assumed. ## Build Build a nav bar that is transparent over the hero and becomes solid on scroll. - Transparent while layered over the hero, then solid with a subtle shadow once scrolled past - Links and logo stay legible in the transparent state, using a scrim or a light and dark aware treatment if needed ## States and interaction - Hover, focus, and current page states on the links - A smooth transition to the solid state ## Responsive - On mobile collapse the links into a menu and keep the toggle legible over the hero. ## Accessibility - Keep it keyboard operable with visible focus - Keep strong contrast in both states - Do not signal the current item by colour alone ## Output Production ready code in my stack, or a clear component spec if I have not named a stack. Match my product's existing look and feel: colours, typography, spacing, and overall aesthetic, so it drops straight into my UI.

How to use this prompt

1. Copy the prompt above.

2. Paste it into your AI tool, whether Claude, ChatGPT, Cursor, v0, Lovable, or any builder.

3. Add a screenshot of your existing UI so the result matches your colors, type, and spacing.