---
name: distill
description: Distill a page or component to what earns its place and remove the details that make UI look generated. Use when the user says a design looks AI-made, vibe-coded, cluttered or "not pretty", asks to distill or simplify a UI, or points at one element and says "remove", "weaker", "nicer" or "smoother".
---

# Distill

These rules come from redesigning skillui.tech with a designer who kept saying one word at a
time: "preč" (remove), "slabší" (weaker), "krajšie" (nicer), "smooth". Each rule below is a
real change from that work, shown before and after. Apply them in this order, then look at
the rendered page at desktop and phone width before you report.

## How to work

- **Do exactly what was pointed at.** A screenshot with "remove" means that element, not a
  redesign around it. Remove it fully: markup, props, copy that mentions it, dead code.
- **Then distill the neighbours of the same kind.** If one eyebrow goes, all eyebrows go. If
  one side panel goes on the component page, check the guide and skill pages too.
- **Never invent.** No prices, quotes, stats, timestamps or "Pro" plans that do not exist.
  If a feature is not live (install, subscription), remove the UI for it.

## 1. Labels above headings: move them or delete them

Before
```tsx
<p className="text-xs uppercase text-tertiary">Actions</p>
<h1>Hold to confirm</h1>
```
After: the category lives in the breadcrumb, the heading stands alone.
```tsx
<nav aria-label="Breadcrumb">Components / Actions / Hold to confirm</nav>
<h1>Hold to confirm</h1>
```

## 2. Few items: no categories

With 13 components, sections titled "Actions", "Inputs", "Feedback" with a sentence each were
noise. One grid, newest first. Bring categories back when there are enough to need them.

## 3. Side panels of metadata: one line

Before: an aside with Updated / Dependencies / File rows, a divider under each, and a note
about tokens. A guide header with Time / Level / Updated as labelled blocks between two rules.

After:
```tsx
<p className="text-sm text-tertiary tabular-nums">
  25 min read · Medium · Nov 29, 2026
</p>
```
Buttons sit on the same line, right-aligned. No borders above or below.

## 4. Things that do not exist yet: gone

- An "Install" tab with an npx command for a registry that is not deployed.
- A "Pro" badge, a /pro page and "Coming soon" labels for a plan that is not open.
- A props table nobody asked for, a "On this page" TOC, a demo in the hero, a corner
  arrow button on every card (the card footer already opens the detail).

## 5. One button pair, really the same

Before: "Copy .md" was a pill with a hairline, "Download" a rounded rectangle with a
gradient. Different radius, height and material next to each other.

After: same height, same radius, same material family.
```tsx
// secondary
"h-8 rounded-lg px-3 text-xs font-medium bg-linear-to-b from-white to-[#fafafa]
 shadow-[inset_0_-1px_0_rgb(17_17_17/0.04),0_0_0_1px_rgb(17_17_17/0.05),0_1px_2px_rgb(17_17_17/0.06)]"
// primary
"h-8 rounded-lg px-3 text-xs font-medium text-white bg-linear-to-b from-[#2b5aec] to-[#1a4be0]
 shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_0_0_1px_#1640c4,0_1px_2px_rgb(17_17_17/0.14)]"
```

## 6. Strokes: weaker than you think

Hairlines went from `rgba(17,17,17,0.15)` to `0.05`, and again by 30%. Components had their
own hard-coded rings (`/0.12`, `/0.14`) that looked darker than the rest of the site; they
were brought down to `/0.06`. Check hard-coded values, not only the tokens.

## 7. Grey on grey: give it a sheet

Before: a grey demo plate (#f4f4f4) straight on a grey canvas. It melted into the page.
After: a white sheet with a 6px inset, the grey plate inside it, the same build as the cards.
```tsx
<div className="rounded-[22px] bg-white p-1.5 shadow-[0_0_0_1px_rgb(17_17_17/0.03),0_1px_1px_rgb(17_17_17/0.04)]">
  <div className="rounded-[17px] bg-[#f4f4f4] shadow-[inset_0_1px_2px_rgb(17_17_17/0.04)]">…</div>
</div>
```
Same rule for contrast inside components: an active tab pill was grey on a grey track. Now
the track is recessed and the active pill is a raised white key.

## 8. Canvas and panels

- Light only unless the user asks for dark. The canvas is barely tinted (#f7f7f6), tuned in
  small steps ("5% darker", "30% lighter") until it stops reading as grey.
- The sidebar floats as a white panel on the canvas; the content area has no background,
  only its cards are white. Navigation is four links (Home, Components, Guides, Skills),
  no nested lists.
- Content that is narrower than it needs to be is a bug: a guide went from 720px to 1000px.

## 9. Lists of documents are not tables

Before: guides in a table with columns for time, level, date, access and an arrow, and a
grey hover across the whole row. After: each guide is a white sheet with a small paper icon
(folded corner, ".md" label), the title, one line of description, one line of meta.

## 10. Search: compact, no chrome

Before: a blue focus rectangle around the input, the same grid icon on every row, UPPERCASE
group labels, a heavy grey selected row. After: no rectangle, title left and topic right,
the selected row is a raised white key, the description of the selected row sits in the footer,
hints are small printed keycaps.

Inputs draw their own focus state, so the global outline must not reach them:
```css
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
```

## 11. Smooth means compositor-friendly

- Animate `transform`, `opacity` and `clip-path`. A `filter: blur()` on an SVG icon made a copy
  button stutter; scale and opacity alone are smooth.
- When a label changes length, measure the new label and transition the box width instead of
  letting the button jump.
- For drags, move the element in `requestAnimationFrame` on the DOM; tell React only when a
  threshold is crossed and when the drag ends.
- "Animate" plays the whole story on its own (upload, process, ready), not one step per click.
- End states end: when the last step of a progress rail is reached, do not draw a fourth
  check. The rail folds into one badge ("Delivered").

## 12. Toys out, tools in

A knob, a countdown dial, a status LED strip and a VU meter looked nice and did nothing for a
real product. They were replaced by a code input (one real input, paste and SMS autofill,
shake on a wrong code) and a search field. Prefer components people ship every week.

## 13. Material, at about 5%

Keys have a 1px top highlight and a bottom edge and move down 1px when pressed; wells are
slightly inset. Enough to feel touchable, never a costume: no textures, no heavy bevels.

## Report

Three short lists: what you removed, what you merged or moved, what you kept on purpose and
why. Then the screenshots you checked.
