tweaks
Fungsinya
Alat ini memungkinkan Anda menyesuaikan desain secara visual (seperti warna, ukuran teks, dan jarak) menggunakan kontrol di panel samping. Perubahan langsung terlihat dan disimpan otomatis, sehingga Anda bisa mencoba berbagai versi tanpa perlu meminta ulang ke AI.
Kapan dipakai
- โSaat Anda menyukai sebuah desain tetapi ingin menyempurnakan detail terakhirnya.
- โUntuk menunjukkan berbagai versi desain agar orang lain bisa mencobanya.
- โSaat membuat demo interaktif dari sebuah proyek.
Link skill
https://github.com/nexu-io/open-design/blob/main/design-templates/tweaks/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin melihat website ini dengan warna utama biru, teks sedikit lebih besar, dan jarak antar elemen yang lebih rapat.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat ini menambahkan panel berisi kontrol (seperti pemilih warna dan tombol) di samping desain Anda. Kontrol tersebut langsung mengubah kode desain (CSS) dan menyimpan preferensi Anda, sehingga tetap tersimpan meskipun Anda menutup lalu membuka kembali halaman.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:
- Stage โ the original artifact (landing page / deck / dashboard)
re-keyed so all visual decisions read from CSS custom properties:
--accent,--scale,--density,--mode,--motion. - 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
localStoragekeyed 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
โฆ
Pertanyaan umum
Apakah saya bisa mengubah warna apa saja?
Anda bisa mengubah warna aksen dan tema (terang/gelap). Warna lainnya sudah ditentukan oleh desain aslinya.
Apa yang terjadi jika saya menutup halaman?
Preferensi penyesuaian Anda disimpan otomatis di browser. Saat halaman dibuka kembali, desain akan menggunakan pengaturan terakhir yang Anda pilih.
Apakah saya bisa kembali ke pengaturan awal?
Bisa. Biasanya tersedia opsi untuk mengatur ulang ke pengaturan default desain asli.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 101k
- Peringkat
- #963
- Lisensi
- Apache-2.0
- Diperbarui
- 15/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
sample-plugin
101kMembuat agent Anda menghasilkan file metadata untuk pengujian. Ini membantu memastikan kode berjalan dengan benar di berbagai situasi.
aster-atelier
101kMembantu agent Anda membuat website artistik dengan tampilan klasik. Menggunakan citra elegan, langit biru, dan font serif untuk nuansa sinematik.
audio-jingle
101kMembuat agent Anda menghasilkan audio seperti jingle dan efek suara. Bisa membuat musik dan suara, lalu menyimpan hasilnya sebagai file audio.
blog-post
101kMembantu agent Anda menulis artikel panjang atau postingan blog. Sudah tersedia ruang untuk gambar, kutipan, dan informasi penulis.
Skill serupa
canvas
394kMemungkinkan agent Anda menampilkan widget visual yang di-hosting di panel Mac yang terhubung, lalu menyembunyikan panel atau memindahkannya ke halaman lain.
control-ui
394kMembantu agent Anda mengatur dan memecahkan masalah OpenClaw Control UI, termasuk sesi, dasbor, dan Gateway yang terhubung.
diagram-maker
394kMembantu agent Anda membuat diagram yang jelas sebagai SVG, HTML, atau Excalidraw yang dapat diedit untuk proses, arsitektur sistem, dan sketsa papan tulis.