Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
lovropodobnik avatar

Ui Refactor

  • 356 installs
  • 41 repo stars
  • Updated January 8, 2026
  • lovropodobnik/refactoring-ui-skill

ui-refactor is an agent skill that applies Refactoring UI HSL palette and contrast rules when refactoring web interfaces so greys, primaries, and semantic colors stay accessible and visually coherent.

About

ui-refactor is a Refactoring UI–inspired agent skill from lovropodobnik/refactoring-ui-skill that guides developers through systematic color refactors for web interfaces. It teaches an HSL-first model—hue 0–360, saturation 0–100%, lightness from black to white—and rejects one-shot five-color generators in favor of full design-system palettes. The workflow builds 8–10 tinted grey shades (cool blue or warm yellow bias), 5–10 primary brand shades, and multi-step semantic accent ramps for destructive, warning, and positive states. Shade generation follows a saturation curve rather than naive lightness-only steps, avoiding muddy dark-on-color text and flat dead greys. Developers reach for ui-refactor when refactoring Tailwind configs, CSS custom properties, or component themes that need accessible contrast without guesswork. The skill is instruction-driven—no external API—and fits agent sessions where the agent is rewriting color tokens, button states, or surface hierarchies in existing React, Vue, or plain CSS codebases.

  • HSL-first palette workflow with explicit hue, saturation, and lightness reasoning
  • 8–10 tinted grey ramps plus 5–10 primary shades and multi-shade semantic accent colors
  • Saturation falloff and hue rotation rules for light and dark ends of a scale
  • WCAG 4.5:1 guidance plus flip-contrast pattern for colored backgrounds
  • Steers away from one-shot five-color generators toward fuller design systems

Ui Refactor by the numbers

  • 356 all-time installs (skills.sh)
  • +22 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #721 of 1,880 Design & UI/UX skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/lovropodobnik/refactoring-ui-skill --skill ui-refactor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs356
repo stars41
Security audit3 / 3 scanners passed
Last updatedJanuary 8, 2026
Repositorylovropodobnik/refactoring-ui-skill

How do you refactor UI colors with accessible HSL palettes?

Apply Refactoring UI–style color and contrast rules when refactoring interfaces so palettes, greys, and semantic colors stay accessible without muddy dark-on-color mistakes.

Who is it for?

Frontend developers refactoring design tokens, Tailwind theme colors, or component palettes who want Refactoring UI–style systematic HSL ramps instead of ad hoc hex picks.

Skip if: Projects needing layout, typography, or component architecture refactors without color-system changes, or teams already locked to a complete design-system package with no palette work.

When should I use this skill?

An interface refactor involves grey scales, primary brand colors, semantic destructive/warning/positive states, or contrast failures on colored backgrounds.

What you get

An HSL-based palette with 8–10 grey shades, 5–10 primary shades, semantic accent ramps, and contrast-safe surface and text pairings.

  • HSL palette specification
  • Grey primary and semantic shade ramps
  • Contrast-safe surface and text pairings

By the numbers

  • Recommends 8–10 grey shades and 5–10 primary brand shades per palette
  • Uses HSL with hue range 0–360 and saturation range 0–100%
  • Defines separate multi-shade ramps for destructive, warning, and positive semantic colors

Files

SKILL.mdMarkdownGitHub ↗

UI Refactoring and Design

This skill applies tactical, logical rules to user interface design. It prioritizes clarity, hierarchy, and systems over "artistic talent."

Core Workflow

1. Feature First: Do not start by designing a "shell" (nav bars, sidebars). Start with the specific functionality (e.g., the search form, the contact card). 2. Low Fidelity: Ignore color, shadows, and fonts initially. Design in grayscale using a thick marker or basic wireframes to solve layout and spacing first. 3. Define Systems: Do not use arbitrary values. establishing restrictive systems for spacing, type, and color immediately. 4. Refine: Apply specific tactics for hierarchy, depth, and polish.

Domain-Specific Tactics

Consult these references for specific implementation rules:

  • Making elements stand out/fit in: See hierarchy.md (Size, weight, contrast, semantics).
  • Whitespace and alignment: See layout-spacing.md (Grids, spacing scales, density).
  • Text and fonts: See typography.md (Type scales, line-height, fonts).
  • Colors and palettes: See color.md (HSL, saturation, accessible contrast).
  • Images, shadows, and polish: See depth-and-polish.md (Light sources, assets, finishing touches).

Quick Heuristics

  • Limit Choices: If you can't decide between two options, you have too many choices. constrain your inputs (colors, font sizes, spacing) to a pre-defined scale.
  • Personality:
  • Serious/Elegant: Serif fonts, sharp corners, gold/blue colors, formal language.
  • Playful/Friendly: Rounded sans-serifs, large border-radius, pink/orange, casual language.
  • Complexity: Do not design for edge cases first. Design the "happy path" (simple version), then iterate for complexity.

Related skills

How it compares

Pick ui-refactor over generic frontend-design skills when the task is specifically palette and contrast refactoring using Refactoring UI HSL curve rules.

FAQ

What color model does ui-refactor use?

ui-refactor uses HSL (hue 0–360, saturation 0–100%, lightness 0–100%) because hue, saturation, and lightness map directly to palette decisions and make systematic shade curves easier than hex or RGB alone.

How many shades does ui-refactor recommend per palette role?

ui-refactor recommends 8–10 grey shades, 5–10 primary brand shades, and multiple semantic accent shades for destructive, warning, and positive states so backgrounds and text each have dedicated ramps.

When should ui-refactor run during development?

Run ui-refactor when refactoring CSS custom properties, Tailwind theme colors, or component styles where greys look flat, primaries lack depth, or text contrast fails on colored surfaces.

Is Ui Refactor safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Design & UI/UXuibranding

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.