Headers & navigation / Tab bars
Outlined Pill Anchor Nav
Row of fully rounded outlined pills (Teammates, Model pools, Routines…) with a muted plain link at the end, under a left-aligned large serif page title.
Rebuilt from silico.ai/features in the Moonlit Atelier style.
npx shadcn@latest add https://justyoink.it/r/moonlit-atelier/blocks/feature-pill-nav.json
Looks exactly like silico.ai: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/moonlit-atelier/mine/feature-pill-nav.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: title, description, pills (array of {label, href}), linkLabel and linkHref for the muted trailing link. Renders standalone with defaults; the title, description and nav fade up on load with a staggered delay.
components/feature-pill-nav.tsx
import { useEffect, useState } from "react"; type Item = { label: string; href: string }; export default function OutlinedPillAnchorNav({ title = "Each piece of Nimbus, explained in order.", description = "A short tour of what every area does, how to put it to work and where it lives. Each walkthrough follows the actual flow.", pills = [ { label: "Workspaces", href: "#workspaces" }, { label: "Data sources", href: "#data-sources" }, { label: "Schedules", href: "#schedules" }, { label: "Connectors", href: "#connectors" }, { label: "Recipes", href: "#recipes" }, ] as Item[], linkLabel = "Release notes", linkHref = "#release-notes", }: { title?: string; description?: string; pills?: Item[]; linkLabel?: string; linkHref?: string; }) { const [on, setOn] = useState(false); useEffect(() => { const t = requestAnimationFrame(() => setOn(true)); return () => cancelAnimationFrame(t); }, []); const rise = (delay: number) => `transition-all duration-[800ms] ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none ${ on ? "opacity-100 translate-y-0" : "opacity-0 translate-y-[12px]" }` + (delay ? "" : ""); return ( <section className="bg-canvas px-6 py-24 md:px-10 md:py-32"> <div className="mx-auto w-full max-w-[1360px]"> <h1 className={`max-w-[900px] font-serif text-[44px] leading-[1.02] tracking-[-0.02em] text-primary sm:text-[64px] md:text-[88px] ${rise(0)}`} > {title} </h1> <p style={{ transitionDelay: "100ms" }} className={`mt-6 max-w-[600px] font-sans text-lg leading-relaxed text-secondary ${rise(100)}`} > {description} </p> <nav aria-label="Sections" style={{ transitionDelay: "200ms" }} className={`mt-10 flex flex-wrap items-center gap-2 ${rise(200)}`} > {pills.map((p) => ( <a key={p.label} href={p.href} className="rounded-full border border-white/15 px-[15px] py-[8px] font-sans text-sm text-zinc-300 transition-colors duration-[180ms] ease-[cubic-bezier(0.23,1,0.32,1)] hover:border-white/40 hover:text-[#fafafa] focus-visible:border-white/40 focus-visible:text-[#fafafa] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/40" > {p.label} </a> ))} <a href={linkHref} className="ml-3 font-sans text-sm text-zinc-500 transition-colors hover:text-zinc-200 focus-visible:text-zinc-200 focus-visible:outline-none" > {linkLabel} </a> </nav> </div> </section> ); }import { useEffect, useState } from "react"; type Item = { label: string; href: string }; export default function OutlinedPillAnchorNav({ title = "Each piece of Nimbus, explained in order.", description = "A short tour of what every area does, how to put it to work and where it lives. Each walkthrough follows the actual flow.", pills = [ { label: "Workspaces", href: "#workspaces" }, { label: "Data sources", href: "#data-sources" }, { label: "Schedules", href: "#schedules" }, { label: "Connectors", href: "#connectors" }, { label: "Recipes", href: "#recipes" }, ] as Item[], linkLabel = "Release notes", linkHref = "#release-notes", }: { title?: string; description?: string; pills?: Item[]; linkLabel?: string; linkHref?: string; }) { const [on, setOn] = useState(false); useEffect(() => { const t = requestAnimationFrame(() => setOn(true)); return () => cancelAnimationFrame(t); }, []); const rise = (delay: number) => `transition-all duration-[800ms] ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none ${ on ? "opacity-100 translate-y-0" : "opacity-0 translate-y-[12px]" }` + (delay ? "" : ""); return ( <section className="bg-background px-6 py-24 md:px-10 md:py-32"> <div className="mx-auto w-full max-w-[1360px]"> <h1 className={`max-w-[900px] font-sans text-[44px] leading-[1.02] tracking-[-0.02em] text-foreground sm:text-[64px] md:text-[88px] ${rise(0)}`} > {title} </h1> <p style={{ transitionDelay: "100ms" }} className={`mt-6 max-w-[600px] font-sans text-lg leading-relaxed text-muted-foreground ${rise(100)}`} > {description} </p> <nav aria-label="Sections" style={{ transitionDelay: "200ms" }} className={`mt-10 flex flex-wrap items-center gap-2 ${rise(200)}`} > {pills.map((p) => ( <a key={p.label} href={p.href} className="rounded-full border border-foreground/15 px-[15px] py-[8px] font-sans text-sm text-zinc-300 transition-colors duration-[180ms] ease-[cubic-bezier(0.23,1,0.32,1)] hover:border-foreground/40 hover:text-foreground focus-visible:border-foreground/40 focus-visible:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-foreground/40" > {p.label} </a> ))} <a href={linkHref} className="ml-3 font-sans text-sm text-zinc-500 transition-colors hover:text-zinc-200 focus-visible:text-zinc-200 focus-visible:outline-none" > {linkLabel} </a> </nav> </div> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- Themeable: not passedTailwind palette colours instead of theme roles: text-zinc-300, text-zinc-500, text-zinc-200.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.