---
name: ui-polish
description: Build and polish website UI so it looks professionally designed, not template-generic — layout, typography, spacing, color, responsive behavior, states, and micro-interactions — in React/Next.js, Vue, Tailwind, or plain HTML/CSS. Use whenever the user builds or tweaks a page, section, landing page, component, navbar, hero, form, or says "bikin tampilan", "rapikan UI", "kurang bagus", "buat responsive", "make it look better", even if they don't mention design.
title: ui-polish
canonical_url: https://skilld.dev/gh/kiln-skills/kiln/ui-polish
last_updated: 2026-11-12T03:45:56.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install kiln-skills/kiln/ui-polish`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/ui-polish`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/kiln-skills/kiln/ui-polish) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/ui-polish`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/ui-polish --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/ui-polish --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# UI Polish

## 1. Read the room first
- Detect the stack: Tailwind (`tailwind.config.*` / `@import "tailwindcss"`), CSS Modules, styled-components, shadcn/ui (`components/ui/`), plain CSS.
- Reuse existing design tokens: colors, fonts, spacing, radius, existing components. Never invent a second button style when one exists.
- If there's no design system, set one small set of tokens (CSS variables or Tailwind theme) before writing components.

## 2. Pick a direction, not defaults
Before coding, decide in one line: the mood (e.g. "calm editorial", "bold startup", "warm local business") and what that means for type, color and density. Avoid the generic look: centered purple gradient hero, three identical icon cards, everything `rounded-2xl shadow-lg`.

## 3. Fundamentals checklist
**Typography**
- Max 2 font families. Body 16–18px, line-height 1.5–1.7; headings tighter (1.1–1.25).
- Line length 60–75 characters (`max-w-prose` / `max-width: 65ch`).
- Clear scale (e.g. 14/16/20/24/32/48) — don't pick random sizes.

**Spacing & layout**
- One spacing scale (4/8px based). Related things closer together than unrelated things.
- Generous section padding (64–128px desktop, 48–64px mobile).
- Use CSS Grid/Flex with `gap`, not margins on children.
- Align to a container width (e.g. 1120–1280px) consistently.

**Color**
- 1 primary, 1 accent max, plus neutrals. Primary only for the main action.
- Text contrast ≥ 4.5:1 (≥ 3:1 for large text). Don't put gray text on colored backgrounds.
- Support dark mode only if the project already does or user asks — and then via tokens.

**Hierarchy**
- Each section has one obvious focal point and one primary CTA.
- Squint test: the most important thing should still stand out when blurred.

## 4. Responsive — mobile first
- Write base styles for ~375px, then add `sm/md/lg` (or `min-width` queries).
- Check 375, 768, 1024, 1440. No horizontal scroll at any width (`overflow-x` is a symptom, fix the cause).
- Tap targets ≥ 44×44px; nav collapses to a usable menu; tables scroll in their own container or become cards.
- Fluid type for big headings: `font-size: clamp(2rem, 5vw, 3.5rem)`.
- Images: `width/height` or `aspect-ratio` set to avoid layout shift; `object-fit: cover`.

## 5. Every interactive element has all its states
hover, focus-visible (visible ring — never just `outline: none`), active, disabled, loading. Forms: label, placeholder that isn't the label, inline error, success. Lists/data: empty state, loading skeleton, error state.

## 6. Motion (subtle)
150–250ms, `ease-out` for entering. Animate `transform`/`opacity` only. Respect `@media (prefers-reduced-motion: reduce)`.

## 7. Verify visually
If a browser tool or Playwright is available, screenshot the page at mobile and desktop widths and actually look at it before reporting done. Fix what looks off — alignment, cramped spacing, orphaned words in headings, uneven card heights.

Report briefly: the direction chosen, what was changed, and anything that needs real content/images from the user.
