Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ryankiley/tweakit

Repository files navigation

Tweakit

npm

A dependency-free, code-split, real-time parameter panel. Hand it a plain schema and it builds a live control for each value — sliders, toggles, dropdowns, a wide-gamut OKLCH color picker, gradient and cubic-bézier editors, a spring tuner, monitors, a 2D point pad, and more.

Docs & live examples →

Install

npm install tweakit

Use

import { tweaks } from "tweakit";
import "tweakit/css";
const panel = tweaks("Card", {
 blur: [24, 0, 100, 1], // slider
 visible: true, // checkbox
 blend: ["normal", "multiply"], // list
 tint: "#7C5CFF", // wide-gamut color picker
});
document.body.append(panel.el);
panel.on((values) => { /* values.blur, values.tint, ... */ });

Everything else — every control live, the panel API, theming, markup-driven panels, and the two builds (one inlined file vs the code-split entry) — is on the docs site .

Develop

npm install
npm run build
npm test

Contributions welcome — see CONTRIBUTING.md; report security issues per SECURITY.md.

Credits

Inspired by Tweakpane and dialkit. Toolbar and control icons from Lucide / Feather — see THIRD-PARTY-NOTICES.md.

About

A dependency-free, code-split real-time parameter panel — from a plain schema.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /