icons
Skill1 starsChanged 3 months agoMITView on GitHub
The icon system for an ultraweb build — lucide-react as the default set, ONE stroke width matched to the type weight, a four-step sizing scale locked to typography, currentColor discipline, criteria for when a custom SVG beats a library glyph, and a hard ban on emoji-as-icons. Invoke during the build phase whenever a component needs icons, when choosing or normalizing an icon set, when icons look inconsistent ("mixed icon styles", "icons feel heavy", "icon sizes are all over the place"), or when replacing emoji decorations with real icons.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- JetBrains/intellij-communitytheir own version, first seen Oct 3, 2026
- laguagu/claude-code-nextjs-skillstheir own version, first seen Sep 30, 2026
- dkadts/landing-kit-buildingtheir own version, first seen Aug 19, 2026
- amajorai/skillstheir own version, first seen May 29, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- JetBrains/intellij-community★ 21ksame name
- laguagu/claude-code-nextjs-skills★ 67same name
- amajorai/skills★ 3same name
- dkadts/landing-kit-building★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- ultrawebSkill
- analyticsSkill
- animejsSkill
- api-designSkill
- app-structureSkill
- assetsSkill
- authSkill
- award-canonSkill
- briefSkill
- buttonsSkill
- cardsSkill
- cartSkill
- checkpointSkill
- colorSkill
- command-paletteSkill
- component-apiSkill
- consentSkill
- content-cmsSkill
- copywritingSkill
- databaseSkill
- data-displaySkill
- data-fetchingSkill
- depthSkill
- directionSkill
- emailSkill
- faqSkill
- feature-sectionsSkill
- footerSkill
- formsSkill
- gate-accessibilitySkill
- gate-antislopSkill
- gate-codeSkill
- gate-contentSkill
- gate-performanceSkill
- gate-responsiveSkill
- gate-visualSkill
- handoffSkill
- heroSkill
- hidden-craftSkill
- i18nSkill
- identitySkill
- imagerySkill
- iterateSkill
- layout-gridSkill
- marginaliaSkill
- media-optimizationSkill
- micro-interactionsSkill
- mockupSkill
- motion-languageSkill
- navigationSkill
- overlaysSkill
- page-transitionsSkill
- paymentsSkill
- physicsSkill
- previewSkill
- pricingSkill
- print-craftSkill
- product-detailSkill
- retrofitSkill
- routingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 96
Read SYSTEM.md §type; pick the site strokeWidth from the weight table in rule 2.
- Distinctive: line 100
Verify: run the anti-pattern greps below.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
icons — one stroke, one hand
Stage: Phase 6 — Build (rules recorded in SYSTEM.md during Phase 3) - Reads: design/SYSTEM.md (§type, §shape), design/DIRECTION.md - Writes: §icons rules in design/SYSTEM.md + icon usage across components + components/icons.tsx for custom glyphs
Standard
An icon set reads as one hand or it reads as clip-art. First-grade means one stroke width, one sizing scale, one color rule across every icon on the site — custom ones included. Icons support text; they replace it only for universally understood actions (close, search, menu), and even those carry aria-label. Emoji are never icons — constitution ban; only an explicit justification in design/DIRECTION.md can override it.
Rules
- Default set: lucide-react, named imports only (tree-shaken). shadcn scaffolds
"iconLibrary": "lucide"in components.json — keep it. Lucide icons are plain SVG-rendering components: fine inside Server Components, they force no"use client". - One strokeWidth site-wide, matched to type weight. Light editorial type → 1.5. Standard UI weight → 2 (lucide default, tuned for 24px). Bold/brutalist → 2.25-2.5. One documented exception: icons ≥32px drop 0.25-0.5 so they don't read chunky. Set the value once — a shared constant or thin wrapper, never per-callsite guesses.
- Four sizing steps, locked to type (table below). Nothing between steps.
- currentColor always. Icons inherit text color — never
stroke="#...", never a one-offtext-blue-500. Accent-colored icons only where the accent carries meaning (active state, primary action). - Alignment: wrap icon + label in
inline-flex items-center gap-2(6-10px gap); the icon stays at or below the text's cap height + 2px or it dominates the label. - Icon-only interactive elements: ≥44px touch target,
aria-labelmandatory,focus-visiblering from the system palette. - Decorative icons get
aria-hiddenexplicitly — set it, don't assume the library does.
import { ArrowRight } from "lucide-react";
<ArrowRight className="size-4" strokeWidth={2} aria-hidden />Sizing scale
| Step | px | Class | Where |
| inline | 16 | size-4 | body text, badges, list markers, meta rows |
| control | 20 | size-5 | buttons, inputs, selects, tabs |
| standalone | 24 | size-6 | nav, standalone icon buttons, toasts |
| feature | 32-40 | size-8 / size-10 | feature sections only — stroke drops per rule 2 |
Icon motion follows motion-language's micro tier — transform only, 2-4px of travel:
<Button className="group">
Get started
<ArrowRight
className="size-5 transition-transform duration-[var(--dur-micro)] ease-out group-hover:translate-x-0.5"
aria-hidden
/>
</Button>When custom SVG beats lucide
- The signature move or brand needs a proprietary glyph — the logo mark itself is ultraweb:identity's (public/brand is the single source); decorative motifs coordinate with ultraweb:shape-language.
- A domain concept lucide genuinely lacks — search the set first; most "missing" icons exist under another name.
- Third-party logos: use the official brand SVGs, normalized to the 24-viewBox scale and monochromed to currentColor. Never redraw a brand mark.
Custom glyphs MUST match the system: 24×24 viewBox, the site's strokeWidth, stroke-linecap="round" stroke-linejoin="round" (lucide's caps), stroke="currentColor" fill="none". A supplied brand mark arrives as a file, not a component: run it through ultraweb:media-optimization's SVGO pass, replace every fill="#…"/stroke="#…" with currentColor (or one semantic token where the mark is legitimately two-color), then convert with npx @svgr/cli. Never paste the raw export — hardcoded hex, <style> blocks, id="Layer_1", and inline width/height each defeat theming and trip the greps below. Collect them in components/icons.tsx — one file, plain exported components, no abstraction layer beyond that:
// components/icons.tsx — every custom glyph on lucide's grid
export function IconWave(props: React.SVGProps<SVGSVGElement>) {
return (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}
strokeLinecap="round" strokeLinejoin="round" aria-hidden {...props}>
<path d="M2 12c2.5-5 5-5 7.5 0s5 5 7.5 0" />
</svg>
);
}States
Icons never own states — they inherit the host element's. Color change on hover/active rides the host's transition (micro tier from motion-language). Disabled inherits the host's opacity. Loading swaps the icon for a spinning loader glyph (animate-spin) at the SAME size step so layout never shifts. A toggle icon that changes meaning (menu→close, play→pause) transitions within the micro tier and updates its accessible name with the swap.
Line-draw reveal — rationed
Lucide glyphs are open stroke paths, so they draw. That makes it tempting everywhere; it earns at most three moments per site — the hero mark, one feature-section lede, the 404. Never in nav, buttons, list markers, or beside copy being read: an icon that draws while it is scanned past is noise, not meaning (motion-language's semantic-motion rule).
- Micro or small tier (150-400ms), one-shot on the reveal, never on hover, never looping.
- CSS owns it —
stroke-dasharray/stroke-dashoffset, authored inside@media (prefers-reduced-motion: no-preference)per motion-language. Zero JS, zero dependency. - Under
prefers-reduced-motionthe glyph is DRAWN, not animated — the media query never applies the dash, so reduce users get the finished mark. A path parked at full dashoffset is an invisible icon, not a reduced animation. - Dash length: a bespoke mark in
components/icons.tsxsetspathLength={1}so1 → 0is exact. A lucide glyph cannot take that attribute from CSS, so use a dash longer than any path on the 24-grid and accept the eased-in start.
/* app/globals.css — @layer components; tokens from motion-language */
@media (prefers-reduced-motion: no-preference) {
.icon-draw path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: icon-draw var(--dur-small) var(--ease-out) forwards; }
@keyframes icon-draw { to { stroke-dashoffset: 0; } }
}Multi-path glyphs sequenced against each other, or drawn under scroll scrub, are a different animal: that is a commissioned moment ultraweb:animejs owns, and only when DIRECTION.md names it. One icon never justifies an engine.
Process
- Read SYSTEM.md §type; pick the site strokeWidth from the weight table in rule 2. Record strokeWidth + size steps as §icons in SYSTEM.md.
- Encode the defaults once (shared constant or thin wrapper component).
- While building sections, choose icons semantically — verbs for actions, nouns for objects; no decorative filler icons.
- Custom needs go to
components/icons.tsxmatching the spec above. - Verify: run the anti-pattern greps below; screenshot nav + primary buttons at 100% zoom and check the icons' optical weight sits level with the adjacent text.
Anti-patterns
Greppable — each should return zero:
- Emoji in JSX/copy:
✨🚀🎉✅➡️🔥💡— the constitution's hard ban import * asfrom"lucide-react"— kills tree-shakingstrokeWidth=with more than one distinct value (excluding the documented ≥32px rule)stroke="#/fill="#— hardcoded icon color, and the tell of a pasted brand-mark export- An icon-only
<buttonwithoutaria-label
Visual — caught by screenshots:
- Three identical icon-cards in a row (banned list — ultraweb:feature-sections owns that layout problem)
- A 64px stroke icon posing as an illustration — scaled-up UI glyphs are not artwork; that slot belongs to ultraweb:imagery
- Mixed families (a lucide arrow next to a filled-style social icon at different visual weight)
Worked example — Tidepool, icon system for the analytics marketing site
Moved to references/example.md — read only when this build's case is genuinely ambiguous; the sections above are the decision material.
Composes with
Moved to references/composes.md — the handoff map; load it when orchestrating this skill against its neighbors.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

