Page sections / Pricing

Tinted Column Pricing Table

Four-plan table with muted periwinkle text, thin row dividers, check icons, and the featured Plus column tinted pale lavender with a solid cobalt 'POPULAR' badge and a solid CTA while others use outline buttons. Preceded by plan tag chips and a full-width duotone illustration banner.

Rebuilt from hermes-agent.nousresearch.com in the Electric Ultramarine Engraving style.

npx shadcn@latest add https://justyoink.it/r/electric-ultramarine-engraving/blocks/plan-comparison-table.json

Looks exactly like hermes-agent.nousresearch.com: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: title, intro, footnote and plans (array of plan objects with name, popular, price, best, usage, topups, models, tools, hosting, rate, cta). Renders standalone with defaults; the plan marked popular gets the tinted column and solid CTA.

components/plan-comparison-table.tsx
"use client";

import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react";
type Plan = { name: string; popular?: boolean; price: string; best: string; usage: string; topups: boolean; models: string; tools: boolean | string; hosting: string; rate: string; cta: string };

const defaultPlans: Plan[] = [
  { name: "Starter", price: "$0, billed never", best: "Exploring on open models", usage: "Basic", topups: true, models: "Open models only", tools: false, hosting: "", rate: "Standard", cta: "Begin starter" },
  { name: "Studio", popular: true, price: "$18 / month", best: "Daily solo projects", usage: "Pooled", topups: true, models: "Open and premium models", tools: true, hosting: "2 GB memory, 10 GB storage", rate: "Elevated", cta: "Begin studio" },
  { name: "Team", price: "$90 / month", best: "Steady collaborative work", usage: "4× Studio", topups: true, models: "Open and premium models", tools: true, hosting: "4 GB memory, 80 GB storage", rate: "Elevated", cta: "Begin team" },
  { name: "Scale", price: "$180 / month", best: "Intensive production load", usage: "8× Studio", topups: true, models: "Open and premium models", tools: true, hosting: "8 GB memory, 160 GB storage", rate: "Elevated", cta: "Begin scale" },
];

const Check = () => (
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.2" aria-label="Included" role="img"><path d="M3 8.5l3.2 3L13 4.5" /></svg>
);

export default function TintedColumnPricingTable({
  title = "Aster Console",
  intro = "Every paid tier covers premium model access, bundled automation tools and a single hosted workspace",
  footnote = "Plan details and invoices live in your Aster Console account",
  plans = defaultPlans,
}: { title?: string; intro?: string; footnote?: string; plans?: Plan[] }) {
  const cell = "px-[7px] py-[9px] align-middle";
  const rows: { label: string; sub?: string; render: (p: Plan) => React.ReactNode }[] = [
    { label: "Price", render: (p) => p.price },
    { label: "Best for", render: (p) => p.best },
    { label: "Usage", render: (p) => p.usage },
    { label: "Top-up credits", render: (p) => (p.topups ? <Check /> : "—") },
    { label: "Models", render: (p) => p.models },
    { label: "Bundled tools", sub: "Search, vision, voice, remote browser", render: (p) => (p.tools ? <Check /> : <span className="opacity-60">—</span>) },
    { label: "Workspace hosting", sub: "Single instance, capped as listed", render: (p) => p.hosting || <span className="opacity-60">—</span> },
    { label: "Rate limits", render: (p) => p.rate },
  ];
  return (
    <section className="bg-paper text-cobalt-deep px-4 py-14 md:px-[175px]">
      <div className="mx-auto max-w-[1080px]">
        <Reveal>
          <ul className="flex flex-wrap gap-3 font-mono text-micro uppercase">
            {plans.map((p) => (
              <li key={p.name} className="border border-cobalt px-1.5 text-cobalt">{p.name}</li>
            ))}
          </ul>
          <div className="mt-8 flex flex-wrap items-end justify-between gap-4">
            <h2 className="font-display text-[72px] leading-none md:text-[96px]">{title}</h2>
            <div className="flex items-center gap-5 font-mono text-caption uppercase">
              <button className="bg-cobalt px-3 py-2 text-paper transition-colors hover:bg-cobalt-deep focus-visible:outline focus-visible:outline-2 focus-visible:outline-cobalt">Create an account</button>
              <a href="#" className="underline underline-offset-4">Sign in</a>
            </div>
          </div>
          <p className="mt-6 max-w-[520px] text-body-lg">{intro}</p>
        </Reveal>

        <div className="relative mt-6 h-[240px] overflow-hidden rounded-sm bg-cobalt md:h-[360px]">
          <svg className="absolute inset-0 h-full w-full opacity-40 mix-blend-screen" aria-hidden="true">
            <filter id="ngr"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" /><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.5" /></filter>
            <rect width="100%" height="100%" filter="url(#ngr)" />
          </svg>
          <svg viewBox="0 0 1080 360" className="absolute inset-0 h-full w-full" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
            <circle cx="350" cy="150" r="62" fill="#f2f2f2" opacity="0.92" />
            <circle cx="335" cy="135" r="46" fill="none" stroke="#0000e6" strokeWidth="6" strokeDasharray="4 9" />
            <path d="M560 0 C520 90 560 150 600 200 C640 260 620 320 660 360 L1080 360 L1080 0Z" fill="#f2f2f2" opacity="0.9" />
            <path d="M620 0 C600 80 640 140 700 180" stroke="#0000e6" strokeWidth="2" strokeDasharray="2 6" fill="none" />
            <path d="M250 250 C300 220 360 260 420 270" stroke="#f2f2f2" strokeWidth="10" strokeLinecap="round" fill="none" />
          </svg>
        </div>

        <div className="mt-5 overflow-x-auto">
          <table className="w-full min-w-[820px] border-collapse text-left text-body text-periwinkle">
            <thead>
              <tr>
                <th className="w-[28%]" />
                {plans.map((p) => (
                  <th key={p.name} className={`${cell} py-[13px] font-normal ${p.popular ? "bg-paper-tint" : ""}`}>
                    <span className="inline-flex items-center gap-2">{p.name}{p.popular && <span className="bg-cobalt px-1.5 font-mono text-micro uppercase text-paper">Popular</span>}</span>
                  </th>
                ))}
              </tr>
            </thead>
            <tbody>
              {rows.map((r) => (
                <tr key={r.label} className="border-t border-periwinkle/25 transition-colors hover:bg-cobalt/[0.03]">
                  <th className={`${cell} font-normal`}>
                    {r.label}
                    {r.sub && <div className="opacity-70">{r.sub}</div>}
                  </th>
                  {plans.map((p) => (
                    <td key={p.name} className={`${cell} ${p.popular ? "bg-paper-tint" : ""}`}>{r.render(p)}</td>
                  ))}
                </tr>
              ))}
              <tr className="border-t border-periwinkle/25">
                <td />
                {plans.map((p) => (
                  <td key={p.name} className={`${cell} py-2 ${p.popular ? "bg-paper-tint" : ""}`}>
                    <button className={`border border-cobalt px-3 py-1.5 font-mono text-caption transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-cobalt ${p.popular ? "bg-cobalt text-paper hover:bg-cobalt-deep" : "border-periwinkle text-periwinkle hover:bg-cobalt hover:text-paper"}`}>{p.cta}</button>
                  </td>
                ))}
              </tr>
            </tbody>
          </table>
        </div>
        <p className="mt-6 text-caption">{footnote}</p>
      </div>
    </section>
  );
}

// ---- Yoink motion (inlined, no dependencies): Reveal ----

const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)";

const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;

function ykReducedMotion(): boolean {
  return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
}

// "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance.
// Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed,
// and there is a box to watch), and a safety net reveals anything on screen that is still hidden.
type YkRevealState = "idle" | "hidden" | "shown";

function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState {
  const [state, setState] = useState<YkRevealState>("idle");
  useYkLayoutEffect(() => {
    const el = ref.current;
    if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return;
    // watch the element's own box, or its children when it has none (display: contents)
    const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]);
    const onScreen = (t: Element) => {
      const r = t.getBoundingClientRect();
      return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth;
    };
    if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible
    let shown = false;
    const show = (v: boolean) => {
      if (v !== shown) (shown = v), setState(v ? "shown" : "hidden");
    };
    setState("hidden");
    const inView = new Set<Element>();
    const io = new IntersectionObserver((entries) => {
      for (const e of entries) {
        if (e.isIntersecting) inView.add(e.target);
        else inView.delete(e.target);
      }
      if (inView.size) {
        show(true);
        if (once) io.disconnect();
      } else if (!once) show(false);
    });
    const watched = new Set<Element>();
    const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t)));
    watch();
    // safety net: styles that land after mount (display: contents) get watched too, and nothing
    // stays hidden for more than a moment while it is actually on screen
    const start = Date.now();
    const net = setInterval(() => {
      if (shown) return once && clearInterval(net);
      watch();
      if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true);
    }, 600);
    return () => {
      io.disconnect();
      clearInterval(net);
    };
  }, [once]);
  return state;
}

type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none";

/** Fades content in as it scrolls into view. */
function Reveal({
  children,
  from = "up",
  delay = 0,
  duration = 700,
  distance = 24,
  once = true,
  as = "div",
  className,
  style,
}: {
  children?: ReactNode;
  from?: YkRevealFrom;
  delay?: number;
  duration?: number;
  distance?: number;
  once?: boolean;
  as?: ElementType;
  className?: string;
  style?: CSSProperties;
}) {
  const Tag = as;
  const ref = useRef<HTMLElement>(null);
  const state = useYkReveal(ref, once);
  const hidden = state === "hidden";
  const offset = {
    up: `translate3d(0, ${distance}px, 0)`,
    down: `translate3d(0, ${-distance}px, 0)`,
    left: `translate3d(${-distance}px, 0, 0)`,
    right: `translate3d(${distance}px, 0, 0)`,
    scale: "scale(0.94)",
    blur: `translate3d(0, ${distance / 2}px, 0)`,
    none: "none",
  }[from];
  const t = `${duration}ms ${YK_EASE} ${delay}ms`;
  return (
    <Tag
      ref={ref}
      className={className}
      style={{
        ...style,
        ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }),
        ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }),
      }}
    >
      {children}
    </Tag>
  );
}

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