Skip to content

Leonxlnx/taste-skill / skills/taste-skill

design-taste-frontend

Verified

tasteskill 2.5.1, the anti-slop frontend skill. Builds professional company websites at the level of figma.com and x.ai: plain copy in a voice of its own, one system, one section per screen, equal edges, real photographs and real product UI (licensed stand-in photographs when the client has none; a product render only when the brief asks for 3D), a hero entrance and one or two dealt moments on every page, shader effects and scenes only on tech, gaming and software pages, quiet micro-interactions, and a checker and finish gate that enforce it in a real browser. Use this whenever you build, design, redesign, restyle, polish or review a landing page, company, product, shop, cafe, hotel, studio, SaaS, AI, developer-tool or game site, as static HTML/CSS or inside an existing React, Next.js, Vue, Svelte, Astro or Tailwind project, or when the user says a page looks generic, templated or "AI-made".

FileKindSize
SKILL.mdskill md30.2 KB
assets/backgrounds/backgrounds.cssother41.5 KB
assets/backgrounds/backgrounds.jsscript8.9 KB
assets/backgrounds/check.htmlother4.8 KB
assets/backgrounds/check.mjsscript14.2 KB
assets/backgrounds/demo.htmlother43.3 KB
assets/backgrounds/index.jsonconfig19.6 KB
assets/backgrounds/pick.mjsscript14.0 KB
assets/components/_lab.htmlother6.4 KB
assets/components/base.cssother7.6 KB
assets/components/fx-avatar/component.cssother3.3 KB
assets/components/fx-avatar/component.htmlother1.2 KB
assets/components/fx-avatar/component.jsscript2.7 KB
assets/components/fx-avatar/meta.jsonconfig870 B
assets/components/fx-band/component.cssother1.4 KB
assets/components/fx-band/component.htmlother482 B
assets/components/fx-band/component.jsscript2.7 KB
assets/components/fx-band/meta.jsonconfig1.1 KB
assets/components/fx-bars/component.cssother3.4 KB
assets/components/fx-bars/component.htmlother2.3 KB
assets/components/fx-bars/component.jsscript2.2 KB
assets/components/fx-bars/meta.jsonconfig1.2 KB
assets/components/fx-button/component.cssother1.6 KB
assets/components/fx-button/component.htmlother798 B
assets/components/fx-button/component.jsscript3.0 KB
assets/components/fx-button/meta.jsonconfig1.1 KB
assets/components/fx-chart/component.cssother3.4 KB
assets/components/fx-chart/component.htmlother1.2 KB
assets/components/fx-chart/component.jsscript5.3 KB
assets/components/fx-chart/meta.jsonconfig1.3 KB
assets/components/fx-dither-object/component.cssother452 B
assets/components/fx-dither-object/component.htmlother177 B
assets/components/fx-dither-object/component.jsscript24.1 KB
assets/components/fx-dither-object/meta.jsonconfig2.7 KB
assets/components/fx-feature-card/component.cssother10.7 KB
assets/components/fx-feature-card/component.htmlother8.9 KB
assets/components/fx-feature-card/component.jsscript12.1 KB
assets/components/fx-feature-card/meta.jsonconfig3.0 KB
assets/components/fx-globe/component.cssother2.2 KB
assets/components/fx-globe/component.htmlother1.6 KB
assets/components/fx-globe/component.jsscript1.3 KB
assets/components/fx-globe/meta.jsonconfig819 B
assets/components/fx-headline/component.cssother1.6 KB
assets/components/fx-headline/component.htmlother833 B
assets/components/fx-headline/component.jsscript742 B
assets/components/fx-headline/meta.jsonconfig964 B
assets/components/fx-icon-tiles/component.cssother1.7 KB
assets/components/fx-icon-tiles/component.htmlother2.1 KB
assets/components/fx-icon-tiles/component.jsscript1.4 KB
assets/components/fx-icon-tiles/meta.jsonconfig922 B
assets/components/fx-logos/component.cssother2.0 KB
assets/components/fx-logos/component.htmlother12.4 KB
assets/components/fx-logos/component.jsscript1.2 KB
assets/components/fx-logos/meta.jsonconfig1.0 KB
assets/components/fx-map/bake.mjsscript25.2 KB
assets/components/fx-map/component.cssother10.6 KB
assets/components/fx-map/component.htmlother1.2 KB
assets/components/fx-map/component.jsscript14.4 KB
assets/components/fx-map/meta.jsonconfig2.6 KB
assets/components/fx-map/sample-map.jsonconfig55.7 KB
assets/components/fx-photo/component.cssother2.0 KB
assets/components/fx-photo/component.htmlother553 B
assets/components/fx-photo/component.jsscript1.9 KB
assets/components/fx-photo/meeting-room.jpgbinary198.7 KB
assets/components/fx-photo/meta.jsonconfig1.8 KB
assets/components/fx-pricing/component.cssother3.8 KB
assets/components/fx-pricing/component.htmlother1.8 KB
assets/components/fx-pricing/component.jsscript1.5 KB
assets/components/fx-pricing/meta.jsonconfig971 B
assets/components/fx-progress/component.cssother2.9 KB
assets/components/fx-progress/component.htmlother2.0 KB
assets/components/fx-progress/component.jsscript4.3 KB
assets/components/fx-progress/meta.jsonconfig1.3 KB
assets/components/fx-prompt/component.cssother3.1 KB
assets/components/fx-prompt/component.htmlother1.3 KB
assets/components/fx-prompt/component.jsscript1.1 KB
assets/components/fx-prompt/meta.jsonconfig782 B
assets/components/fx-search/component.cssother2.6 KB
assets/components/fx-search/component.htmlother1.4 KB
assets/components/fx-search/component.jsscript4.9 KB
assets/components/fx-search/meta.jsonconfig953 B
assets/components/fx-spotlight/component.cssother1.8 KB
assets/components/fx-spotlight/component.htmlother1.6 KB
assets/components/fx-spotlight/component.jsscript4.0 KB
assets/components/fx-spotlight/meta.jsonconfig1.1 KB
assets/components/fx-stat/component.cssother1.6 KB
assets/components/fx-stat/component.htmlother694 B
assets/components/fx-stat/component.jsscript1.2 KB
assets/components/fx-stat/meta.jsonconfig1.1 KB
assets/components/fx-tabs/component.cssother5.0 KB
assets/components/fx-tabs/component.htmlother2.9 KB
assets/components/fx-tabs/component.jsscript3.1 KB
assets/components/fx-tabs/meta.jsonconfig1.2 KB
assets/components/index.htmlother18.6 KB
assets/components/shared.jsscript25.9 KB
assets/diagrams/demo.htmlother11.4 KB
assets/diagrams/diagram.cssother25.5 KB
assets/diagrams/diagram.jsscript89.2 KB
assets/diagrams/lab.htmlother11.2 KB
assets/diagrams/mount.jsscript609 B
assets/diagrams/presets.jsonconfig27.8 KB
assets/effects/README.mdmarkdown9.8 KB
assets/effects/ascii-shade/effect.jsscript18.3 KB
assets/effects/ascii-shade/meta.jsonconfig372 B
assets/effects/aurora-curtains/effect.jsscript9.2 KB
assets/effects/aurora-curtains/meta.jsonconfig361 B
assets/effects/bayer-dither/effect.jsscript5.9 KB
assets/effects/bayer-dither/meta.jsonconfig311 B
assets/effects/caustics/effect.jsscript7.3 KB
assets/effects/caustics/meta.jsonconfig357 B
assets/effects/contour-lines/effect.jsscript8.2 KB
assets/effects/contour-lines/meta.jsonconfig358 B
assets/effects/dot-terrain/effect.jsscript9.2 KB
assets/effects/dot-terrain/meta.jsonconfig332 B
assets/effects/dotted-globe/effect.jsscript52.9 KB
assets/effects/dotted-globe/meta.jsonconfig546 B
assets/effects/duotone-grade/effect.jsscript33.7 KB
assets/effects/duotone-grade/meta.jsonconfig395 B
assets/effects/edge-glow/effect.jsscript10.6 KB
assets/effects/edge-glow/meta.jsonconfig427 B
assets/effects/film-light-leak/effect.jsscript12.2 KB
assets/effects/film-light-leak/meta.jsonconfig343 B
assets/effects/fluted-glass/effect.jsscript9.7 KB
assets/effects/fluted-glass/meta.jsonconfig305 B
assets/effects/fx.jsscript40.5 KB
assets/effects/gallery.htmlother37.4 KB
assets/effects/god-rays/effect.jsscript9.1 KB
assets/effects/god-rays/meta.jsonconfig318 B
assets/effects/gradient-mesh/effect.jsscript11.0 KB
assets/effects/gradient-mesh/meta.jsonconfig334 B
assets/effects/grain-gradient/effect.jsscript8.1 KB
assets/effects/grain-gradient/meta.jsonconfig311 B
assets/effects/grid-pulse/effect.jsscript18.6 KB
assets/effects/grid-pulse/meta.jsonconfig343 B
assets/effects/halftone-screen/effect.jsscript12.8 KB
assets/effects/halftone-screen/meta.jsonconfig342 B
assets/effects/index.jsonconfig36.7 KB
assets/effects/lab.htmlother31.0 KB
assets/effects/line-engraving/effect.jsscript12.4 KB
assets/effects/line-engraving/meta.jsonconfig343 B
assets/effects/orb-sphere/effect.jsscript14.2 KB
assets/effects/orb-sphere/meta.jsonconfig366 B
assets/effects/painterly-landscape/effect.jsscript12.8 KB
assets/effects/painterly-landscape/meta.jsonconfig364 B
assets/effects/pick.jsscript10.1 KB
assets/effects/prism-dispersion/effect.jsscript9.6 KB
assets/effects/prism-dispersion/meta.jsonconfig331 B
assets/effects/ridgeline/effect.jsscript19.2 KB
assets/effects/ridgeline/meta.jsonconfig460 B
assets/effects/ruled-grounds/effect.jsscript11.3 KB
assets/effects/ruled-grounds/meta.jsonconfig357 B
assets/effects/silk-folds/effect.jsscript10.4 KB
assets/effects/silk-folds/meta.jsonconfig348 B
assets/effects/soft-light-bars/effect.jsscript21.1 KB
assets/effects/soft-light-bars/meta.jsonconfig391 B
assets/effects/spotlight-cone/effect.jsscript7.3 KB
assets/effects/spotlight-cone/meta.jsonconfig349 B
assets/icons/demo.htmlother475.1 KB
assets/icons/demo/adyen.svgother2.4 KB
assets/icons/demo/after-effects.svgother5.2 KB
assets/icons/demo/ai.svgother795 B
assets/icons/demo/airbnb.svgother5.2 KB
assets/icons/demo/airbyte.svgother3.0 KB
assets/icons/demo/airflow.svgother3.4 KB
assets/icons/demo/airtable.svgother1.8 KB
assets/icons/demo/akamai.svgother5.5 KB
assets/icons/demo/algolia.svgother11.5 KB
assets/icons/demo/alpinejs.svgother343 B
assets/icons/demo/amd.svgother1.5 KB
assets/icons/demo/amex.svgother8.4 KB
assets/icons/demo/amplitude.svgother3.3 KB
assets/icons/demo/android.svgother4.7 KB
assets/icons/demo/angular.svgother1.8 KB
assets/icons/demo/ansible.svgother5.4 KB
assets/icons/demo/anthropic.svgother1.2 KB
assets/icons/demo/app-store.svgother2.9 KB
assets/icons/demo/apple-pay.svgother3.1 KB
assets/icons/demo/apple.svgother1.2 KB
assets/icons/demo/arc.svgother4.6 KB
assets/icons/demo/archlinux.svgother1.0 KB
assets/icons/demo/arduino.svgother6.7 KB
assets/icons/demo/argo.svgother22.7 KB
assets/icons/demo/arm.svgother2.5 KB
assets/icons/demo/asana.svgother1004 B
assets/icons/demo/astro.svgother3.1 KB
assets/icons/demo/audio.svgother516 B
assets/icons/demo/auth0.svgother759 B
assets/icons/demo/aws.svgother7.9 KB
assets/icons/demo/azure.svgother3.2 KB
assets/icons/demo/babel.svgother68.6 KB
assets/icons/demo/basecamp.svgother3.4 KB
assets/icons/demo/baseten.svgother1.3 KB
assets/icons/demo/bash.svgother4.2 KB
assets/icons/demo/battle-net.svgother1.1 KB
assets/icons/demo/behance.svgother12.4 KB
assets/icons/demo/bitbucket.svgother1.5 KB
assets/icons/demo/bitcoin.svgother2.3 KB
assets/icons/demo/blender.svgother3.7 KB
assets/icons/demo/bluesky.svgother1.0 KB
assets/icons/demo/bootstrap.svgother2.0 KB

assets/components/fx-feature-card/component.js

View on GitHub
// fx-feature-card: every inset panel gets its own still ground (a painted landscape or a soft grain),
// drawn once and kept as a picture: the four grounds render one after another through one WebGL context
// that is freed straight after, so the cards hold no context and draw no frames at rest. The UI window on
// each ground is plain HTML, cut by the panel's bottom edge. Panels marked data-cx-loop run a short
// pointer demo (glide about 1 s, click, the state changes, rest about 3 s) while on screen, with a pause
// button in the panel's corner; the others show a settled still. Reduced motion shows every demo in its
// end state with no pointer.
import { fx, still, palette, color, bag, reduced, held, pauser, paramsOf } from '../shared.js';

// each ground: still (no drift), no calm patch (the window covers the middle)
const GROUNDS = {
  'painterly-landscape': { drift: 0, calm: 0, blur: 0.65, brush: 0.55, grain: 0.035 },
  'grain-gradient': { speed: 0, grainMotion: 0, grain: 0.45, tint: 0.7, contrast: 0.6, softness: 0.55, calm: 0.3, calmX: 0.5, calmY: 0.5 },
  'ruled-grounds': { speed: 0, focus: 0, ink: 0.5, grain: 0.4, calm: 0.4, calmX: 0.5, calmY: 0.6 },
};

/* ------------------------------------------------------------------ the light of each panel */

const ok = (l, c, h) => color.fromLch([l, Math.max(0, c), h]);
const lum = c => color.lab(c)[0];
const coolHue = h => Math.min(265, Math.max(205, h));

/* what the page gives the pictures: its kind, the accent's hue family, its darkest and palest tone */
function read(page) {
  const [La, Ca, ha] = color.lch(page.accent);
  const [Lb, Cb, hb] = color.lch(page.bg);
  const inkLight = lum(page.ink) > lum(page.bg);
  return {
    kind: fx.paletteKind(page), La, Ca, ha, Lb, Cb, hb,
    warm: Ca > 0.05 && (ha < 80 || ha >= 330),             // red, orange, amber
    cool: Ca > 0.04 && ha >= 190 && ha <= 285,             // blue, teal
    dark: inkLight ? page.bg : page.ink,
    pale: inkLight ? page.ink : page.bg,
  };
}

/*
  A painted landscape is a picture, so it takes a natural light, near the page but never one hue laid
  over everything:
  - day: a pale sky (the accent's hue at low chroma when the accent is cool, else almost grey) over
    hills that step down to the near slope: graphite under a warm accent (an orange hill reads as rust),
    a misty blue-grey under a cool one, the accent itself when it is green or neutral; on a colour page
    deeper shades of the page colour.
  - dusk: a deep blue sky that lights up in gold only along the horizon, dark hills with a lit crest
    (the gold leans toward a warm accent, between amber and gold); on a colour page a light shade of the
    page colour (never its complementary accent).
  - meadow: daylight as a photograph shows it, whatever the page: a clear blue sky that pales toward the
    horizon, a blue far ridge and a sunlit field of grass in front. On a blue colour page the sky is the
    page colour itself. The natural picture among the panels, as on x.ai's cards.
*/
const SCENES = {
  day(page, k) {
    let sky, hill;
    if (k.kind === 'colour') {
      sky = ok(0.87, Math.min(k.Cb * 0.3, 0.06), k.hb);
      hill = ok(0.46, Math.min(k.Cb * 0.8, 0.14), k.hb);
    } else {
      const h = k.cool ? coolHue(k.ha) : k.kind === 'light' && k.Cb > 0.012 ? k.hb : 235;
      const L = k.kind === 'light' ? Math.min(0.93, Math.max(0.8, k.Lb - 0.05)) : 0.84;
      sky = ok(L, k.cool ? 0.04 : k.kind === 'light' ? Math.min(k.Cb, 0.03) : 0.012, h);
      hill = k.warm ? ok(0.42, 0.008, k.ha)
        : k.cool ? ok(Math.min(k.La, 0.62), Math.min(k.Ca * 0.55, 0.07), coolHue(k.ha))
          : ok(Math.min(k.La, 0.6), Math.min(k.Ca, 0.1), k.ha);
    }
    return { bg: sky, surface: color.lighten(sky, -0.04), ink: k.dark, muted: color.mix(sky, k.dark, 0.4), accent: hill, accentInk: k.pale };
  },
  dusk(page, k) {
    // a natural evening: a deep blue sky with a band of gold low on the horizon, whatever the accent
    // (a blue glow under a blue accent read as the day panel again, only darker). The gold leans toward a
    // warm accent's hue but stays between amber and gold: a red-orange glow paints the lit crests rust.
    // A gold that mixes with the cool grey of the hills turns beige, never mauve or violet.
    const colourPage = k.kind === 'colour';
    const h = colourPage ? k.hb : k.cool ? coolHue(k.ha) : 248;
    const c = colourPage ? Math.min(k.Cb * 0.5, 0.065) : 0.04;
    const sky = ok(0.26, c, h);
    const glow = colourPage ? ok(0.78, Math.min(k.Cb * 0.4, 0.08), k.hb)
      : ok(0.8, 0.115, k.warm ? Math.min(80, Math.max(58, k.ha < 180 ? k.ha : 58)) : 74);
    return { bg: sky, surface: color.lighten(sky, 0.04), ink: k.pale, muted: ok(0.58, 0.012, h), accent: glow, accentInk: k.dark };
  },
  meadow(page, k) {
    // a sky with chroma above 0.07 is painted as a colour sky over a field of the accent: here a clear
    // blue (never toward violet) over sunlit grass
    const blue = k.kind === 'colour' && k.hb >= 220 && k.hb <= 270;
    const sky = blue ? ok(0.62, Math.min(Math.max(k.Cb * 0.6, 0.09), 0.12), k.hb) : ok(0.66, 0.1, 238);
    const grass = ok(0.74, 0.12, 112);
    return { bg: sky, surface: color.lighten(sky, -0.05), ink: ok(0.97, 0.01, 238), muted: ok(0.8, 0.03, 238), accent: grass, accentInk: k.dark };
  },
};

/* a soft grain: light grounds under a warm accent (a warm accent on a dark ground mixes to rust), deep
   ones under a cool accent, the page colour's own shades on a colour page */
function grainGround(page, k) {
  if (k.kind === 'colour') {
    return { ...page, bg: ok(0.5, Math.min(k.Cb * 0.8, 0.16), k.hb), surface: ok(0.42, Math.min(k.Cb * 0.9, 0.18), k.hb), accent: ok(0.8, Math.min(k.Cb * 0.4, 0.09), k.hb), muted: ok(0.66, 0.04, k.hb) };
  }
  if (k.kind === 'dark') {
    if (k.cool) return { ...page, bg: ok(0.34, Math.min(k.Ca * 0.4, 0.06), k.ha), surface: ok(0.42, Math.min(k.Ca * 0.5, 0.07), k.ha), muted: ok(0.6, 0.03, k.ha) };
    return { ...page, bg: ok(0.8, 0.025, k.ha), surface: ok(0.72, 0.04, k.ha), ink: k.dark, muted: ok(0.6, 0.02, k.ha) };
  }
  return { ...page, bg: color.mix(page.bg, page.accent, 0.16), surface: color.mix(page.bg, page.accent, 0.3), muted: color.mix(page.bg, page.ink, 0.5) };
}

function groundPalette(page, id, scene) {
  const k = read(page);
  if (id === 'painterly-landscape') return (SCENES[scene] || SCENES.day)(page, k);
  if (id === 'grain-gradient') return grainGround(page, k);
  return { ...page, bg: color.mix(page.bg, page.accent, 0.16), surface: color.mix(page.bg, page.accent, 0.3), muted: color.mix(page.bg, page.ink, 0.5) };
}

/* ------------------------------------------------------------------ the pointer demo */

const POINTER = '<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 2.8v13.4l3.5-3.3 2.3 5.1 2.5-1.1-2.3-5h5Z"/></svg>';

/* one demo: a pointer and a click ring in the panel; script(api) runs once per loop */
function demo(panel, script, end) {
  const ptr = document.createElement('span');
  ptr.className = 'cx-feat__ptr';
  ptr.innerHTML = POINTER;
  const ring = document.createElement('span');
  ring.className = 'cx-feat__ring';
  panel.append(ring, ptr);
  let alive = true, onScreen = false;
  const io = new IntersectionObserver(e => { onScreen = e[e.length - 1].isIntersecting; });
  io.observe(panel);
  const running = () => onScreen && !document.hidden && !held(panel);
  // wait ms of running time: off screen, in a hidden tab or paused, the clock stops
  const wait = ms => new Promise(res => {
    let acc = 0, last = performance.now();
    const step = () => {
      if (!alive) return;
      const now = performance.now();
      if (running()) acc += now - last;
      last = now;
      if (acc >= ms) res(); else setTimeout(step, running() ? Math.min(100, ms - acc) : 250);
    };
    step();
  });
  const move = (x, y, instant) => {
    if (instant) ptr.style.transition = 'none';
    ptr.style.transform = `translate(${(x - 4).toFixed(1)}px, ${(y - 3).toFixed(1)}px)`;
    if (instant) { ptr.getBoundingClientRect(); ptr.style.transition = ''; }
  };
  const spot = el => {
    const pr = panel.getBoundingClientRect(), r = el.getBoundingClientRect();
    return [r.left - pr.left + r.width * 0.56, r.top - pr.top + r.height * 0.62];
  };
  const show = on => { ptr.style.opacity = on ? '1' : '0'; };
  const click = async el => {
    const [x, y] = spot(el);
    // the ring is placed with the translate property and grows with scale: the two compose as
    // translate then scale, so the ring grows on the spot (a translate inside transform would be
    // scaled too and fly off across the window)
    ring.style.translate = `${x.toFixed(1)}px ${y.toFixed(1)}px`;
    ring.classList.remove('is-on'); void ring.offsetWidth; ring.classList.add('is-on');
    el.classList.add('is-down');
    await wait(140);
    el.classList.remove('is-down');
  };
  const api = { wait, move, spot, show, click, panel };
  if (reduced()) end();
  else {
    end();   // the finished picture first, so a panel that is off screen, paused or never seen is never empty
    (async () => { while (alive) { await wait(600); await script(api); } })();
  }
  return { destroy() { alive = false; io.disconnect(); ptr.remove(); ring.remove(); } };
}

const SCRIPTS = {
  invoice(panel) {
    const btn = panel.querySelector('[data-target]'), label = btn.querySelector('[data-label]');
    const state = panel.querySelector('[data-state]');
    const reset = () => { btn.classList.remove('is-done'); label.textContent = 'Send'; state.textContent = 'Draft'; state.classList.remove('is-on'); };
    const done = () => { btn.classList.add('is-done'); label.textContent = 'Sent'; state.textContent = 'Sent'; state.classList.add('is-on'); };
    return {
      still: done,
      async run({ wait, move, spot, show, click, panel: p }) {
        reset();
        const [x, y] = spot(btn);
        show(false);
        move(x - 150, y + 150, true);
        await wait(900);
        show(true);
        move(x, y);
        await wait(1300);
        await click(btn);
        label.textContent = 'Sending';
        await wait(700);
        done();
        await wait(500);
        move(x + 40, Math.min(p.clientHeight - 30, y + 110));
        show(false);
        await wait(3200);
      },
    };
  },
  invite(panel) {
    const btn = panel.querySelector('[data-target]'), label = btn.querySelector('[data-label]');
    const typed = panel.querySelector('[data-type]'), win = panel.querySelector('[data-demo]');
    const EMAIL = 'ana@northwind.co';
    const reset = () => { typed.textContent = ''; win.classList.remove('is-added'); btn.classList.remove('is-done'); label.textContent = 'Invite'; };
    const done = () => { typed.textContent = ''; win.classList.add('is-added'); btn.classList.add('is-done'); label.textContent = 'Invited'; };
    return {
      still: done,
      async run({ wait, move, spot, show, click, panel: p }) {
        reset();
        const [x, y] = spot(btn);
        show(false);
        move(x - 160, y + 140, true);
        await wait(700);
        for (const ch of EMAIL) { typed.textContent += ch; await wait(55); }
        await wait(300);
        show(true);
        move(x, y);
        await wait(1300);
        await click(btn);
        await wait(250);
        done();
        await wait(500);
        move(x + 30, Math.min(p.clientHeight - 30, y + 120));
        show(false);
        await wait(3400);
      },
    };
  },
};

export default function init(root) {
  const b = bag();
  const page = palette(root);
  root.querySelectorAll('.cx-feat__panel').forEach(panel => {
    const id = panel.dataset.cxEffect || 'painterly-landscape';
    const ground = groundPalette(page, id, panel.dataset.cxScene);
    const params = { ...(GROUNDS[id] || {}), ...(paramsOf(panel) || {}), speed: 0, drift: 0 };
    // the ground never moves: drawn once, kept as a picture, its context freed
    b.add(still(panel, id, { palette: ground, seed: panel.dataset.cxSeed, params }));
    const loop = SCRIPTS[panel.dataset.cxLoop];
    if (loop) {
      // the pause button holds the pointer demo (the ground is a picture and has nothing to pause)
      if (!reduced()) b.add(pauser(panel, { label: 'the demo', corner: 'tr' }));
      const s = loop(panel);
      b.add(demo(panel, s.run, s.still));
    }
  });
  return b;
}

export { groundPalette };
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall