Aller au contenu
Skillpedia
Interfaces (UI/UX)10k · #11897

variant

Ce qu’il fait

Ce skill prend un élément d'interface que vous décrivez et construit trois versions qui diffèrent volontairement. Vous pouvez passer de l'une à l'autre dans la page et choisir la meilleure. Il s'adresse aux designers et développeurs qui explorent des options.

Quand l’utiliser

  • ✓Quand vous voulez essayer trois mises en page différentes pour un écran avant d'en choisir une.
  • ✓Quand vous ne savez pas si un composant doit être plus dense, plus gras ou plus bavard, et voulez comparer les options.
  • ✓Quand vous voulez des versions d'un formulaire ou d'une carte qui diffèrent par la structure, la typographie ou le ton.

Lien du skill

https://github.com/jakubkrehel/skills/blob/main/skills/variant/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/jakubkrehel/skills/blob/main/skills/variant/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Construis trois versions de notre carte tarifaire avec des mises en page différentes pour que je puisse les comparer.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill choisit une façon principale dont les versions diffèrent, comme la mise en page ou la typographie, puis construit trois réponses au même brief. Elles sont placées derrière un sélecteur dans la vraie page, pour que vous puissiez basculer de l'une à l'autre.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Variants

This skill takes one described piece of UI and builds three versions that differ on purpose. They go behind a picker in the real page, so you can flip between them and choose.

It produces candidates and never ranks them. Reviewing existing UI is interface-review and better-interface, stress testing one component is break and working through a component's states is state-machine.

Different answers, not different tints

Each variant is a different answer to the same brief, on an axis this collection owns:

Axis Owner What varies
Structure better-layout Grouping, order, column count, what collapses
Density better-layout Spacing scale, how much fits
Emphasis better-colors Where filled color goes, what recedes
Type better-typography Scale steps, weight contrast, measure
Voice better-writing Labels, tone, how much copy

Pick one primary axis and give each variant a different position on it. The axis names the picker's group heading. Secondary choices follow from it rather than varying on their own. A dense variant may need a smaller type step, and that is coherence, not a second axis.

The floor every variant clears

Before a variant enters the picker it clears better-interface's escalation triggers, which are:

  • Every control has an accessible name and a visible focus indicator.
  • Keyboard reaches everything a pointer does.
  • Motion and auto-playing content respect prefers-reduced-motion.
  • Nothing clips, overlaps or becomes unreachable at 320px width or 200% zoom.
  • Body and control text pass their required contrast ratio.
  • No state or meaning rides on color alone, and no state change on motion alone.
  • A destructive action has a confirmation, an undo or a distinct treatment.
  • Truncated content has a way to reach the full value.
  • Nothing hides past a scroll edge or behind a disclosure with no visible cue.
  • Every error names a way to recover.
  • No semantic color is used against its meaning, such as the danger hue on a non-destructive action.

That floor is identical across variants. It is not an axis and never trades against one. Where a direction can only work by breaking it, say so and drop the direction.

1. Scope one piece

One piece of UI per run. "The dashboard" is not a piece; the metric card is. Where the request spans several, list the candidates and ask which one to explore.

Restate the brief in one sentence: what the thing is, where it renders, what it has to do.

2. Learn the ground

Variants have to look like they could ship tomorrow, so read what they stand on:

  • The styling system, the component library and any motion library.
  • The tokens: color, spacing, radius, type scale, easing.
  • The product's density and voice. A dense professional tool bounds how far the boldest variant may go.
  • Where the piece renders: against what background, beside which neighbours, at which widths.

With no project to read, use neutral grays, one accent and the system font stack, and say that is what you did.

3. Name the axis before writing code

Default to three variants. Go to five only when asked.

Write the set down first, a name and an axis position each. Names say what the direction is, so Quiet, Editorial, Dense, never Option A.

This step is done when no two variants share a position and you can state each one's axis in a phrase.

4. Build it into the real page

Host the variants on the page that will actually contain the piece, with the real chrome, the real neighbours and realistic data.

Select with a URL search param such as ?__variant=quiet, so every variant is a link you can send someone. A grouped list beside the piece sets it. Where there is no room beside the piece, it moves above it as a select with the same groups. picker.md holds the spec.

Render one variant at a time, full size. Thumbnails distort spacing and scale, and spacing is usually the thing you are choosing between.

Variant files may import production components. Only the hosting page imports a variant, and nothing else imports from the harness.

Where no page can host it, build one self-contained HTML file and keep the same picker.

Give every variant real content: product-shaped copy, plausible names and the number of items the page will really carry. Lorem ipsum and three rows make every structure look good.

5. Present the tradeoffs and stop

Load the page once in a browser already at h

Questions fréquentes

Vous dit-il quelle version est la meilleure ?

Non. Il construit les options sans les classer, le choix vous revient.

Les versions sont-elles vérifiées pour une qualité de base ?

Oui. Chaque version doit passer les contrôles du skill, comme des noms accessibles et un focus visible, avant d'apparaître dans le sélecteur.

Relit-il des écrans existants ?

Non. La relecture d'écrans existants relève d'un autre skill, celui-ci ne fait que créer de nouvelles options.

Détails

Description originale de l’auteur

Builds multiple variants of a component you're working on and helps you iterate and pick one.

repo: jakubkrehel/skills

Popularité

Étoiles GitHub
10k
Position au classement
#11897
Licence
MIT
Mis à jour
01/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires