agentsclimarketplace

Ui refactor

Skill bg-szy/TOP-SKILLS/skills/superskills/ui-refactor

全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard

Install
npx -y skills add bg-szy/TOP-SKILLS --skill ui-refactor

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Tactical user interface design guide for fixing layouts, selecting colors and fonts, and creating professional UIs. Use when the user wants to improve an existing UI, fix visual problems, or apply systematic design principles to a layout.

SKILL.md

3.8 KB, as published. Nobody here has run it

UI Refactoring and Design Guide

Systematic approach to interface design, emphasizing logical principles over artistic intuition.

Core Workflow

  1. Prioritize the main feature — don't start with structural chrome (nav bars, sidebars). Start with the specific functionality: the search form, the contact card, the data table.
  2. Grayscale first — resolve layout and hierarchy in grayscale before adding color.
  3. Establish constrained systems — set spacing scale, type scale, and color palette before designing individual components.
  4. Refine with targeted polish — depth, shadow, border, micro-interaction.

Key Principles

Foundation First

"Do not start by designing a 'shell' (nav bars, sidebars). Start with the specific functionality."

Design the thing that matters, then design around it.

Systematic Constraints

Rather than arbitrary choices, establish restrictive systems:

  • Spacing: multiples of 4px or 8px only
  • Typography: defined scale (e.g., 12/14/16/20/24/32/48px)
  • Colors: defined palette — no one-off hex values

"If you can't decide between two options, you have too many choices. Constrain your inputs."

Visual Hierarchy

Every screen has one primary action. Everything else is secondary or tertiary.

Hierarchy tools (use in order of preference):

  1. Size — bigger = more important
  2. Weight — bold = more important
  3. Color — saturated/dark = more important
  4. Spacing — more whitespace = more importance through isolation

Spacing & Density

  • Err on more whitespace, not less — it's easier to tighten than loosen
  • Group related items (reduce space between), separate unrelated items (increase space between)
  • Consistent vertical rhythm: same spacing unit throughout

Typography

Selection criteria:

  • Serious/formal: serif typefaces, restrained weights
  • Approachable/playful: rounded sans-serifs, friendlier weights

Sizing:

  • Body: 16–18px
  • Labels/metadata: 12–14px
  • Headings: create clear size contrast (don't use 18px heading with 16px body)

Never:

  • More than 2–3 typefaces
  • Default system fonts for display/brand contexts
  • Italic AND bold together

Color

Palette construction:

  1. Pick a primary accent (brand)
  2. Build 8–10 neutral shades from that hue
  3. Add semantic colors: error (red), warning (yellow), success (green)

Rules:

  • Use color sparingly — most UI should be neutral
  • Accent color for primary actions and key information only
  • Never use pure black or pure white

Depth & Polish

Adding depth without skeuomorphism:

  • Subtle box-shadow: 0 1px 3px rgba(0,0,0,0.08) for cards
  • Border + background combination: light border + slightly elevated background
  • Micro-interactions: hover states, focus states, transition timing

Personality frameworks:

  • Serious designs: serif typography, formal restraint, muted palette, rectangular forms
  • Approachable designs: rounded corners, energetic accent colors, sans-serif, friendly language

Quick Diagnostic

ProblemFix
Everything looks the same importanceEstablish hierarchy: one primary CTA, supporting secondaries
Design feels clutteredDouble all spacing values, see if it improves
Colors feel inconsistentCreate a 5-color palette and use nothing else
Typography feels chaoticReduce to 2 sizes + 2 weights maximum
Interactions feel deadAdd hover opacity, transition 150ms ease
Shadows feel harshReduce opacity to 0.06–0.10, increase blur

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.