Skip to content
r.

prop-for-that

argyleink/prop-for-that · Public GitHub repository

what JS knows, now CSS knows

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

prop-for-that live demo screenshot
Captured from the live demo · 2026-11-01

About this project

Author-written excerpt from the project README.

Expose what JavaScript knows but CSS can't see — as live CSS custom properties.

Sliders, pointer position, element visibility, viewport size, battery, network, sensors — JavaScript can read all of it; CSS can't. prop-for-that writes that runtime state into --live- and --const- custom properties — batched and diffed down to one setProperty per frame — so your CSS can compose and react to it with plain calc() and var().

Zero dependencies. TypeScript. ESM + CJS. SSR-safe.

Requirements and intended audience

Expose what JavaScript knows but CSS can't see — as live CSS custom properties.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-29. Source: https://github.com/argyleink/prop-for-that/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-07-25. Saved release: v0.7.12 · 2026-07-25. These dates do not guarantee ongoing maintenance.

Technologies
TypeScript
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories