Introduction - IconComposer

Compose primary and secondary SVG icon masks with deterministic CSS classes.

Layered icons

One primary mask and one optional secondary mask share the same frame.

Alignment grid

Secondary icons can use explicit horizontal and vertical placement classes.

Catalog CSS

The catalog agent maps SVG files to compatible primary and secondary classes.

What is DMBIconComposer?

DMBIconComposer owns reusable CSS primitives and class-generation helpers for composed icon masks. Hosts pass explicit source and output paths when generating catalogs, so the package stays independent from repository-specific folders.

  • The labs host uses the package CSS without changing the public API.
  • The generated gallery scans host asset folders for favicons, logos, and icons.
  • The demo catalog stays under host assets and is not part of the package API.
Final composed icon
dmb-icon dmb-icon-box dmb-icon-mini-gear dmb-icon-variant-settings
Normal state

Composed examples render with the package CSS and generated demo catalog classes.

Empty state

When no generated files exist, the Generated Icons page shows a clear empty message.

Error state

No scan warnings are currently reported.

Realistic data

The page lists source SVG paths, composition options, generated classes, and expected output paths.

Composition examples

Settings overlay

A package icon combined with the built-in settings glyph.

box source icon Primary
gear source icon Secondary
Source images
Source/wwwroot/dmb-icon-composer/icons/core/box.svg Source/wwwroot/dmb-icon-composer/icons/core/gear.svg
Options
DMBIconCompositionVariant.Settings
Generated classes
dmb-icon dmb-icon-box dmb-icon-mini-gear dmb-icon-variant-settings
Warning overlay

A generated host icon with an alert marker at the top right.

demo-project source icon Primary
alert source icon Secondary
Source images
wwwroot/icons/source/demo-project.svg Source/wwwroot/dmb-icon-composer/icons/core/alert.svg
Options
DMBIconCompositionVariant.Warning
Generated classes
dmb-icon dmb-icon-demo-project dmb-icon-mini-alert dmb-icon-variant-warning
Explicit alignment

A source icon with a secondary marker aligned through explicit options.

demo-player-data source icon Primary
gear source icon Secondary
Source images
wwwroot/icons/source/demo-player-data.svg Source/wwwroot/dmb-icon-composer/icons/core/gear.svg
Options
Left + Bottom + Accent
Generated classes
dmb-icon dmb-icon-demo-player-data dmb-icon-mini-gear dmb-icon-secondary-left dmb-icon-secondary-bottom dmb-icon-secondary-tone-accent

Expected formats and sizes

Output path Format Dimensions
Source/wwwroot/css/DMBIconComposer.css CSS classes CSS mask: 1em primary, 0.5em secondary
wwwroot/icons/source/demo-project.svg SVG source SVG viewBox 0 0 64 64
wwwroot/icons/source/demo-player-data.svg SVG source SVG viewBox 0 0 64 64
wwwroot/icons/generated/DMBIconComposer.Demo.css CSS catalog Generated primary and secondary classes
wwwroot/favicons/ ICO, SVG, or PNG Browser favicon family
wwwroot/logo/ SVG or PNG Logo family

Current generated icon files

demo-organization.svg
demo-organization.svg

64 x 64

wwwroot/icons/source/demo-organization.svg
demo-player-data.svg
demo-player-data.svg

64 x 64

wwwroot/icons/source/demo-player-data.svg
demo-project.svg
demo-project.svg

64 x 64

wwwroot/icons/source/demo-project.svg