name:uikit-newswire
description:Implements high-density global breaking-news portals, live broadcast dispatch wires, multi-column broadsheet lead grids, correspondent dossiers, subscriber editions, and newsroom settings using the Newswire Global News design system (W3C DTCG tokens, Tailwind v4 @theme, Figma variables, Light & Dark modes, 7 CSS-variable-first TSX templates, and governance/eval specs).
license:MIT
compatibility:"React 18+/19+, Next.js 14+/16+, Tailwind CSS v4, TypeScript 5+"
metadata:
id:"newswire"
version:"2.2.0"
category:"media-news"
status:"stable"
author:"uikits.tech"
backbone:"uikit-backbone"
iconLibrary:"@phosphor-icons/react"
preview:"/previews/newswire-hero.webp"
uikit-newswire — Master Execution Protocol (v2.2.0)
You are building production editorial and broadcast interfaces with the Newswire — Global News UI Skill Pack (tokens/ + templates/ + architectural & governance blueprints). Pair with registry/backbone/ (uikit-backbone) for full 27-component and 6-page-recipe coverage.
NEWSROOM EXECUTION MANDATE: Treat every screen as a live printing press and global broadcast desk—never a soft consumer SaaS template. Build on flat pure white paper (#ffffff light / #101010 dark) separated strictly by 1px hairline rules (--border) and 2px ink section headers (--nw-rule-ink). Reserve Live Crimson (#c81e1e) strictly for breaking/live coverage (LIVE beacons, breaking wire bands, timeline pulse dots), front every section eyebrow with the signature 8px Warm Amber (#d97706) vertical marker bar, anchor reader controls in compact monochrome obsidian pills (#111111 light / #f2f2f2 dark), enforce tabular-nums on every UTC timestamp and desk index, and ship full Light & Dark token parity automatically on the first pass.
1. Task-Based Read Routing
Always read DESIGN.md and tokens.css first, then load the exact companion specs and starter templates for the surface you are building:
2. Bootstrap Procedure (Step 0 Before Writing Components)
- 1.Install via CLI, Registry, or MCP:
- CLI:
npx uikits-md add newswire --platform all --out . - Registry:
npx shadcn@latest add https://uikits.tech/r/newswire.json - MCP: invoke
get_ui_kit_skill and get_ui_kit_file for newswire. - Peer dependencies:
npm install @phosphor-icons/react (plus react, react-dom). - 2.Load Typography in
src/app/layout.tsx:
Load Inter (weight: ["300", "400", "500", "600", "700", "800"], --font-inter), Instrument_Serif (weight: ["400"], style: ["normal", "italic"], --font-instrument-serif), and JetBrains_Mono (weight: ["400", "500", "600"], --font-jetbrains-mono). Attach variables to <html> and apply .nw-root on <body>.
- 3.Import
tokens.css & tokens/tailwind.css:
Import tokens.css and tokens/tailwind.css right after @import "tailwindcss"; in src/app/globals.css. This activates Light (:root, [data-theme="light"], .light) and Dark ([data-theme="dark"], .dark) token layers, .nw-section-eyebrow amber marker bars, .nw-rule-top, .nw-rule-hairline, compositor keyframes (nwLiveBeacon, nwHeadlineFade, nwTickerGlide, nwRuleDraw, nwDrawerSlide), progressive .js-ready .nw-reveal reveals, [data-offscreen="true"] pauses, and accessibility media queries.
- 4.Install Starter Primitives:
Copy all 7 drop-in TSX templates into src/components/uikit-newswire/: NewsroomShell.tsx, LiveWireFeedList.tsx, BroadsheetLeadGrid.tsx, CommandPalette.tsx, StatusBadge.tsx, ScrollReveal.tsx, and Sparkline.tsx.
Do not use for playful consumer social apps requiring heavy gradients or 3D glassmorphism, or stacks unable to consume CSS custom properties (var(--...)).
3. The 12-Point Automatic First-Pass Contract
Every time you build or update UI under uikit-newswire, all 12 engineering contracts below MUST be delivered automatically on the first pass:
- 1.Flat Broadsheet Surface Discipline: Keep front pages and dispatch columns completely flat on
var(--background) (#ffffff light / #101010 dark) and var(--surface) (#f6f6f6 light / #1a1a1a dark). Use 1px solid var(--border) hairlines and 2px solid var(--nw-rule-ink) section rules for separation—never decorative drop shadows on article cards. - 2.Strict Role Separation for Live Crimson (
#c81e1e): Use var(--primary) (#c81e1e light with #ffffff ink at 5.96:1 AA; #ef4444 dark with #101010 ink at 5.06:1 AA) exclusively for breaking bands, LIVE badges, pulsing timeline dots, and urgent wire alerts. Never paint routine navigation or non-live tags red. - 3.Signature 8px Warm Amber Section Lockup (
.nw-section-eyebrow): Open every major editorial band (TOP STORIES, LIVE WIRE, WORLD, ECONOMY, MOST READ) with an 8px warm amber (var(--accent)) vertical marker bar paired with uppercase tracked typography. When amber is used as a filled badge background, ALWAYS pair with dark ink (var(--accent-foreground), #111111, 5.93:1 AA). - 4.Monochrome Action Pills: Anchor reader actions (
Subscribe, Save Story, Follow Desk) in compact monochrome capsules (var(--nw-action-pill) with var(--nw-action-pill-ink)) at 18px (--radius-lg) or 9999px pill radius while keeping cards, badges, and data tables crisp at 4px (--radius: 0.25rem). - 5.Editorial Typography Contrast: Pair
Instrument Serif (--font-display) on lead feature headlines and pull quotes with high-density Inter (700 headlines, 400 body, 800 compact LIVE labels) and JetBrains Mono (--font-mono, tabular-nums) for every UTC timestamp (14:22 UTC), bureau code (NW-GVA-04), and Most Read index (01–05). - 6.Dense Multi-Column Broadsheet Grid (
BroadsheetLeadGrid.tsx): Frame lead journalism in a 3-column broadsheet hierarchy (lead feature column + secondary dispatch stack + right-hand Most Read / Breaking Wire rail) separated by hairline vertical borders on desktop and collapsing cleanly to single-column stacking on mobile. - 7.Minute-by-Minute Live Wire Rail (
LiveWireFeedList.tsx): Connect chronological dispatches along a continuous 1px vertical rail (var(--nw-rail)) with pulsing nwLiveBeacon crimson nodes for entries posted within the last 15 minutes and crisp neutral markers for earlier verified updates. - 8.100% Semantic CSS Variables (Zero Hardcoded Hex in Templates): Every reusable TSX template references
var(--background), var(--surface), var(--foreground), var(--muted-foreground), var(--primary), var(--accent), var(--border), and --chart-1..5 so Light and Dark modes toggle instantaneously without stale overrides. - 9.Command Search & Keyboard Newsroom (
CommandPalette.tsx): Wire Cmd/Ctrl+K to a modal dialog (role="dialog" aria-modal="true") that searches live stories, regional desks, and archive editions with arrow-key navigation and capture-phase Escape dismissal. - 10.Compositor-Only Motion & Offscreen Pause: Limit animations to
transform and opacity (nwLiveBeacon, nwHeadlineFade, nwTickerGlide, nwRuleDraw, nwDrawerSlide). Pause ambient ticker glides and pulsing beacons via IntersectionObserver (data-offscreen="true"), and render static high-legibility layouts under prefers-reduced-motion: reduce. - 11.Hero Card & Telemetry Precision: Never draw physical newsroom objects or world landmarks with primitive clipart
<svg> polygons. Editorial data graphics and Hero Dispatch Telemetry Cards MUST use specular hairline framing, labeled UTC coordinate grids, tabular-nums, and opaque rounded SVG pill badges (rx="4") with zero text collisions. - 12.Universal Accessibility & Full Operational States: Render
<a href="#main-content" className="sr-only focus:not-sr-only ...">Skip to dispatches</a> and <main id="main-content"> on every page, ship styled Loading Skeleton, Empty Filter (with Reset action), Wire Error/Retry, and Live Region update states, and verify zero horizontal overflow at 390px, 768px, and 1440px.
4. Explicitly Forbidden Anti-Patterns
- BANNED: Painting primary navigation bars, routine links, or footer badges with decorative crimson when no live coverage is active.
- BANNED: Putting white text on
#d97706 amber fills (contrast 3.19:1 fails WCAG AA)—always use #111111 ink on amber fills (5.93:1 AA) or #9a4d04 amber text on #ffffff (5.85:1 AA). - BANNED: Hardcoded
#hex colors in reusable templates/*.tsx, glossy glassmorphism (backdrop-blur-xl), floating heavy drop shadows (shadow-2xl), or excessive corner radii (rounded-2xl, rounded-3xl). - BANNED: Generic rainbow hero gradients (
from-indigo-500, from-purple-500, to-pink-500) or external stock placeholder URLs. - BANNED: Third-party media trademarks or real newsroom names in sample copy—use neutral fictional entities (
Newswire Global, Northstar Bureau, Kestrel Economics, Meridian Climate Desk) and RFC 2606 domains (example.com).
Hero Card & Visual Craft Mandate
- Zero Clipart SVGs for Real-World Subjects: Never draw buildings, press rooms, cameras, satellites, or reporters using flat clipart
<svg> polygons. Real-world editorial photography MUST use verified local .webp studio assets (fetchPriority="high", locked aspect-ratio for CLS === 0, contrast-safe bottom scrims, zero baked-in logos). - High-Craft Technical Hero Cards & Precision SVGs: When rendering global bureau dispatch timelines, wire velocity charts, or edition telemetry inside a Hero Card, apply crisp layered hairline borders, labeled UTC grid axes,
font-variant-numeric: tabular-nums, interactive desk/edition controls inside the card, and opaque rounded SVG pills (rx="4") with generous coordinate clearance so zero labels collide with lines or adjacent badges.
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.