Skip to content

Basinfy/Basinfy-SaaS-Studio / .claude/skills/saas-frontend-taste

saas-frontend-taste

Verified

Design, refine, and verify SaaS screens with anti-slop copy and responsive layout checks.

FileKindSize
SKILL.mdskill md11.1 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/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.9 KB
assets/layout/check.mjsscript15.8 KB
assets/layout/deal.mjsscript9.5 KB
assets/layout/demo.cssother5.7 KB
assets/layout/fonts.htmlother9.5 KB
assets/layout/hero-centred.htmlother16.4 KB
assets/layout/hero-collage.htmlother15.7 KB
assets/layout/hero-editorial.htmlother8.1 KB
assets/layout/hero-film.htmlother7.8 KB
assets/layout/hero-photo.htmlother7.8 KB
assets/layout/hero-place.htmlother6.7 KB
assets/layout/hero-product.htmlother7.7 KB
assets/layout/hero-split.htmlother7.8 KB
assets/layout/hero-statement.htmlother8.4 KB
assets/layout/hero-triptych.htmlother14.2 KB
assets/layout/hero-word.htmlother10.1 KB
assets/layout/heroes.jsonconfig36.7 KB
assets/layout/img/credits.jsonconfig8.2 KB
assets/layout/img/photo-1068.jpgbinary48.0 KB
assets/layout/img/photo-1081.jpgbinary40.5 KB
assets/layout/img/photo-465.jpgbinary19.6 KB
assets/layout/img/photo-559.jpgbinary86.2 KB
assets/layout/img/photo-855.jpgbinary25.8 KB
assets/layout/img/photo-887.jpgbinary66.8 KB
assets/layout/img/photo-949.jpgbinary37.1 KB
assets/layout/img/photo-954.jpgbinary17.4 KB
assets/layout/img/photo-beans-hand.jpgbinary17.1 KB
assets/layout/img/photo-c166.jpgbinary32.3 KB
assets/layout/img/photo-c400.jpgbinary98.8 KB
assets/layout/img/photo-c7.jpgbinary24.7 KB
assets/layout/img/photo-c70.jpgbinary32.4 KB
assets/layout/img/photo-c8.jpgbinary25.1 KB
assets/layout/img/photo-c823.jpgbinary34.7 KB
assets/layout/img/photo-c96.jpgbinary33.0 KB
assets/layout/img/photo-d534.jpgbinary121.7 KB
assets/layout/img/photo-d540.jpgbinary119.9 KB
assets/layout/img/photo-d88.jpgbinary38.8 KB
assets/layout/img/photo-m61660576.jpgbinary39.5 KB
assets/layout/img/photo-m61757972.jpgbinary43.6 KB
assets/layout/layout-check.jsscript21.1 KB
assets/layout/layout.cssother44.4 KB
assets/layout/layout.jsscript14.8 KB
assets/moments/_demo/credits.jsonconfig1.3 KB
assets/moments/_demo/demo.cssother6.8 KB
assets/moments/_demo/in-card.htmlother1.8 KB
assets/moments/_demo/in-page-service.htmlother10.3 KB
assets/moments/_demo/in-page.htmlother9.6 KB
assets/moments/_demo/photo-1049-tall.jpgbinary36.5 KB
assets/moments/_demo/photo-1049.jpgbinary27.9 KB
assets/moments/_demo/photo-1081.jpgbinary39.9 KB
assets/moments/_demo/photo-640.jpgbinary102.7 KB
assets/moments/_demo/photo-702-tall.jpgbinary100.0 KB
assets/moments/_demo/photo-702.jpgbinary80.0 KB
assets/moments/_demo/photo-855.jpgbinary25.4 KB
assets/moments/_demo/photo-887.jpgbinary62.7 KB
assets/moments/closing-lift/demo.htmlother4.3 KB
assets/moments/closing-lift/meta.jsonconfig1.3 KB
assets/moments/closing-lift/moment.cssother2.3 KB
assets/moments/closing-lift/moment.jsscript2.9 KB
assets/moments/counter-rolls/demo.htmlother5.3 KB
assets/moments/counter-rolls/meta.jsonconfig913 B
assets/moments/counter-rolls/moment.cssother718 B
assets/moments/counter-rolls/moment.jsscript3.3 KB
assets/moments/cursor-spotlight/demo.htmlother4.3 KB
assets/moments/cursor-spotlight/meta.jsonconfig1.2 KB
assets/moments/cursor-spotlight/moment.cssother1.2 KB
assets/moments/cursor-spotlight/moment.jsscript2.2 KB
assets/moments/gallery.htmlother8.2 KB
assets/moments/giant-type-pass/demo.htmlother3.6 KB
assets/moments/giant-type-pass/meta.jsonconfig1.0 KB
assets/moments/giant-type-pass/moment.cssother1.5 KB
assets/moments/giant-type-pass/moment.jsscript2.0 KB
assets/moments/headline-arrives/demo.htmlother3.9 KB
assets/moments/headline-arrives/meta.jsonconfig1.0 KB
assets/moments/headline-arrives/moment.cssother1.6 KB
assets/moments/headline-arrives/moment.jsscript2.6 KB
assets/moments/index.jsonconfig21.4 KB
assets/moments/iris-opens/demo.htmlother4.9 KB
assets/moments/iris-opens/meta.jsonconfig1.3 KB
assets/moments/iris-opens/moment.cssother2.0 KB
assets/moments/iris-opens/moment.jsscript4.6 KB
assets/moments/letters-assemble/demo.htmlother4.2 KB
assets/moments/letters-assemble/meta.jsonconfig1.0 KB
assets/moments/letters-assemble/moment.cssother1.1 KB
assets/moments/letters-assemble/moment.jsscript2.9 KB
assets/moments/lib.jsscript10.5 KB
assets/moments/line-carries-colour/demo.htmlother4.4 KB
assets/moments/line-carries-colour/meta.jsonconfig1.4 KB
assets/moments/line-carries-colour/moment.cssother1.6 KB
assets/moments/line-carries-colour/moment.jsscript4.0 KB
assets/moments/lines-rise/demo.htmlother5.1 KB
assets/moments/lines-rise/meta.jsonconfig984 B
assets/moments/lines-rise/moment.cssother1.3 KB
assets/moments/lines-rise/moment.jsscript3.0 KB
assets/moments/liquid-hover/demo.htmlother3.3 KB
assets/moments/liquid-hover/meta.jsonconfig1.4 KB
assets/moments/liquid-hover/moment.cssother457 B
assets/moments/liquid-hover/moment.jsscript13.1 KB
assets/moments/liquid-type/demo.htmlother3.0 KB
assets/moments/liquid-type/meta.jsonconfig1.0 KB
assets/moments/liquid-type/moment.cssother462 B
assets/moments/liquid-type/moment.jsscript4.1 KB
assets/moments/marquee-row/demo.htmlother4.3 KB
assets/moments/marquee-row/meta.jsonconfig867 B
assets/moments/marquee-row/moment.cssother2.0 KB
assets/moments/marquee-row/moment.jsscript2.4 KB
assets/moments/moments.jsscript6.0 KB
assets/moments/photo-chapters/demo.htmlother5.1 KB
assets/moments/photo-chapters/meta.jsonconfig1.8 KB
assets/moments/photo-chapters/moment.cssother6.2 KB
assets/moments/photo-chapters/moment.jsscript6.1 KB
assets/moments/picture-develops/demo-film.htmlother3.9 KB
assets/moments/picture-develops/demo.htmlother4.2 KB
assets/moments/picture-develops/meta.jsonconfig1.4 KB
assets/moments/picture-develops/moment.cssother1.9 KB
assets/moments/picture-develops/moment.jsscript9.2 KB
assets/moments/pinned-chapters/demo.htmlother5.4 KB
assets/moments/pinned-chapters/meta.jsonconfig1.3 KB
assets/moments/pinned-chapters/moment.cssother6.9 KB
assets/moments/pinned-chapters/moment.jsscript4.2 KB
assets/moments/window-parallax/demo.htmlother3.8 KB
assets/moments/window-parallax/meta.jsonconfig913 B
assets/moments/window-parallax/moment.cssother591 B
assets/moments/window-parallax/moment.jsscript1.2 KB
assets/moments/word-highlight/demo.htmlother4.5 KB
assets/moments/word-highlight/meta.jsonconfig1.0 KB
assets/moments/word-highlight/moment.cssother849 B
assets/moments/word-highlight/moment.jsscript2.0 KB
assets/moments/word-rotate/demo.htmlother4.5 KB
assets/moments/word-rotate/meta.jsonconfig948 B
assets/moments/word-rotate/moment.cssother906 B
assets/moments/word-rotate/moment.jsscript2.2 KB
assets/motion/_hover-test.htmlother1.4 KB
assets/motion/demo.htmlother34.1 KB
assets/motion/meta.jsonconfig2.7 KB
assets/motion/motion.cssother25.1 KB
assets/motion/motion.jsscript22.8 KB
assets/starter.htmlother34.2 KB
assets/system.cssother100.5 KB
assets/system.jsscript34.9 KB
assets/ui/_lab/build-index.mjsscript4.0 KB
assets/ui/_lab/loops.htmlother8.7 KB
assets/ui/_lab/object-card.htmlother4.7 KB
assets/ui/_lab/selftest.htmlother3.1 KB
assets/ui/apps/fragment.cssother3.0 KB
assets/ui/apps/fragment.htmlother2.3 KB
assets/ui/apps/fragment.jsscript2.0 KB
assets/ui/apps/meta.jsonconfig1.6 KB
assets/ui/base.cssother15.7 KB
assets/ui/calendar/fragment.cssother4.4 KB
assets/ui/calendar/fragment.htmlother3.4 KB
assets/ui/calendar/fragment.jsscript3.4 KB
assets/ui/calendar/meta.jsonconfig957 B
assets/ui/cards.cssother21.6 KB
assets/ui/cards.htmlother52.3 KB
assets/ui/chat/fragment.cssother3.9 KB
assets/ui/chat/fragment.htmlother5.0 KB
assets/ui/chat/fragment.jsscript2.9 KB
assets/ui/chat/meta.jsonconfig1.1 KB
assets/ui/checklist/fragment.cssother2.2 KB
assets/ui/checklist/fragment.htmlother1.3 KB
assets/ui/checklist/fragment.jsscript1.5 KB
assets/ui/checklist/meta.jsonconfig901 B
assets/ui/code/fragment.cssother2.6 KB
assets/ui/code/fragment.htmlother1.6 KB
assets/ui/code/fragment.jsscript1.7 KB
assets/ui/code/meta.jsonconfig857 B
assets/ui/cursor/fragment.cssother2.4 KB
assets/ui/cursor/fragment.htmlother1.7 KB
assets/ui/cursor/fragment.jsscript3.2 KB
assets/ui/cursor/meta.jsonconfig1.2 KB
assets/ui/diff-review/fragment.cssother13.9 KB
assets/ui/diff-review/fragment.htmlother4.9 KB
assets/ui/diff-review/fragment.jsscript2.4 KB
assets/ui/diff-review/meta.jsonconfig3.9 KB
assets/ui/doc/fragment.cssother2.4 KB
assets/ui/doc/fragment.htmlother1.2 KB
assets/ui/doc/fragment.jsscript3.2 KB
assets/ui/doc/meta.jsonconfig1.2 KB
assets/ui/files/fragment.cssother3.9 KB
assets/ui/files/fragment.htmlother3.3 KB
assets/ui/files/fragment.jsscript3.4 KB
assets/ui/files/meta.jsonconfig1.7 KB
assets/ui/icons/asana.svgother1004 B
assets/ui/icons/calendly.svgother1.8 KB
assets/ui/icons/confluence.svgother2.4 KB
assets/ui/icons/docker.svgother2.2 KB

assets/moments/picture-develops/moment.js

View on GitHub
/*
  picture-develops - a photograph develops once as its frame comes on screen, in one of two looks.

  look "film" (the default on a place, product or service page, <meta name="site-kind" content="other">
  or <html data-type="place">): the photograph comes up out of the paper the way a print does in the
  developer tray: pale, flat and without colour at first, its darks arriving before its light tones,
  then its colour, while it settles from a slight zoom. About 1.6 s, once; transform and a CSS filter
  on the one picture, no canvas, any origin.

  look "print" (the default on a tech, devtools or software page): first a two-tone
  halftone print, ink dots on paper in the ground's surface tone (so the frame keeps its edges and
  radius while it develops), its darkest cells first, then the print gives way to the photograph,
  which settles from a slight zoom. A picture with a clear subject against a plain field (a rock on
  a beach, a facade) prints best; an all-mid-tone picture is a blur of dots. About 1.8 s, once; timed, not scrubbed. One 2D
  canvas, freed when it is done. Under reduced motion, without script, or when the picture cannot be
  read (another origin without CORS) the photograph stands.

    <figure class="frame frame--photo" data-moment="picture-develops" data-moment-opts='{"cell": 9}'>
      <img src="…" alt="…" width="1800" height="1200" crossorigin="anonymous">
    </figure>

  The host sets the picture's size (an aspect-ratio or a height); the photograph fills it (cover).
  opts: look "film" | "print" (by the page's kind when left out); cell px of the halftone (9, 6-14);
        duration ms (film 1600, print 1800); focus [x, y] 0-1 of the crop (0.5, 0.5).
  Give it a photograph big enough to be the section's subject (half the container or more): a small
  picture developing reads as a loading state, not a moment.
  On a phone the film look runs too (one picture, a filter and a transform, once); the print look
  (a canvas) shows the photograph there.
*/
export const phone = true;
// a place, product or service page (site-kind other): the photographic look, never the halftone print
const otherPage = () => {
  const m = document.querySelector('meta[name="site-kind"]');
  return document.documentElement.dataset.type === 'place' || (!!m && m.content.trim().toLowerCase() === 'other');
};
export default function (root, opts, lib) {
  const img = root.querySelector('img');
  if (!img) return {};
  root.classList.add('mo-pd');
  if (lib.reduced()) { root.classList.add('is-done'); return {}; }
  if ((opts.look || (otherPage() ? 'film' : 'print')) === 'film') return film(root, img, opts, lib);
  if (lib.phone()) { root.dataset.momentStill = 'phone'; root.classList.add('is-done'); return {}; }
  const cell = Math.max(6, Math.min(14, +opts.cell || 9));
  const dur = Math.max(900, +opts.duration || 1800);
  const [fx, fy] = Array.isArray(opts.focus) ? opts.focus : [0.5, 0.5];
  const canvas = document.createElement('canvas');
  canvas.className = 'mo-pd__print';
  canvas.setAttribute('aria-hidden', 'true');
  root.append(canvas);
  root.classList.add('is-live');
  let raf = 0, done = false;
  const finish = () => { if (done) return; done = true; if (raf) cancelAnimationFrame(raf); canvas.remove(); root.classList.remove('is-live'); root.classList.add('is-done'); };
  // the paper is the ground's surface tone, a shade off the page, so the frame keeps its edges while
  // the print develops; the dots are the ink
  const tokens = () => { const cs = getComputedStyle(root); return { bg: cs.getPropertyValue('--surface').trim() || cs.getPropertyValue('--bg').trim() || '#f4f4f4', ink: cs.getPropertyValue('--ink').trim() || '#111' }; };
  const sample = () => {
    const w = root.clientWidth, h = root.clientHeight;
    if (!w || !h || !img.naturalWidth) return null;
    canvas.width = w; canvas.height = h;
    const cols = Math.ceil(w / cell), rows = Math.ceil(h / cell);
    const off = document.createElement('canvas');
    off.width = cols; off.height = rows;
    const ox = off.getContext('2d', { willReadFrequently: true });
    const ir = img.naturalWidth / img.naturalHeight, fr = w / h;
    let sw = img.naturalWidth, sh = img.naturalHeight, sx = 0, sy = 0;
    if (ir > fr) { sw = sh * fr; sx = (img.naturalWidth - sw) * fx; } else { sh = sw / fr; sy = (img.naturalHeight - sh) * fy; }
    ox.drawImage(img, sx, sy, sw, sh, 0, 0, cols, rows);
    let data;
    try { data = ox.getImageData(0, 0, cols, rows).data; } catch { return null; }
    const dark = new Float32Array(cols * rows);
    for (let i = 0; i < cols * rows; i++) dark[i] = 1 - (0.2126 * data[i * 4] + 0.7152 * data[i * 4 + 1] + 0.0722 * data[i * 4 + 2]) / 255;
    return { cols, rows, dark };
  };
  const draw = (g, t) => {
    const ctx = canvas.getContext('2d');
    const { bg, ink } = tokens();
    ctx.fillStyle = bg;
    ctx.fillRect(0, 0, canvas.width, canvas.height);
    ctx.fillStyle = ink;
    const thr = 1 - t * 1.12;               // the darkest cells first, then the lighter ones
    const half = cell / 2;
    ctx.beginPath();
    for (let r = 0; r < g.rows; r++) {
      const shift = (r & 1) ? half * 0.5 : -half * 0.5;
      for (let c = 0; c < g.cols; c++) {
        const d = g.dark[r * g.cols + c];
        if (d <= thr) continue;
        const k = Math.min(1, (d - thr) / 0.22);  // a cell's dot grows in over a short span
        const rad = half * Math.min(1, d * 1.15) * k;
        if (rad < 0.35) continue;
        const x = c * cell + half + shift, y = r * cell + half;
        ctx.moveTo(x + rad, y);
        ctx.arc(x, y, rad, 0, 6.2832);
      }
    }
    ctx.fill();
  };
  const run = async () => {
    try { if (!img.complete) await new Promise((r, j) => { img.addEventListener('load', r, { once: true }); img.addEventListener('error', j, { once: true }); }); await img.decode?.(); } catch { /* shows anyway */ }
    const g = sample();
    if (!g) return finish();
    root.classList.add('is-developing');
    let t0 = 0;
    const step = now => {
      if (done) return;
      if (!t0) t0 = now;
      const u = Math.min(1, (now - t0) / dur);
      if (u < 0.58) { draw(g, 0.14 + lib.ease.out(u / 0.58) * 0.86); canvas.style.opacity = '1'; }
      else { canvas.style.opacity = String(1 - lib.ease.smooth(0.58, 1, u)); }
      if (u < 1) raf = requestAnimationFrame(step); else finish();
    };
    raf = requestAnimationFrame(step);
  };
  // the print covers the photograph only from just before the frame scrolls in: a frame no observer reports keeps its photograph
  canvas.style.display = 'none'; root.classList.remove('is-live');
  const cover = () => { if (done) return; canvas.style.display = ''; root.classList.add('is-live'); };
  const r0 = root.getBoundingClientRect();
  if (r0.bottom > 0 && r0.top < innerHeight * 1.25) cover();   // already near at mount: covered at once, as before
  const arm = lib.once(root, cover, { threshold: 0, margin: '0px 0px 25% 0px' });
  const seen = lib.once(root, () => { cover(); run(); }, { threshold: Math.min(0.4, 0.6 * innerHeight / Math.max(1, root.getBoundingClientRect().height)) });
  return { destroy() { arm.destroy(); seen.destroy(); finish(); } };
}

// the film look: the picture itself, from a pale flat grey print to the photograph (moment.css holds the
// start under .is-armed from just before the frame scrolls in, so a frame no observer reports keeps its photograph)
function film(root, img, opts, lib) {
  const dur = Math.max(1000, +opts.duration || 1600);
  let done = false, anim = null;
  root.classList.add('mo-pd--film');
  const finish = () => { if (done) return; done = true; anim?.cancel(); root.classList.remove('is-armed', 'is-live'); root.classList.add('is-done'); };
  const arm = () => { if (!done) root.classList.add('is-armed'); };
  const run = async () => {
    if (done) return;
    arm();
    try { if (!img.complete) await new Promise(r => { img.addEventListener('load', r, { once: true }); img.addEventListener('error', r, { once: true }); }); } catch { /* shows anyway */ }
    if (done) return;
    root.classList.add('is-live');
    // the darks come first (contrast), the colour last (saturation); the zoom settles over the whole run.
    // The change starts on the first frame and runs evenly to a soft landing: a print that sat still for
    // half a second would read as a picture still loading
    anim = img.animate([
      { filter: 'grayscale(1) contrast(.55) brightness(1.32)', transform: 'scale(1.06)' },
      { filter: 'grayscale(.8) contrast(.82) brightness(1.14)', offset: 0.3 },
      { filter: 'grayscale(.35) contrast(.95) brightness(1.04)', offset: 0.62 },
      { filter: 'grayscale(0) contrast(1) brightness(1)', transform: 'none' },
    ], { duration: dur, easing: 'cubic-bezier(.3, .2, .3, 1)', fill: 'both' });
    root.classList.remove('is-armed');
    anim.finished.then(finish, finish);
  };
  const r0 = root.getBoundingClientRect();
  if (r0.bottom > 0 && r0.top < innerHeight * 1.25) arm();
  const near = lib.once(root, arm, { threshold: 0, margin: '0px 0px 25% 0px' });
  // it develops once a quarter of it is on screen (less of a frame taller than half the screen), so the
  // faint print is seen only briefly before it starts to change
  const seen = lib.once(root, run, { threshold: Math.min(0.25, 0.4 * innerHeight / Math.max(1, r0.height)) });
  return { destroy() { near.destroy(); seen.destroy(); finish(); } };
}
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: 323kUpdated 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