मुख्य सामग्री पर जाएँ
Skillpedia
इंटरफ़ेस (UI/UX)101k · #963

tweaks

यह क्या करती है

यह टूल साइड पैनल में दिए कंट्रोल्स की मदद से किसी डिज़ाइन को विज़ुअली ठीक करने देता है, जैसे रंग, टेक्स्ट का साइज़ और स्पेसिंग। बदलाव तुरंत दिखते हैं और अपने आप सेव हो जाते हैं, जिससे आप बार-बार प्रॉम्प्ट दिए बिना अलग-अलग वर्ज़न आज़मा सकते हैं।

कब इस्तेमाल करें

  • ✓जब आपको कोई डिज़ाइन पसंद हो, लेकिन आखिरी छोटी-छोटी चीज़ें ठीक करनी हों।
  • ✓दूसरों को डिज़ाइन के अलग-अलग वर्ज़न दिखाने के लिए।
  • ✓किसी प्रोजेक्ट का इंटरैक्टिव डेमो बनाते समय।

Skill का लिंक

https://github.com/nexu-io/open-design/blob/main/design-templates/tweaks/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/nexu-io/open-design/blob/main/design-templates/tweaks/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं चाहता हूँ कि यह वेबसाइट नीले मुख्य रंग (primary color) के साथ दिखे, टेक्स्ट थोड़ा बड़ा हो और एलिमेंट्स के बीच कम जगह हो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल आपके डिज़ाइन के साथ कंट्रोल्स वाला एक पैनल जोड़ता है, जिसमें कलर पिकर और बटन होते हैं। ये कंट्रोल्स डिज़ाइन के CSS कोड को तुरंत बदलते हैं और आपकी पसंद सेव कर लेते हैं, ताकि पेज बंद करके दोबारा खोलने पर भी वे बनी रहें।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Tweaks Skill · 参数化变体面板

Wrap any HTML artifact with a side panel of live controls that rewrite CSS custom properties in real time and persist to localStorage. Inspired by the huashu-design tweak pattern.

What you produce

A single self-contained HTML file with two layers:

  1. Stage — the original artifact (landing page / deck / dashboard) re-keyed so all visual decisions read from CSS custom properties: --accent, --scale, --density, --mode, --motion.
  2. Panel — a fixed sidebar (or drawer on small viewports) with form controls bound to those custom properties via a tiny vanilla-JS bridge. Persists every change to localStorage keyed by the artifact identifier.

The user can:

  • Open the artifact and see the stage rendered with their saved preferences (or sensible defaults).
  • Adjust accent / scale / density / mode / motion in the panel and watch the stage update instantly — no rerender.
  • Press <kbd>T</kbd> to hide / reveal the panel; <kbd>R</kbd> to reset to defaults.
  • Refresh the page — every choice is persisted.

When to use

  • The user generated something they like 80% of, and wants to dial in the last 20% themselves.
  • You're presenting a design system / brand and want the audience to feel the variants live (instead of you re-running the agent).
  • You're shipping a stand-alone demo (e.g. a portfolio piece) and want viewers to play.

When not to use

  • One-shot artifacts that won't be iterated on (e.g. a runbook — parameters don't help).
  • When the artifact's value is in fixed ratios (e.g. an infographic with carefully balanced data viz — knobs would degrade it).

The 5 standard knobs

Pick a subset that suits the artifact. Don't ship all 5 if only 2 matter — clutter is a regression.

1. --accent — Accent color

A select with 5–8 curated swatches (don't ship a free color picker — the user will pick a bad color and blame you).

const ACCENT_PRESETS = [
  { id: 'rust',    val: '#c96442', label: 'Rust' },
  { id: 'cobalt',  val: '#2c4d8e', label: 'Cobalt' },
  { id: 'sage',    val: '#4a7a3f', label: 'Sage' },
  { id: 'plum',    val: '#7a3f6a', label: 'Plum' },
  { id: 'graphite',val: '#3a3a3a', label: 'Graphite' },
];

The artifact uses var(--accent) everywhere it had a hard-coded accent before. Border / link / pull-quote rule / CTA all flip together.

2. --scale — Type scale (0.85 / 1.0 / 1.15)

Three settings: Compact (0.85), Normal (1.0), Generous (1.15). All font-size declarations multiply by var(--scale) via calc(... * var(--scale)).

Don't go beyond ±15% — beyond that the layout breaks (column flow, breakpoints, line counts).

3. --density — Layout density (Tight / Normal / Roomy)

Three settings that swap the spacing scale: Tight (0.75) / Normal (1.0) / Roomy (1.4). All padding / gap / margin declarations multiply by var(--density).

This is the highest-impact knob — it's also the most fragile, so every layout-critical container must declare its base spacing in custom properties before you wrap.

4. --mode — Light / Dark

A 2-state toggle. Sets data-mode="light" vs "dark" on the <html> element and the artifact's :root selector responds with two color sets.

If the artifact already has a media-query-based dark mode, replace it with the data-attr version — the user's choice should win over their OS.

5. --motion — Off / Subtle / Lively

Three settings. Maps to a CSS variable --motion-mult that scales all transition-duration / animation-duration declarations:

  • Off — 0s (also disables WebGL canvases / decorative animation).
  • Subtle — 1.0 (the artifact's authored timing).
  • Lively — 1.6 (slower transitions, more visible motion).

Respect prefers-reduced-motion: default to Off if the user has that set, regardless of stored preference.

Host integration contract (REQUIRED)

The OpenDesign viewer toolbar has a Tweaks toggle that drives panel visibility from outside the iframe. For the toggle to bind to your panel, your artifact must speak one of these two protocols (pick one; don't mix). The toolbar enables itself the moment it sees either signal.

Protocol A — postMessage (recommended for agent-generated artifacts)

Use this when the panel mounts via JS (React, vanilla, anything dynamic).

Artifact → host:

  • On mount, post { type: '__edit_mode_available', visible?: boolean } to

…

अक्सर पूछे जाने वाले सवाल

क्या मैं कोई भी रंग बदल सकता हूँ?

आप एक्सेंट रंग और थीम (लाइट/डार्क) बदल सकते हैं। बाकी रंग मूल डिज़ाइन से तय होते हैं।

अगर मैं पेज बंद कर दूँ तो क्या होगा?

आपकी tweak सेटिंग्स आपके ब्राउज़र में अपने आप सेव हो जाती हैं। पेज दोबारा खोलने पर आपकी आखिरी सेटिंग्स दिखती हैं।

क्या मैं मूल सेटिंग्स पर वापस जा सकता हूँ?

हाँ, आमतौर पर सेटिंग्स को डिज़ाइन के मूल डिफ़ॉल्ट पर रीसेट करने का विकल्प होता है।

जानकारी

लेखक का मूल विवरण

Wrap any HTML artifact with a side panel of live, parameterized controls — accent color, type scale, density, motion, theme — that rewrite CSS custom properties in real time and persist to localStorage. Lets the user explore variants of a design without re-prompting the agent. Use when the brief asks for "variants", "side-by-side options", "tweak this", "let me adjust", "live knobs", or "实时调参".

repo: nexu-io/open-design

लोकप्रियता

GitHub स्टार
101k
रैंकिंग में स्थान
#963
लाइसेंस
Apache-2.0
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills