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.

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>
  );
}

Quality checks

Automated, in a real browser · 5d ago
—

More from Electric Ultramarine Engraving

The whole style →

Numbered Engraving Feature Grid

Feature sections

Weathered Texture Compare Hero

Heroes

Cobalt Engraving Hero

Heroes

Spaced Mono Navigation Bar

Headers & nav bars

Install Command Tabs

Code blocks

Condensed Uppercase Button Pair

Buttons