Logo Fluid

Fluid

Cộng đồng
Darcos-Loft
fluid

Thiết kế chuyển động web đạt chuẩn production cho trang React và Tailwind. Dùng khi xây dựng, lựa chọn hoặc đánh giá hoạt ảnh, hiệu ứng cuộn, hiệu ứng xuất hiện, chuyển trang, hiệu ứng rê chuột, bộ đếm, marquee hoặc tương tác vi mô. Quy định các nguyên tắc về easing, thời gian, spring, điểm gốc và giảm chuyển động, đồng thời cung cấp thư viện thành phần có thể tích hợp ngay.

Add to TypingMind

Tổng quan

Nhà phát hànhDarcos-Loft
Kho mãfluid
Tên kỹ năngfluid
Sao
3
Bản fork
0
Tệp đi kèm
16
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 16 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Darcos-Loft công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Fluid trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Darcos-Loft/fluid/tree/main/fluid
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Darcos-Loft/fluid.git /tmp/fluid
mkdir -p .claude/skills
cp -r /tmp/fluid/fluid .claude/skills/fluid
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Fluid trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Fluid ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Fluid với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Fluid

Motion that feels like an extension of the user, not decoration. This skill is a house motion language: a small set of rules that decide whether to animate and how, plus a library of components that already follow them.

The rules are distilled from years of our own production sites into one house motion language.

House craft bar: the finish reference is plrstudio.fr. Motion stays restrained and serves the content (Swiss craft, the motion only accompanies). The differentiator is the quality of each detail, not the count of effects. When in doubt, do less, and make what remains feel inevitable: signature easings, spring micro-interactions, custom SVG over stock icons, a rationed brand accent.

When to use this skill

Whenever a task involves movement on a web interface:

  • adding or changing an animation, transition, hover, or scroll effect
  • building a reveal on scroll, a rolling counter, a marquee, a smooth-scroll page
  • reviewing a UI for "why does this animation feel off"
  • starting a new site and wanting the motion baseline set correctly

First decision: does it deserve motion?

fluid loves motion, used on purpose. Animate what rewards the eye and clarifies the moment; keep instant what the user hits constantly. The aim is fluid, not busy.

Let it flow when it is occasional, teaches something, gives feedback, reveals content, or keeps space consistent (a panel returns the way it left). That is most of a marketing site: heroes, reveals, counters, hovers, section transitions.

Keep it instant when:

  • the interaction happens many times a day (menus, list rows, repeated hovers)
  • it is triggered by the keyboard or by a tool the user runs to go fast
  • it adds nothing to clarity, feedback, or spatial understanding

If you keep one line: frequent means instant, everything else gets to flow.

The rules (apply by default)

Timing

  • Frequent micro-interactions stay fast: hovers, presses, selects around 150 to 250ms. Reveals, heroes, and ambient motion can run longer (600ms and up) when deliberate.
  • Animate transform and opacity for anything that moves often (GPU-cheap, smooth). Avoid animating layout (width, height, top, margin), and prefer naming the properties over a blanket transition: all.

Easing

  • ease-out for almost everything that enters or exits. It feels responsive.
  • ease-in-out for elements that move or morph while staying on screen.
  • ease-in suits exits more than enters; for enters use ease-out.
  • linear only for marquees, hold-to-confirm, and 3D rotation.
  • Prefer the house signature curves over browser defaults: --out: cubic-bezier(0.22, 1, 0.36, 1) for enters, exits, and hovers (the default), --fr: cubic-bezier(0.27, 0, 0.51, 1) for on-screen morphs and position changes, --spring: cubic-bezier(0.34, 1.4, 0.5, 1) for a gentle overshoot. The Reveal component uses a slightly stronger expo variant cubic-bezier(0.16, 1, 0.3, 1) for large section reveals. Full set in reference/easings-and-durations.md.

Springs (anything gesture-driven or that should feel physical)

  • Think in damping and response, never in duration.
  • Default to no overshoot. Add bounce only when the motion carried momentum.
  • The house rolling counter uses stiffness 120, damping 20.

Details that separate good from great

  • Press feedback: scale(0.97) on :active, around 150ms.
  • Never animate from scale(0). Start near 0.93 so it grows, instead of materialising from nothing.
  • Make scaling origin-aware. Popovers grow from their trigger: use the library transform-origin variable (Radix, Base UI), not the center.
  • If an animation still feels wrong after fixing easing and timing, add filter: blur(2px) across the transition.
  • Do not delay repeated tooltips. Delay the first, make the rest instant.

Accessibility (non negotiable)

  • Every motion must honour prefers-reduced-motion: disable inertia and parallax, snap counters to their final value, freeze ambient canvases on the first frame. Every component here already does this. Keep it that way.

Workflow

  1. Decide if it should move at all (section above). If not, stop.
  2. Pick the smallest tool: a CSS transition for a hover or press, a scroll-linked reveal for sections, a spring for anything gesture-driven or physical.
  3. Reach for a component below before writing new motion. When you do write new motion, follow the recipes in reference/motion-craft.md.
  4. Set easing and duration from the rules. transform and opacity only.
  5. Add the reduced-motion path in the same change, not later.
  6. Review against reference/anti-patterns.md before calling it done.

Component library

Drop-in, dependency-light, all reduced-motion safe. Files in components/. Stack: React 19, framer-motion, lenis, Tailwind v4.

  • SmoothScroll + ScrollContext: one weighted Lenis instance feeding a single shared velocity and progress value to the whole page. The biggest single lever for the premium feel. lerp 0.09, duration 1.1, native fallback under reduced motion.
  • ScrollProgress: a 2px reading-progress hairline that reuses the shared progress value at zero extra scroll cost.
  • Reveal: opacity and y: 24 on scroll into view, expo-out, fires once. The default way to bring sections in.
  • Odometer: per-digit rolling counter, springs to its value on view, locale-aware grouping, tabular figures.
  • AmbientField: soft brand-tinted blobs drifting on additive blend behind a hero. Pure canvas, no deps, paused off screen, frozen under reduced motion, gradients cached.
  • Marquee (+ marquee.css): infinite linear scroll for logos or tickers, the one correct use of linear. Pauses on hover, freezes under reduced motion.

Detector (deterministic guardrail)

Run detector/detect.mjs to scan code for these anti-patterns automatically, with no API calls. It is the fast, measurable, anti-generic check.

bash
node detector/detect.mjs src          # or bun; folders or files
node detector/detect.mjs --json src   # for CI
node detector/detect.mjs --strict src # exit 1 on warnings too

It flags the motion smells above (transition: all, layout animation, ease-in, scale(0), long durations, dated bounce, missing reduced-motion) and the generic-look tells (Inter/Roboto/Arial as a primary font, the purple gradient, pure black, emoji icons, Aceternity/Magic UI/21st template signatures shipped verbatim, and the display fonts generations converge on: Space Grotesk, Geist, Plus Jakarta Sans). Suppress a line with fluid-disable-line, configure via fluid.config.json. Rules live in detector/rules.mjs, extend them as the house ruleset grows. Run it before calling any UI change done.

Reference (load when needed)

  • reference/easings-and-durations.md: the full easing map, custom curves, duration table.
  • reference/motion-craft.md: implementation recipes (text blur reveal, pointer physics, number roll, spring discipline, stagger), all reduced-motion safe. Read this when you write new motion.
  • reference/principles.md: the motion principles behind the rules, condensed.
  • reference/anti-patterns.md: the review checklist. Seed of a future deterministic detector.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Fluid làm được gì?

Thiết kế chuyển động web đạt chuẩn production cho trang React và Tailwind. Dùng khi xây dựng, lựa chọn hoặc đánh giá hoạt ảnh, hiệu ứng cuộn, hiệu ứng xuất hiện, chuyển trang, hiệu ứng rê chuột, bộ đếm, marquee hoặc tương tác vi mô. Quy định các nguyên tắc về easing, thời gian, spring, điểm gốc và giảm chuyển động, đồng thời cung cấp thư viện thành phần có thể tích hợp ngay.

Vì sao nên dùng Fluid trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Fluid là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Fluid trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Darcos-Loft/fluid/tree/main/fluid. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Fluid?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Fluid với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Fluid với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Fluid có miễn phí không?

Có. Kỹ năng này được Darcos-Loft phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇