Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/ux-similarity-consistency.md
1---2title: Similar Elements Should Look Alike3impact: HIGH4tags: ux, similarity, consistency, visual5---67## Similar Elements Should Look Alike89Elements that function the same should look the same. Visual consistency signals functional consistency.1011**Incorrect (same function, different appearance):**1213```css14.save-button {15background: blue;16border-radius: 8px;17}1819.submit-button {20background: green;21border-radius: 0;22}23```2425**Correct (same function, same appearance):**2627```css28.primary-action {29background: var(--gray-12);30color: var(--gray-1);31border-radius: 8px;32}33```3435Reference: [Law of Similarity](https://lawsofux.com/law-of-similarity/)36