Skip to content

Graphic

Props

PropTypeDefaultDescription
namestringproducts/eid-hubKey into the illustration map: path under illustrations/ without .svg. Must match a value from illustrationNames in @signicat/catnip-assets/illustrations/svg. See Asset keys.
widthnumber0Width in CSS pixels. 0 means “derive from viewBox / height”.
heightnumber0Height in CSS pixels. 0 means “derive from viewBox / width”.
ariaLabelstring""If non-empty, the SVG is exposed as an image with this label. Leave empty for decorative graphics.
testSelectorsobject(see Test Selectors)Overrides for data-test attributes.

See Component API — Props.

Asset keys

  • The canonical list is illustrationNames, exported from @signicat/catnip-assets/illustrations/svg. Run pnpm build in @signicat/catnip-assets after adding or renaming SVGs.
  • A key is always illustrations/<path> without .svg: for example products/eid-hub, hero/onboarding-signicat, signicat-logos/signicat, pictograms/open-banking.

More detail: Graphics (assets) — browse Pictograms, Product logos, and Hero illustrations.

Sizing

widthheightResult
> 0> 0Fixed box (may stretch if aspect ratio ≠ viewBox).
> 00Width fixed; height from viewBox ratio.
0> 0Height fixed; width from viewBox ratio.
00Uses viewBox width and height as pixel dimensions.

Colors

Hero / product / pictogram SVGs use var(--catnip-graphic-primary, …) for primary line art and var(--catnip-graphic-accent, #41FFD1) for accent fills. Those resolve from component tokens on :root (Signicat Brand 900 purple by default) — see Component tokens:

TokenDefault (:root)Role
--catnip-graphic-primaryvar(--catnip-color-brand-900) (#2A0062)Primary fills / strokes
--catnip-graphic-accentvar(--catnip-color-accent-green-300) (#41FFD1)Accent fills in SVG

Override the same variables on the host (or an ancestor) for a one-off. Inside the shadow tree, --catnip-pictogram-accent aliases --catnip-graphic-accent so older SVG hooks still work.

For light/dark or whitelabel, override the component tokens (or host variables). EndUI remaps color.brand.* (so --catnip-graphic-primary follows) and sets --catnip-graphic-accent to Steel 50. There is no separate dark asset per illustration.

Test selectors

AttributeDefault
rootcatnip-graphic

See Component API — Test selectors.

Slots

None.

See Component API — Slots.

Catnip Design System by Signicat