name:uikit-publisher
description:Implements independent publishing portals, newsletter issue composers, paid membership revenue calculators, subscriber directories, audience-tier pricing tables, and studio settings using the Publisher Independent Press design system (W3C DTCG tokens, CSS v4 @theme bridge, Light & Dark studio themes, 7 CSS-variable-first TSX templates, and governance specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, CSS v4 @theme, TypeScript 5+"
metadata:
id:"publisher"
version:"2.2.0"
category:"media-publishing"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/publisher-hero.webp"
uikit-publisher — Master Execution Protocol (v2.2.0)
You are building production editorial and creator-publishing interfaces with the Publisher — Independent Press UI Skill Pack (tokens/ + templates/ + architectural and governance specifications). Pair with registry/backbone/ (uikit-backbone) for full 27-component and 6-page-recipe coverage.
INDEPENDENT PRESS EXECUTION MANDATE: Deliver the complete editorial voice on the first pass: bold, tight-tracked Inter headlines, dramatic alternating full-width bands (pure white #ffffff, cool slate #f3f5f8, and deep obsidian #15171a), compact 6px (0.375rem) black primary buttons (#15171a with #ffffff ink at 18.0:1 AAA), accessible growth-green telemetry accents (#15803d with white ink at 5.14:1 AA on light surfaces; #30cf43 with #15171a dark ink at 9.0:1 AAA on dark bands), JetBrains Mono tabular-nums revenue and subscriber figures, compositor-only motion (pbBandEditorialRise, pbIssueCardLift, pbMetricFadeIn, pbDrawerCleanSlide), and full Light/Dark studio theme support via semantic CSS variables.
1. Task-Based Read Routing
Read DESIGN.md and tokens.css first, then load the companion specs and starter templates matching the target surface:
2. Bootstrap Procedure (Step 0)
- 1.Install via CLI, Registry, or MCP:
- CLI:
npx uikits-md add publisher --platform all --out . - Registry:
npx shadcn@latest add https://uikits.tech/r/publisher.json - MCP: invoke
get_ui_kit_skill and get_ui_kit_file for publisher. - Dependencies:
npm install @phosphor-icons/react alongside react and react-dom. - 2.Load Fonts in
src/app/layout.tsx:
Load Inter (weight: ["400", "500", "600", "700", "800"], variable --font-inter) and JetBrains_Mono (weight: ["400", "500", "600"], variable --font-jetbrains-mono), attach both variables to <html>, and apply .pb-root on <body>.
- 3.Import Token Stylesheets:
Import tokens.css and tokens/tailwind.css directly after your base stylesheet entry. This enables Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) modes, .pb-btn-primary, .pb-band-slate, .pb-band-dark, compositor keyframes, [data-offscreen="true"] pauses, and accessibility media queries.
- 4.Copy Starter Templates:
Copy all 7 templates into src/components/uikit-publisher/: PublisherStudioShell.tsx, NewsletterIssueEditor.tsx, MemberRevenueCards.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx.
Avoid for native mobile engines or legacy styling frameworks that cannot resolve CSS custom properties (var(--...)).
3. The 12 Mandatory First-Pass Rules
- 1.Alternating Editorial Band Rhythm: Structure marketing and studio overview pages with alternating full-width white
#ffffff, cool slate #f3f5f8, and deep obsidian #15171a bands instead of wrapping every paragraph in bordered cards. - 2.Bold Tight-Tracked Inter Hierarchy: Use Inter
weight: 700–800 with -0.025em to -0.03em tracking at 36px and above; pair with regular-weight readable body copy (15px–20px) and Georgia pull quotes for creator testimonials. - 3.Signature 6px (
0.375rem) Black Primary CTA: Everyday studio buttons use var(--primary) (#15171a light / #f4f6f8 dark) with 0.375rem corners and inverted high-contrast text (var(--primary-foreground)). Reserve high-energy #30cf43 (with #15171a ink at 9.0:1 AAA) for closing conversion bands and growth telemetry highlights. - 4.Dual-Mode Semantic CSS Variables Only: Never hardcode light-only
#hex fills or borders inside reusable TSX templates. Every component must adapt automatically to [data-theme="dark"] (#111316 canvas, #1a1d22 surface, #f4f6f8 ink). - 5.Accessible Growth-Green Contrast Discipline: Use
#15803d (with white ink = 5.14:1 AA) or #14532d on #dcfce7 (8.7:1 AAA) for growth badges on light surfaces. Pair bright #30cf43 exclusively with #15171a / #111316 dark ink or on dark obsidian bands. - 6.Flagship Hero Revenue & Audience Telemetry Frame: Anchor the landing hero with a specular hairline-framed obsidian product card (
inset 0 1px 0 rgba(255,255,255,0.14)) hosting live subscriber/price sliders, 0%-fee savings math, and a collision-free SVG trajectory chart with opaque rx="4" milestone pills. - 7.Tabular Financial & Subscriber Precision: Apply
.pb-mono (font-variant-numeric: tabular-nums) and toLocaleString("en-US") to every MRR figure, annual forecast, open rate, subscriber count, and member ID (MEM-4081). - 8.Interactive Issue Composer & Paywall Preview: Support editing headlines and excerpts, switching
Free Public vs Paid Members paywall gating, selecting delivery channels, and observing live open-rate and MRR lift updates. - 9.Keyboard-First Studio Overlays: Implement
Cmd/Ctrl+K CommandPalette (role="dialog" aria-modal="true") with nested Escape (clears filter query first, then closes) and custom keyboard dropdowns with capture-phase Escape stopping propagation before drawers or modals close. - 10.Mount-Safe Compositor Motion: Drive scroll reveals through
html.js-ready .pb-reveal + .is-in with immediate viewport visibility on mount, pause ambient pulses via [data-offscreen="true"], and disable motion cleanly under prefers-reduced-motion: reduce. - 11.Verified
@phosphor-icons/react & Brand Hygiene: Use @phosphor-icons/react icons exclusively. Keep all publications, domains, and subscriber profiles neutral (Northstar Review, Kestrel Dispatch, Vesper Quarterly, Arbor Press, example.com). - 12.Universal Skip Link, Full Data States & Mobile Clearance: Include
<a href="#main-content">Skip to content</a>, styled empty/error/validation states, and responsive headers that never clip or overlap controls at 390px, 768px, or 1440px.
4. Explicitly Forbidden Anti-Patterns
- BANNED: Hardcoding
#hex strings inside TSX templates instead of semantic var(--...) custom properties. - BANNED: Placing bright
#30cf43 text directly on pure white #ffffff backgrounds (fails WCAG AA contrast; always use #15803d on white). - BANNED: Oversized
rounded-2xl / rounded-3xl buttons, decorative rainbow gradients (from-indigo-500, from-purple-500), or heavy generic shadow-2xl blur blobs. - BANNED: Drawing physical books, desks, portraits, or magazines as primitive cartoon
<svg> clipart polygons. - BANNED: External stock placeholder image URLs, bare placeholder text boxes, or third-party publication trademarks in sample copy.
5. Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Physical Subjects: Never draw real-world scenes, portraits, or editorial objects using primitive
<svg> polygons. Use bespoke local .webp studio photography with locked aspect-ratio (CLS === 0) and calibrated scrims when imagery is required. - High-Craft Technical Hero Cards & Precision SVGs: Telemetry and revenue projection cards MUST include specular top hairline lighting (
inset 0 1px 0 rgba(255,255,255,0.14)), labeled coordinate grids, tabular-nums, interactive controls, and opaque rounded (rx="4") label pills so annotations never overlap lines or adjacent text.
Card, Diagram & Data Table Craft Standard
- DOM-First Product Visuals (Zero Slide-Style Circle Diagrams): Never depict workflows, pipelines, or architecture with numbered
01 → 02 → 03 <circle> SVGs, wavy dashed connectors, and repeated step boxes underneath. Render real miniaturized software UI in HTML/DOM: a crisp object/endpoint header, a focal tabular-nums figure with split metadata, a clickable proportional execution waterfall or timeline bar, and a flush hairline telemetry/signal matrix below with zero nested card-in-card clutter. - Unified Metric Rails Over Identical Floating Boxes: Prefer a single hairline-divided KPI rail flush to the workspace container over 4 disconnected floating rounded cards. Lead with one focal
tabular-nums value, an inline semantic delta (no redundant pill chrome), and a compact composition bar or sparkline grounded in real row data. - Dense, Interactive Data Tables: Operational lists (>6 items) must ship a toolbar (instant search, faceted filters, and a
compact/comfortable density toggle), sortable headers (aria-sort), multi-row selection with a custom color-scheme-safe checkbox and contextual bulk-action bar, multi-layer cells (primary label + mono ID + sub-meta), inline micro-meters for numeric scores, right-aligned tabular-nums values, hover-revealed quick actions, and @container-responsive column collapse with zero duplicate mobile status badges on desktop. - DOM-First Node Graphs & Topology Cards: Never render topology, ontology, DAG, module-bundle, or entity-relation graphs as
<svg><rect><text> boxes with tiny unreadable SVG text or diagonal dashed lines slicing through labels. Structure graphs as tiered HTML/DOM interactive node cards (>=12.5px titles, >=11px mono IDs, semantic status LED, inline latency/throughput/weight micro-bar, upstream/downstream highlighting) with any connector lines confined strictly to dedicated column gutters. - Visual Critique Gate: Inspect rendered cards and tables at desktop (
1440px), split-pane (700px), and mobile (390px) to verify zero clipped text, zero duplicate badges, zero dark-mode native checkbox bleed on light surfaces, and 0px horizontal overflow.