@maccesar/aiskills 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/skills/refactoring-ui/SKILL.md +31 -32
- package/skills/refactoring-ui/references/01-foundations.md +69 -0
- package/skills/refactoring-ui/references/02-page-mechanics.md +204 -0
- package/skills/refactoring-ui/references/03-visual-treatment.md +242 -0
- package/skills/refactoring-ui/references/04-polish.md +96 -0
- package/skills/refactoring-ui/references/01-design-process.md +0 -72
- package/skills/refactoring-ui/references/02-visual-hierarchy.md +0 -84
- package/skills/refactoring-ui/references/03-layout-spacing.md +0 -69
- package/skills/refactoring-ui/references/04-typography.md +0 -70
- package/skills/refactoring-ui/references/05-color.md +0 -96
- package/skills/refactoring-ui/references/06-depth-shadows.md +0 -74
- package/skills/refactoring-ui/references/07-images.md +0 -75
- package/skills/refactoring-ui/references/08-finishing-touches.md +0 -91
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# Ch8+9 — Finishing Touches & Leveling Up
|
|
2
|
-
|
|
3
|
-
Source: "Refactoring UI" by Adam Wathan & Steve Schoger
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Replace Bullets with Icons
|
|
8
|
-
|
|
9
|
-
- Default bullet points feel generic and low-effort
|
|
10
|
-
- Replace with icons that match the content:
|
|
11
|
-
- Checkmarks for feature lists or completed items
|
|
12
|
-
- Arrows for directional or sequential lists
|
|
13
|
-
- Content-specific icons (e.g., lock icon for "secure", globe for "worldwide")
|
|
14
|
-
- Icons add visual interest and reinforce meaning simultaneously
|
|
15
|
-
|
|
16
|
-
## Promote Quotation Marks as Visual Elements
|
|
17
|
-
|
|
18
|
-
- Large, decorative quotation marks can become a design element in testimonials and pull quotes
|
|
19
|
-
- Make them large, colorful (use an accent color), and position them prominently
|
|
20
|
-
- The quote mark becomes part of the visual design, not just punctuation
|
|
21
|
-
|
|
22
|
-
## Style Links Intentionally
|
|
23
|
-
|
|
24
|
-
Two approaches depending on context:
|
|
25
|
-
1. **Color + weight:** The standard blue link, but use brand color + slightly heavier font weight
|
|
26
|
-
2. **Thick colorful underline:** A thick border-bottom (2–4px) in an accent color that partially overlaps the bottom of the text
|
|
27
|
-
- Creates visual interest while remaining clearly a link
|
|
28
|
-
- Can use a different color from the text for contrast
|
|
29
|
-
|
|
30
|
-
## Custom Checkboxes and Radio Buttons
|
|
31
|
-
|
|
32
|
-
- Browser default inputs look generic and don't match brand identity
|
|
33
|
-
- Replace with custom-styled equivalents using brand color for the checked state
|
|
34
|
-
- Common pattern: custom checkbox with a checkmark SVG on a colored background
|
|
35
|
-
- Worth the extra markup for polished forms
|
|
36
|
-
|
|
37
|
-
## Accent Borders
|
|
38
|
-
|
|
39
|
-
Use a short, thick accent-color border as a decorative element:
|
|
40
|
-
- **Top of card:** a colored bar at the top edge of a card or panel
|
|
41
|
-
- **Left side of active nav item:** indicates current page/section
|
|
42
|
-
- **Left side of alert message:** differentiates alert types (red=danger, yellow=warning, green=success)
|
|
43
|
-
- **Under a headline:** a short thick underline using brand color
|
|
44
|
-
- **Top of the entire page layout:** thin color strip across the very top
|
|
45
|
-
|
|
46
|
-
These are simple, high-impact touches that add brand identity without complexity.
|
|
47
|
-
|
|
48
|
-
## Background Decoration
|
|
49
|
-
|
|
50
|
-
Options for making backgrounds interesting:
|
|
51
|
-
1. **Solid color change:** Switch from white to a brand color or neutral tint
|
|
52
|
-
2. **Gradient:** Use two hues that are no more than 30° apart on the color wheel — closer = more natural, farther = jarring
|
|
53
|
-
3. **Low-contrast repeating pattern:** Subtle geometric pattern (dots, lines, hatching) at low opacity
|
|
54
|
-
4. **Geometric shapes:** Abstract colored shapes or blobs in the background at low opacity
|
|
55
|
-
|
|
56
|
-
Key rule for gradients: keep hues within 30° of each other for a natural look.
|
|
57
|
-
|
|
58
|
-
## Empty States Are a Priority, Not an Afterthought
|
|
59
|
-
|
|
60
|
-
- Most UIs look broken or confusing when completely empty
|
|
61
|
-
- Design the empty state before adding content — it's often the first thing new users see
|
|
62
|
-
|
|
63
|
-
Good empty state components:
|
|
64
|
-
- Illustration or icon that's contextually relevant
|
|
65
|
-
- Brief, friendly explanation of what belongs here
|
|
66
|
-
- Clear call-to-action (e.g., "Add your first project" button)
|
|
67
|
-
|
|
68
|
-
Additional rule: **hide irrelevant UI until it has content**
|
|
69
|
-
- Tabs with no content, filters with no items, pagination with one page — all look broken empty
|
|
70
|
-
- Don't render those elements until there's content that makes them useful
|
|
71
|
-
|
|
72
|
-
## Alternatives to Borders
|
|
73
|
-
|
|
74
|
-
Borders are often overused. Replace them with:
|
|
75
|
-
1. **Box shadow:** `box-shadow: 0 1px 3px rgba(0,0,0,0.1)` — creates separation without a hard line
|
|
76
|
-
2. **Two different background colors:** alternating section backgrounds communicate separation without borders
|
|
77
|
-
3. **Extra spacing:** more white space between sections often eliminates the need for a border entirely
|
|
78
|
-
|
|
79
|
-
## Think Outside the Box
|
|
80
|
-
|
|
81
|
-
Don't default to generic UI patterns when something more engaging is possible:
|
|
82
|
-
|
|
83
|
-
- **Enriched dropdowns:** add icons, sections, descriptions, or two-column layouts inside dropdowns
|
|
84
|
-
- **Table column hierarchy:** instead of flat equal-weight columns, apply visual hierarchy within cells (primary value large/dark, secondary value small/grey)
|
|
85
|
-
- **Selectable cards instead of radio buttons:** replace radio button groups with styled card options that highlight on selection — more visual, easier to scan
|
|
86
|
-
|
|
87
|
-
## Leveling Up Your Eye
|
|
88
|
-
|
|
89
|
-
Two practices from the book:
|
|
90
|
-
1. **Study unintuitive decisions in good designs:** Look at polished UIs and ask "why did they do that?" Notice the specific, non-obvious choices — the things you wouldn't have thought of
|
|
91
|
-
2. **Rebuild interfaces without DevTools:** Pick a UI from a product you admire and recreate it from scratch, without inspecting the original. Forces you to make real design decisions rather than copying values
|