Skip to content
Skills Library
Design & UX · Building & coding

fluidither

/fluidither

Build interfaces with fluidither, a dithered, spring-driven UI library for the plain web (HTML, CSS, JS, no framework) and GPUI (Rust). Use whenever someone wants fluidither components, a dithered or print-like interface, ordered dithering, halftone or blue noise effects, dithered charts or backgrounds, spring-based hover and selection motion, or UI that must work under a strict Content Security Policy with no framework. Also use when porting a screen between the web and GPUI, because the two targets share tokens and produce the same dither cells.

Author
vrnrn ↗
Repository
fluidither ↗
Licence
MIT
Last repository change
05.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Build interfaces with fluidither, a dithered, spring-driven UI library for the plain web (HTML, CSS, JS, no framework) and GPUI (Rust). Use whenever someone wants fluidither components, a dithered or print-like interface, ordered dithering, halftone or blue noise effects, dithered charts or backgrounds, spring-based hover and selection motion, or UI that must work under a strict Content Security Policy with no framework. Also use when porting a screen between the web and GPUI, because the two targets share tokens and produce the same dither cells.

Original author description

Build interfaces with fluidither, a dithered, spring-driven UI library for the plain web (HTML, CSS, JS, no framework) and GPUI (Rust). Use whenever someone wants fluidither components, a dithered or print-like interface, ordered dithering, halftone or blue noise effects, dithered charts or backgrounds, spring-based hover and selection motion, or UI that must work under a strict Content Security Policy with no framework. Also use when porting a screen between the web and GPUI, because the two targets share tokens and produce the same dither cells.

How it works

  1. Get the library
  2. The design in one minute
  3. Rules that keep work correct
  4. What to tell people
  5. Check your work
Original SKILL.md headings · 113 lines, 776 words
SKILL.md preview
---
name: fluidither
description: Build interfaces with fluidither, a dithered, spring-driven UI library for the plain web (HTML, CSS, JS, no framework) and GPUI (Rust). Use whenever someone wants fluidither components, a dithered or print-like interface, ordered dithering, halftone or blue noise effects, dithered charts or backgrounds, spring-based hover and selection motion, or UI that must work under a strict Content Security Policy with no framework. Also use when porting a screen between the web and GPUI, because the two targets share tokens and produce the same dither cells.
---

# fluidither

Two targets, one set of tokens. The web target uses real elements with a class wherever
it can, and small custom elements elsewhere. The GPUI target is a Rust crate.

Before writing code, open the reference for your target:

- Web: [references/web.md](references/web.md)
- GPUI: [references/gpui.md](references/gpui.md)
- Screens and patterns: [references/recipes.md](references/recipes.md)
- Adding to the library itself: [references/extending.md](references/extending.md)

## Get the library

Check whether the project already has it before fetching it.

**Web:** with no bundler, copy what you need into the folder you serve. This also prints the
tags to paste into the page:

```bash
npx fluidither add tabs button gradient --dir public/fluidither
```

`npx fluidither list` shows the names, and plain `npx fluidither` copies the whole library.
Rerun either to add more or to update. With a bundler, run
`npm install fluidither` and import by name, such as `fluidither/tokens.css` and
`fluidither/components/tabs.js`. Modules need a web server, so pages won't work from `file://`.

**GPUI:** add the crate, with `gpui` at the same version.

```toml
[dependencies]
fluidither = "0.3"
gpui = { version = "=0.2.2", features = ["runtime_shaders"] }
```

Call `fluidither::init(cx)` once at startup.

## The design in one minute

- **Ink and paper.** Warm neutrals, with color used to carry meaning.
- **Dither instead of tint.** Quiet hover states, dialog screens, the unfilled part of a
  bar and the shading in charts are all a dither. Never put a dither behind body text.
- **Springs instead of durations.** `quick` for hover, `glide` for movement, `settle` for
  arrivals, each with a faster exit: `quickOut`, `glideOut`, `settleOut`. Springs keep their
  speed when the target changes.
- **Motion with a job.** One highlight glides between items, and neighbours merge. Every
  animation should say something about what is happening.
- **Pixel marks.** Ticks, dashes and arrows are small cell drawings from the tokens.
- **Type with a grid.** Obel Mono for code, keys, numeric readouts and short display text;
  system sans for prose and controls. Keep text on clear paper. On the web, add `typography`
  and link its stylesheet to load the self-hosted fonts; include `font-src 'self'` in the CSP.
- **Two densities.** `regular` and `compact`.

## Rules that keep work correct

When editing the library website, keep the dice icon followed by the visible label
**Randomize** in the top-left button. Keep **Documentation** in Obel Mono on the right.
Preserve the button's `randomize` id and the existing R shortcut; don't replace visible
action labels with icons alone.

1. **Use tokens.** Web: `var(--fd-ink)`, `var(--fd-gap)`. GPUI: `Theme::get(cx).colors()`
   and `Density::tokens()`. Never hard-code a color or size that a token covers.
2. **Change tokens in one place.** In a clone of the library, edit `tokens/tokens.json` and
   run `npm run tokens`. Never edit `tokens.css`, `core/tokens.js` or `generated.rs`. In a
   project that copied the source, override `--fd-*` custom properties in its own CSS.
3. **Prefer the real element on the web.** `.fd-button` on `<button>`, `.fd-input` on
   `<input>`, `.fd-accordion` on `<details>`, `.fd-dialog` on `<dialog>`. They bring the
   keyboard and accessibility with them.
4. **Stay inside the strict CSP.** No inline `style` attributes, no `<style>` tags and no
   `data:` images. Setting styles from JS through the CSSOM is fine. Dither CSS masks built
   from data URLs are blocked, so use canvas, or a `repeating-conic-gradient`.
5. **Respect reduced motion.** Components already do. New motion must too.
6. **Keep the targets in step.** The engines in `web/src/core` and `gpui/src` must match
   exactly. After changing one, change the other, run `npm run fixtures`, and run both test
   suites. Avoid `sin` and `cos` per cell. Use `wave`, which is plain arithmetic.
7. **Don't animate with frames on GPUI unless something is really moving.** Any redraw
   repaints the window, so use a slow timer for slow changes.
8. **Label every picture.** A chart needs `aria-label`. Only `<fd-chart>` carries its
   numbers for screen readers.

## What to tell people

- GPUI 0.2.2 has no accessibility API, so screen readers can't see GPUI components. Say so
  whenever you build something on that target that must be accessible.
- Only Chromium and macOS on Apple Silicon have been tested. Firefox, Safari, Linux and
  Windows have not, so say so if a project targets them.
- The world map is a hand-drawn sketch, not geographic data.

## Check your work

In a clone of the library:

```bash
npm test
```

```bash
npm run test:browser
```

```bash
npm run check:centering
```

The last one opens a real window, because GPUI's test platform draws nothing. See how it
looks with `npm run demo` for the web, and the `gallery`, `blocks`, `visuals` and `extras`
examples for GPUI.

In a project using the library, render the page under its real CSP and check the browser
console for violations.
Files in this package (5)
  • SKILL.md 6 KB
  • references/extending.md 3 KB
  • references/gpui.md 8 KB
  • references/recipes.md 4 KB
  • references/web.md 11 KB

Versions

The database has no other skills named fluidither.

Database snapshot: 13.11.2026 · package version 7d61e1660c3e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100dithercn
    Build any dithered visual with the dithercn engine (dither-core, in lib/dither) in a React or shadcn app. Use when the user wants a dither, a dithered or Bayer or halftone or pixel texture, or a dithered background, hero, chart, meter, card, loader, text or image for a landing…
  • 100stipple
    Build dithered UI in Compose Multiplatform with Stipple (io.github.jantursky:stipple). Use it when a user wants a dithered background, button, chart, gauge, progress bar, text or image in Compose, or wants to write a new dither field, pattern or component on Android, iOS, desktop or web.
  • 100diorama-dither
    Build a dithered isometric miniature on the pixel kernel with hard shadows, natural materials and a yard that fills the frame. Use it for a pixel diorama with ordered dither, a translucent ground shadow, and a tap that toggles one state. The pixel skill stays on its three…
  • 100rust-gpui-motion
    Design motion, transitions, and bespoke graphics for native Rust gpui apps — the framework behind Zed and the pd-console operator console. Use for with_animation, easing curves, BoxShadow/glow, breathing dots, pane expand/zoom/slide transitions, and custom paint/Vello/wgpu…
  • 95gpui
    Use when planning, building, or checking a native Rust desktop interface with GPUI, especially when adapting Zed examples, selecting compatible GPUI APIs, or validating a Linux graphical session. Not for ordinary web interfaces or configuring the Zed editor.
  • 100gpui-test
    Writing tests for GPUI applications. Use when testing components, async operations, or UI behavior.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.