KNOWLEDGE NOTES

Knowledge Notes

Explore curated knowledge, course notes and methods, with their existing content and sources preserved.

This index lists complete English editions. Additional Chinese notes and bilingual updates remain available in the Chinese index.

350knowledge notes
Product Design & UX / Other Product, Design and Learning Materials

Refactoring UI: A Practical UI Handbook for Non-Designers (Hierarchy · Whitespace and Spacing · Color Systems · Typography · Depth and Shadows · Image Processing · Final Polish · Practical Teardowns)

The complete curated notes for Adam Wathan & Steve Schoger's *Refactoring UI* (50+ actionable, copy-ready tips). Core stance: Good-looking UI does not rely on artistic talent, but on a set of concrete rules you can memorize — replace "going by feel" with "checking a checklist". Eight main chapters: ① Starting mindset (start from function not layout · lead with black, white and gray · limit options · define systems in advance, turn every detail you agonize over repeatedly into a rule). ② Visual Hierarchy (make important elements pop: rely not just on font size, but on 3 tiers of font weight + color; de-emphasize secondary content instead of emphasizing it; avoid labels whenever possible; classify buttons into 3 levels: primary/secondary/tertiary, dangerous actions do not need to be big and red; visual hierarchy ≠ HTML document hierarchy). ③ Whitespace and spacing (start with too much whitespace then trim back · spacing/size scales need at least a 25% difference · inter-group spacing > intra-group spacing to prevent ambiguity · grids are overrated, fixed widths are often better · do not scale proportionally · you do not need to fill the screen). ④ Color (use HSL not hex · a complete palette needs 8–10 shades of gray + 1–2 primary colors each with 9 steps + semantic auxiliary colors · predefine color steps 100–900 · grays can carry warm or cool undertones · increase saturation when lightening or darkening · shift hue when lightening to avoid washed-out gray · meet WCAG 4.5:1/3:1 contrast ratios and reverse light/dark direction to avoid oversaturation · do not rely on color alone, pair with icons/arrows). ⑤ Typography (hand-pick a type scale instead of using a formula · line length 45–75 characters · line height moves inversely with width and font size · align to baselines, do not center · left-align long text · links do not all need color · add letter spacing for all caps · use px/rem not em). ⑥ Depth (light comes from above → raised elements are bright on top with shadow below / recessed elements have shadow on top · use two layers of shadows: large soft + small sharp · 5 shadow tiers represent elevation · even flat design can create depth with light/dark contrast, solid-color shadows, and overlapping elements). ⑦ Images (use good photos, do not settle · add overlays/glows to background images to guarantee text contrast · do not enlarge small icons, do not shrink screenshots · use fixed display frames + cover for user-uploaded images). ⑧ Finishing touches (use borders sparingly, replace them with shadows/background colors/spacing · a colored top border instantly elevates polish · refine backgrounds · pay attention to empty states · break out of component conventions). Plus 3 before/after practical teardowns (content page / complex form / data dashboard). Audience: PMs building prototypes; jargon is explained inline, every tip includes Why + do/don't, all numeric values are preserved.

UI DesignVisual hierarchyDesign systemEnglish edition
Product Design & UX / Other Product, Design and Learning Materials

Sajid Code UI Design in Practice (Copy Great Work > Originality / Typography Accounts for 80% of UI / Spacing and Color Selection Methods / Fixing Boring UI)

Distilled notes from Sajid's UI video tutorial (from the Will's Design Notes series), covering 7 topics across 8 sections: ① Only newbies obsess over building beautiful websites (design = solving problems, not art; check top sites on Semrush, they are all simple or even boring; five pillars = layout/typography/color/images/content) ② Originality is overrated (flat design/skeuomorphism/hamburger menu/pull-to-refresh/like button/Google/Facebook/Uber/Airbnb are all remixes; innovation lies in execution, not first invention) ③ Typography accounts for 80% of UI (remove typography styling and the interface falls apart; you only need 3 font sizes + font weights + 3 levels of lightness; use em for line-height to get natural breathing room) ④ Five rules for designing top-tier websites (design less/law of similarity and law of proximity/add more spacing then remove it/design systems/hierarchy is everything) ⑤ Fix boring UI (layer same-hue colors with different lightness + shadows; this gives the highest return from ordinary to good) ⑥ Spacing selection method (anchor font size with rem, tight inside groups and loose outside groups, button vertical padding < horizontal padding, reduce from large values downward) ⑦ HSL color palette (only adjust L lightness to create harmonious color scales; light comes from above so top is bright and bottom is dark; dark mode uses 3 lightness layers at 0/5/10%) ⑧ Motion Contract for web animation (translate perceptual motion effects into 6-dimensional parameterized constraints to feed to AI/developers). Sajid's unique arguments that distinguish him from Refactoring UI: three core mantras of 'function > beauty', 'copy mature work > originality', 'typography accounts for 80%' + treating UI as a minimal variable system (4 typography variables + 3 gray scales are enough) + the Motion Contract motion delivery method. Target readers: PMs making prototypes; jargon is explained in-industry, each section comes with Why + numerical values + do/don't. Division of labor with refactoring-ui: that article is a full handbook of 50+ tips, this article highlights Sajid's core mantras and positions plus his two exclusive tricks of motion/lightness layering; overlapping details on spacing/color/typography point to refactoring-ui and are not rewritten.

UI DesignTypesettingVisual hierarchyEnglish edition