Cards & content / Badges & tags
Outlined Mono Tier Chips
Small uppercase condensed labels with a 1px cobalt outline and square corners (FREE, PLUS, SUPER, ULTRA), plus a solid cobalt 'POPULAR' variant.
Rebuilt from hermes-agent.nousresearch.com in the Electric Ultramarine Engraving style.
npx shadcn@latest add https://justyoink.it/r/electric-ultramarine-engraving/blocks/outlined-tier-chips.json
Looks exactly like hermes-agent.nousresearch.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/electric-ultramarine-engraving/mine/outlined-tier-chips.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
Pass `tiers` (labels), `popular` (which tier gets the solid badge beside it), `popularLabel`, and optional `defaultActive`/`onSelect` to use the outlined chips as inverting filters.
components/outlined-tier-chips.tsx
import { useState } from "react"; type Props = { tiers?: string[]; popular?: string; popularLabel?: string; defaultActive?: string | null; onSelect?: (tier: string) => void; }; export default function OutlinedMonoTierChips({ tiers = ["Free", "Plus", "Super", "Ultra"], popular = "Plus", popularLabel = "Popular", defaultActive = null, onSelect, }: Props) { const [active, setActive] = useState<string | null>(defaultActive); return ( <section className="bg-paper p-8 text-cobalt-deep"> <ul className="flex flex-wrap items-center gap-3" aria-label="Plan tiers"> {tiers.map((t) => { const on = active === t; return ( <li key={t} className="flex items-center gap-2"> <button type="button" aria-pressed={on} onClick={() => { setActive(on ? null : t); onSelect?.(t); }} className={"border border-cobalt px-[5px] py-[1px] font-display text-[12px] uppercase leading-[16px] tracking-[0.02em] rounded-none transition-colors duration-nav-hover ease-nav-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-cobalt " + (on ? "bg-cobalt text-paper" : "bg-transparent text-cobalt hover:bg-cobalt hover:text-paper")} > {t} </button> {t === popular && ( <span className="bg-cobalt px-[6px] py-[1px] font-display text-[12px] uppercase leading-[16px] tracking-[0.04em] text-paper rounded-none"> {popularLabel} </span> )} </li> ); })} </ul> </section> ); }import { useState } from "react"; type Props = { tiers?: string[]; popular?: string; popularLabel?: string; defaultActive?: string | null; onSelect?: (tier: string) => void; }; export default function OutlinedMonoTierChips({ tiers = ["Free", "Plus", "Super", "Ultra"], popular = "Plus", popularLabel = "Popular", defaultActive = null, onSelect, }: Props) { const [active, setActive] = useState<string | null>(defaultActive); return ( <section className="bg-foreground p-8 text-primary/90"> <ul className="flex flex-wrap items-center gap-3" aria-label="Plan tiers"> {tiers.map((t) => { const on = active === t; return ( <li key={t} className="flex items-center gap-2"> <button type="button" aria-pressed={on} onClick={() => { setActive(on ? null : t); onSelect?.(t); }} className={"border border-background px-[5px] py-[1px] font-sans text-[12px] uppercase leading-[16px] tracking-[0.02em] rounded-none transition-colors duration-electric-nav-hover ease-electric-nav-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-background " + (on ? "bg-background text-foreground" : "bg-transparent text-background hover:bg-background hover:text-foreground")} > {t} </button> {t === popular && ( <span className="bg-background px-[6px] py-[1px] font-sans text-[12px] uppercase leading-[16px] tracking-[0.04em] text-foreground rounded-none"> {popularLabel} </span> )} </li> ); })} </ul> </section> ); }
Quality checks
Automated, in a real browser · 5d 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: doesn't applyDoesn't animate, so there's nothing to check.