/saarius-skills:emdash-surface-fxfrom saarius-skills
Add page-level JavaScript surface effects, Bayer/halftone shaders (dithercn port), SVG dither patterns/masks, viewport GPU pooling, obstacle-aware text layout (@chenglou/pretext), Ephemera receipts/rubber stamps, NumberFlow counters, RoughNotation ink callouts, and tactile UI micro-interactions to EmDash CMS, Astro, and DinkusKit storefronts. Enforces Tier 1/2/3 storefront guardrails and DinkusKit's zero-\bany\b rule.
Ships in saarius-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
emdash-surface-fx)Equip EmDash CMS, Astro, and DinkusKit storefronts with page-level shaders, ordered Bayer dithering, dynamic obstacle typography, tactile stationery receipts/stamps, and micro-interactions — without breaking SSR hydration, src/styles/tokens.css (light-dark()), or Playwright live checkout journeys (dinkuskit-live-test).
emdash-surface-fx vs emdash-motion-studio| Dimension | emdash-surface-fx (This Skill) | emdash-motion-studio (Companion Skill) |
|---|---|---|
| Primary Scope | Page-level surface craft & UI micro-interactions: hero shader backgrounds, SVG dither borders/patterns, CSS dither section dividers, 3D hover-tilt product cards, obstacle-wrapped editorial copy, rolling price/order counters, thermal receipts, dry-ink rubber stamps, hand-sketched SVG callouts. | Bespoke multi-part stage animations: Mode A 3D isometric hardware/packaging cutaways (core.js), Mode B 3-layer multiplane shadowbox stages + Pigment Drift (multiplane.js), Mode C choreographed timeline stages (choreo.js), and Mode D standalone foil/tear-off stages. |
| DOM Footprint | Enhances native Astro HTML/CSS cards, headers, dividers, and CMS Portable Text blocks (defineBlockComponents) in-place. | Mounts a dedicated <div class="emdash-motion-stage"> with a full orthographic/multiplane <svg id="fig"> viewport. |
| Workflow | Drop-in Astro components or bundled zero-dependency vanilla helpers (assets/dither.js, assets/viewport-pool.js, assets/surface-micro.js, assets/ephemera.js). | Progressive GrillTrack Round 0 (5 start-to-finish stage frameworks) → Rounds 1..N (piece-by-piece cumulative canvas loop). |
Proven Starting Points, Not Rigid Limits: The placements below map each
emdash-surface-fxeffect and companionemdash-motion-studiomode to concrete, high-value surfaces across E-Commerce, SaaS, Docs, Editorial, and Portfolio websites. Treat these as battle-tested defaults—users and agents are free to experiment, remix, and apply them anywhere on a site.
| Surface Effect / Companion Mode | Locked DinkusKit / EmDash & Cross-Site Placements | E-Commerce, SaaS, Docs, Editorial & Portfolio Examples |
|---|---|---|
dithercn (Bayer/Blue-Noise Shaders, SVG Patterns, CSS Masks) | Hero/section backgrounds, retro-editorial image hover treatments, dithered section dividers bound to tokens.css light-dark(). | E-Commerce / Editorial: Halftone product feature backdrops and SVG dithered rule borders. SaaS / Docs / Portfolios: Subtle 1-bit Bayer hero wash or section transition masks. |
NumberFlow / Tabular Ticker (mountNumberTicker) | Cart drawer subtotals, item quantity badges, pricing plan toggles (monthly/annual), live dashboard metrics. | E-Commerce: Rolling cart total and live stock counters. SaaS: Monthly/annual billing toggle and telemetry KPI cards. Portfolios: Live project/commit counters. |
RoughNotation (Hand-Drawn SVG Callouts / mountRoughCallout) | Circling "Free Shipping", underlining sale prices or key docs takeaways when scrolled into view. | E-Commerce: Hand-drawn ink circle on promo badges or bundle savings. Docs / Editorial: Margin callouts and highlighted thesis sentences. SaaS: Pricing tier "Most Popular" annotation. |
@chenglou/pretext (Obstacle Text Wrap / mountObstacleText) | Editorial lookbooks / magazine-style story pages or auto-floating illustrations (not needed on standard e-commerce product/checkout pages, where dithercn, NumberFlow, mountHoverTilt, RoughNotation, and Ephemera receipts carry the real storefront value). | Editorial Lookbooks / Magazines: Long-form artisan story copy flowing around an auto-floating or draggable illustration/vessel. Portfolios: Bio/manifesto text wrapping around an interactive badge. |
Vanilla 3D Card Tilt (mountHoverTilt) | Featured product cards, bento grid cells, badge cards. | E-Commerce: Limited-edition drop cards. SaaS / Docs: Feature bento tiles. Portfolios: Case-study preview cards with specular glare. |
Mode A (3D Object / Cutaway Stage — emdash-motion-studio) | Marketing Homepage Hero ("How the platform works" in 1 click, e.g., 1-Click MacBook Order-to-Box), Flagship Hardware/Product Breakdown, Interactive Feature Spotlight. | E-Commerce / SaaS: 1-click homepage hero stage (chrome: 'stage-only') that opens and transitions into an automatic See-through internal mechanism cutaway. |
Mode B (Multiplane Depth + Pigment Drift — emdash-motion-studio) | Ambient 3-Plate Depth Hero / Pipeline Stage (chrome: 'stage-only', foreground girder/archway occlusion over despilled RGBA actors), Live Order Tracking / Shipping Status Header (/orders/[id], /checkout/success with delivery van crossing behind bridge trusses under a time-of-day sky), Brand Story / Chapter Divider. | SaaS / Editorial / Portfolios: HUD-free 3-plate multiplane stage (chrome: 'stage-only') with overhead rig kinematics or watercolor pigment drift.E-Commerce: Post-purchase delivery tracker header. |
Mode C (Scroll / Step Choreographed Data Flow — emdash-motion-studio) | Landing Page "Under the Hood" Architecture Section, Merchant Onboarding Journeys (step-by-step visual pipeline as you configure Stripe -> D1 -> Shipping), Interactive Documentation Diagrams. | SaaS / Docs / E-Commerce: Step-by-step or scroll-linked architecture pipeline diagram. |
| Mode D (Opt-In Tactile Paper, Foil, Tear-Off & Thermal Receipt) | • Perforated Foil Tear-Off Stub: Storefront Promo Banner / Drop Card where tearing the perforation purely reveals the coupon code + copies it to clipboard (zero backend coupon engine required by default, optional callback hook if wired later). • Serrated Thermal Receipt + Dry-Ink Rubber Stamp: /checkout/success Order Confirmation Receipt (conic-gradient serrated edges, FNV-1a SVG barcode, steps() thermal feed, [PAID] rubber stamp thud). | E-Commerce: Storefront promo drop card (clipboard copy on tear) and /checkout/success thermal receipt with [PAID] stamp.SaaS / Portfolios: Event ticket or verification pass. |
Read references/teknium-catalog-and-astro-recipes.md for concrete Astro component templates and defineBlockComponents wiring across all 16 families from webdev.teknium.io and dithercn.dev.
dithercn (DitherPattern, ditherMaskStyle, Bayer 4×4 / 8×8 Shaders & 2D Canvas):
assets/dither.js: mountDitherShader, ditherPatternSvg, ditherMaskStyle, and ditherImageCanvas.src/styles/tokens.css (--color-canvas, --color-surface, --color-ink, --color-accent) including CSS light-dark() values and observes :root[data-theme] / :root[data-preset] via MutationObserver.Ephemera Tactile Stationery (receipt, rubber-stamp, ticket):
skills/emdash-surface-fx/assets/ephemera.js (assets/ephemera.js):
mountReceipt(target, cfg) + renderBarcodeSvg(code): conic-gradient serrated top/bottom teeth, deterministic 32-bit FNV-1a hash-to-SVG barcode, and steps(28, end) thermal line-feed reveal.mountRubberStamp(target, cfg): inline SVG <feTurbulence type="fractalNoise" baseFrequency="0.09" numOctaves="4"> + <feDisplacementMap> dry-ink erosion filter + cubic-bezier(0.22, 1, 0.36, 1) stamp thud animation (ideal for [PAID · D1], [PAID · STRIPE TEST], [SHIPPED · PB SANDBOX]).mountFoilTicket(target, cfg): 3D tilt-reactive holographic foil sheen + perforated tear-off stub (tearProgress 0..1).@chenglou/pretext (Zero-DOM Obstacle Text Layout):
assets/surface-micro.js (mountObstacleText) + upstream @chenglou/pretext (prepare, layoutNextLine) recipe for flowing editorial copy around floating stamps, badges, or dither orbs at 60fps with zero DOM reflow thrashing.dithercn, NumberFlow, mountHoverTilt, RoughNotation, and Ephemera receipts carry the real storefront value.number-flow & split-flap-elements (Tabular Counters & Split-Flap Displays):
<number-flow>, <split-flap-board>) or the bundled zero-dependency mountNumberTicker(target, opts) in assets/surface-micro.js (font-variant-numeric: tabular-nums) for live cart subtotals, inventory stock badges, and order telemetry.@paper-design/shaders (ShaderMount):
new ShaderMount(canvas, fragmentShader, uniforms) paired with assets/viewport-pool.js (createViewportPool) so offscreen shaders pause automatically.rough-notation / roughjs / perfect-freehand (Hand-Drawn Ink Callouts):
mountRoughCallout(target, { type: 'underline' | 'box' | 'circle' | 'highlight' }) in assets/surface-micro.js (measuring real path length via getTotalLength() to animate Pass 1 over 780ms and Pass 2 over 720ms after a 560ms delay), or upstream rough-notation for editorial highlights and promo callouts.motion (Motion One) / animejs v4 / @formkit/auto-animate:
stroke-dashoffset), and one-line cart/filter list transitions (autoAnimate(listEl)).cobe & @google/model-viewer:
createGlobe(canvas, opts)) and declarative <model-viewer> 3D product inspection stages.<canvas> / WebGL1 Port of dithercn (assets/dither.js):
dithercn targets React/Next.js + Tailwind v4 (@use-gpu / React hooks) and cannot parse raw CSS light-dark() strings inside WebGL uniform uploads.assets/dither.js provides a zero-React vanilla WebGL1 + 2D Canvas + SVG port that resolves getComputedStyle(el) tokens (--color-canvas, --color-surface, --color-ink, --color-accent), evaluates light-dark(a, b) against :root[data-theme], and updates live via MutationObserver.mountHoverTilt / mountTilt in assets/surface-micro.js):
atropos / vanilla-tilt overhead with a 25-line pointer listener that writes --rx, --ry, --glare-x, and --glare-y CSS custom properties directly onto .surface-tilt-card elements while respecting prefers-reduced-motion: reduce.dithercn washes, Ephemera receipts/stamps, mountHoverTilt, mountRoughCallout) replace decorative AI filler — never stack them alongside faux-CAD blueprint headers (FIG. 01, [DATUM_A], +00,00 corner reticles), repeated .preflight-strip SHA/status banners, or invented per-card scan: clean / QA pass-rate badges. Let one tactile material treatment carry the section cleanly.lenis, locomotive-scroll):
scroll-behavior: smooth and scroll-driven animations preserve browser find-in-page, keyboard navigation, and Playwright scrollIntoViewIfNeeded().mouse-follower, cursor-effects) on Storefront / Checkout Routes:
dinkuskit-live-test Stripe & cart clicks). Keep pointer effects scoped to card-local CSS variables (--glare-x, --glare-y).assets/viewport-pool.js):
defaultViewportPool (createViewportPool({ maxDesktop: 6, maxMobile: 1 }) in assets/viewport-pool.js), which pauses offscreen canvases via IntersectionObserver and enforces MAX_LIVE = 6 on desktop and MAX_LIVE = 1 (with tap-to-run) on (pointer: coarse) mobile devices.\bany\b Rule (scripts/check-features.mjs):
scripts/check-features.mjs (invoked by bin/verify-web) scans every .astro, .mjs, and .ts file under src/ and fails the build if the standalone word any (/\bany\b/u) appears anywhere — including inside JS/HTML comments or UI strings.assets/dither.js, assets/viewport-pool.js, assets/surface-micro.js, and assets/ephemera.js) maintain zero matches of /\bany\b/u.| File | Exports / Role |
|---|---|
assets/dither.js | mountDitherShader, ditherPatternSvg, ditherMaskStyle, ditherImageCanvas, resolveEmDashDitherColors, BAYER_4X4, BAYER_8X8 |
assets/viewport-pool.js | createViewportPool, defaultViewportPool (MAX_LIVE = 6 desktop, MAX_LIVE = 1 mobile tap-to-run) |
assets/surface-micro.js | mountHoverTilt (mountTilt), mountObstacleText, mountNumberTicker, mountRoughCallout |
assets/ephemera.js | mountReceipt, renderBarcodeSvg, mountRubberStamp, mountFoilTicket, createMicroFoley, fnv1aHash |
assets/examples/dinkuskit-surface-fx-showcase.html | Interactive EmDash storefront showcase combining Bayer 8×8 WebGL dither hero, SVG dither patterns & CSS dither mask divider, thermal order receipt with FNV-1a barcode + [PAID · D1] rubber stamp, obstacle-wrapped editorial copy, and live cart/order ticker |
python3 skills/emdash-motion-studio/scripts/verify_motion.py \
skills/emdash-surface-fx/assets/examples/dinkuskit-surface-fx-showcase.html \
--out-dir .grilltrack/proof/motion
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/dither.js (opens in a new tab)assets/ephemera.js (opens in a new tab)assets/examples/dinkuskit-surface-fx-showcase.html (opens in a new tab)assets/surface-micro.js (opens in a new tab)assets/viewport-pool.js (opens in a new tab)references/teknium-catalog-and-astro-recipes.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saariuslystoned/saariusskills --plugin saarius-skills48 skills in this plugin
/acp-delegationRoute generic requests to use the SaariusSkills ACP plugin or delegate through ACP. The MCP servers come from the separate ai-shed plugin. Discover Grok CLI, Cursor, Antigravity, and Muse native tools, select a suitable harness, verify effective permissions, and submit a bounded task. Use a lane skill directly for an already selected harness./agy-sidebar-sessionStart, message, hand off, inspect, fork, wait on, stop, and export top-level Antigravity 2.0 sidebar sessions across local or SSH-reachable machines using agentapi and LanguageServerService ConnectRPC endpoints. Use when asked to open or manage a sidebar session, hand off work to another Antigravity host, compare quota across subscriptions, message another conversation, or call LanguageServerService RPCs./