Cards & content / Badges & tags
Tracked Micro Label
9px uppercase Inter with very wide letter spacing, centred above sections as a quiet eyebrow (Showreel, About, Imagine Build Tell).
Rebuilt from epic.net in the Gallery Graphite Editorial style.
npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/blocks/tracked-section-label.json
Looks exactly like epic.net: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/mine/tracked-section-label.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: `text` (label copy, rendered uppercase), `as` (span | p | h2), and `className`. The label fades in over 350ms the first time it scrolls into view.
components/tracked-section-label.tsx
import { useEffect, useRef, useState } from "react"; export interface TrackedMicroLabelProps { text?: string; className?: string; as?: "span" | "p" | "h2"; } export default function TrackedMicroLabel({ text = "Observe, shape, share.", className = "", as = "span", }: TrackedMicroLabelProps) { const ref = useRef<HTMLElement | null>(null); const [visible, setVisible] = useState(false); useEffect(() => { const el = ref.current; if (!el) return; if (typeof IntersectionObserver === "undefined") { setVisible(true); return; } const io = new IntersectionObserver( (entries) => { if (entries.some((e) => e.isIntersecting)) { setVisible(true); io.disconnect(); } }, { threshold: 0.2 } ); io.observe(el); return () => io.disconnect(); }, []); const Tag = as as any; return ( <section className="w-full bg-canvas text-ink"> <div className="mx-auto flex max-w-[1200px] items-center justify-center border-b border-hairline py-10"> <Tag ref={ref} className={`section-label font-sans text-[9px] font-normal uppercase leading-none tracking-[0.5em] text-ink transition-opacity duration-[350ms] ease-[cubic-bezier(0.42,0,0.58,1)] motion-reduce:transition-none ${ visible ? "opacity-100" : "opacity-0" } ${className}`} > {text} </Tag> </div> </section> ); }import { useEffect, useRef, useState } from "react"; export interface TrackedMicroLabelProps { text?: string; className?: string; as?: "span" | "p" | "h2"; } export default function TrackedMicroLabel({ text = "Observe, shape, share.", className = "", as = "span", }: TrackedMicroLabelProps) { const ref = useRef<HTMLElement | null>(null); const [visible, setVisible] = useState(false); useEffect(() => { const el = ref.current; if (!el) return; if (typeof IntersectionObserver === "undefined") { setVisible(true); return; } const io = new IntersectionObserver( (entries) => { if (entries.some((e) => e.isIntersecting)) { setVisible(true); io.disconnect(); } }, { threshold: 0.2 } ); io.observe(el); return () => io.disconnect(); }, []); const Tag = as as any; return ( <section className="w-full bg-background text-foreground"> <div className="mx-auto flex max-w-[1200px] items-center justify-center border-b border-border py-10"> <Tag ref={ref} className={`section-label font-sans text-[9px] font-normal uppercase leading-none tracking-[0.5em] text-foreground transition-opacity duration-[350ms] ease-[cubic-bezier(0.42,0,0.58,1)] motion-reduce:transition-none ${ visible ? "opacity-100" : "opacity-0" } ${className}`} > {text} </Tag> </div> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.