Skip to content

chore: draw own marks in CSS and turn one chevron icon in ui-component and svg-sprite-icons skills - #212

Closed
dangreen wants to merge 3 commits into
mainfrom
chore/css-shapes-rule
Closed

dangreen wants to merge 3 commits into
mainfrom
chore/css-shapes-rule

Conversation

@dangreen

@dangreen dangreen commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

A component's own simple mark is drawn in CSS, not taken from the icon set; a glyph many components show, or a picture with real detail, stays an SVG icon, and a picture that only points another way is one symbol the Icon component turns.

ui-component

The rule on simple shapes now names them, a component's own marks (a ring, a dot, a tick, a burger that turns into a cross), and how they are drawn: borders, clip-path or a pseudo-element in currentColor, at the icons' size and line weight. A glyph many components show, such as a chevron, stays an icon. Two sub-rules come with it:

  • A mark that shows a state, such as a tick in a ring or a chevron turned open, is drawn from the state itself (:checked, [aria-pressed='true'], [aria-expanded='true']), never by swapping one icon for another. A swapped sprite icon can flash empty while the browser resolves the new picture.
  • Forced colors drop box shadows and repaint backgrounds, which erases a drawn shape, but keep borders in the system's ink, as they keep an icon's stroke: there the shape is drawn with a border, a ring as a border and a filled shape as a top border as tall as the shape.

svg-sprite-icons

One paragraph after the intro: an icon is a glyph many components show or a picture with detail; a component's own simple mark is drawn in CSS, a state is never shown by swapping icons, and a picture that only points another way is one symbol the Icon component turns in CSS, as the chevron.

🤖 Generated with Claude Code

…svg-sprite-icons skills

A ring, a tick or a chevron is drawn with CSS at the icons' size and weight, and a mark that shows
a state is drawn from that state rather than by swapping icons, which can flash empty while the
browser resolves the new picture. Pictures with detail stay SVG icons.
@dangreen dangreen changed the title chore: draw simple shapes and state marks in CSS in ui-component and svg-sprite-icons skills chore: draw a component's own marks in CSS and turn one chevron icon in ui-component and svg-sprite-icons skills Nov 19, 2026
@dangreen dangreen changed the title chore: draw a component's own marks in CSS and turn one chevron icon in ui-component and svg-sprite-icons skills chore: draw own marks in CSS and turn one chevron icon in ui-component and svg-sprite-icons skills Nov 19, 2026
@dangreen dangreen closed this Nov 19, 2026
@dangreen
dangreen deleted the chore/css-shapes-rule branch November 19, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant