Custom Gutenberg Blocks

Icon Block

A searchable icon picker with live recoloring and light/dark-background variants, drawn from a curated SVG set.

Block EditorReactSVGDesign Tokens

What it does

Lets editors drop in an icon from a curated set, search it by name, resize it, and recolor it — with dedicated variants tuned for light and dark backgrounds so the default colors always meet contrast.

Why it exists

Editors reach for icons constantly, and left to their own uploads the result is inconsistent sizes, styles, and colors. A fixed, searchable library keeps iconography on-brand while still giving editors real choice and control.

Engineering considerations

Icons are single-color, optimized 24×24 SVGs kept inside the plugin; a build step regenerates the manifest the picker reads, so the available set stays curated rather than open-ended. Recoloring works by swapping the icon’s single fill to the selected color — which is why the library enforces one color per icon — and the light- and dark-background variants ship sensible default colors for their context.

Screenshots & media
Searchable icon picker in the editor
Searchable icon picker in the editor
Light- and dark-background variants
Light- and dark-background variants
Recolored icons on the frontend
Recolored icons on the frontend
SVG recolor to currentColor (edit.js)
SVG recolor to currentColor (edit.js)
Contact

Start a Conversation

Matt works directly with teams and agencies on enterprise WordPress development, from custom Gutenberg experiences to large-scale builds and ongoing engineering support. Available for remote contract engagements.

Connect with Matt