Skip to content

[Illustrations] Add a package for Elastic illustrations - #9779

Merged
weronikaolejniczak merged 14 commits into
elastic:mainfrom
weronikaolejniczak:feat/illustrations-package
Jul 9, 2026
Merged

weronikaolejniczak merged 14 commits into
elastic:mainfrom
weronikaolejniczak:feat/illustrations-package

Conversation

@weronikaolejniczak

@weronikaolejniczak weronikaolejniczak commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #9781

  • Added a new @elastic/eui-illustrations package. When merged, it will be ready to be published to npm using a fine-grained token. Then, we can configure trusted publishing for it and it will be a part of our regular release pipeline. It's versioned and releasable independently from @elastic/eui. For now it uses Dashboard as an example: [Dashboards] Update empty state kibana#269407
  • Added a new EuiIllustration component to @elastic/eui that reads the source and inlines the appropriate SVG based on the colorMode.

Together, they can be used like so:

import { EuiIllustration } from '@elastic/eui';
import { dashboard } from '@elastic/eui-illustrations';

<EuiIllustration type={dashboard} />

Additionally:

  • Simplified release-prep and release-publish: changed from kebab-case to snake_case, moved shared utilities to release_lib, used yarn workspaces instead of listing all packages and made it possible to tag and create a GitHub Release for independent packages (@elastic/eui-illustrations and @elastic/eslint-plugin-eui.
  • Updated Release CLI to render a correct link in changelogs for independent packages.
  • Skipped EUI tests for @elastic/eui-illustrations and VRT for both @elastic/eui-illustrations and @elastic/eui-test-helpers.

Important

This is supposed to be the first easy step. Feel free to share any ideas for the future and let's add them in next iterations 💪🏻

API Changes

component / parent prop / child change description
EuiIllustration - Added New component that inlines an SVG depending on the colorMode

Screenshots

Storybook

Screenshot 2026-07-03 at 13 10 47 Screenshot 2026-07-03 at 13 11 03

Documentation website

Screenshot 2026-07-03 at 13 11 13 Screenshot 2026-07-03 at 13 11 20

Impact Assessment

Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.

  • 🔴 Breaking changes — What will break? How many usages in Kibana/Cloud UI are impacted?
  • 💅 Visual changes — May impact style overrides; could require visual testing. Explain and estimate impact.
  • 🧪 Test impact — May break functional or snapshot tests (e.g., HTML structure, class names, default values).
  • 🔧 Hard to integrate — If changes require substantial updates to Kibana, please stage the changes and link them here.

Impact level: 🟢 None

Release Readiness

  • Documentation:
  • Figma: {link to Figma or issue}
  • Migration guide: {steps or link, for breaking/visual changes or deprecations}
  • Adoption plan (new features): {link to issue/doc or outline who will integrate this and where}

Kibana PR: elastic/kibana#276287 (based on elastic/kibana#269407)

QA instructions for reviewer

Setup

  • nvm use && yarn at repo root succeeds

@elastic/eui-illustrations

  • yarn workspace @elastic/eui-illustrations build succeeds
  • src/svgs/ contains only <name>.light.svg / <name>.dark.svg pairs
  • yarn workspace @elastic/eui-illustrations generate regenerates src/generated (SVGO-optimized)
  • Adding a new foo.light.svg + foo.dark.svg and re-running generate exposes foo automatically
  • src/generated is git-ignored; *.tgz is git-ignored
  • version is 1.0.0; LICENSE.txt + licenses/ present; license heading exists in all JS/TS files
  • changelogs/CHANGELOG_2026.md + changelogs/upcoming/_template.md exist

EuiIllustration component

  • yarn workspace @elastic/eui build succeeds
  • Exported from @elastic/eui
  • type prop accepts an illustration source
  • Renders light SVG in light colorMode, dark SVG in dark colorMode
  • Size controlled by parent (no size prop)
  • yarn test-unit src/components/illustration passes
  • yarn lint clean

Storybook

  • yarn workspace @elastic/eui start builds with no errors
  • EuiIllustration story renders; type select switches illustrations
  • Story is excluded from VRT (parameters.vrt.skip)
  • Color toggle affects the SVG

Documentation website

  • yarn workspace @elastic/eui-website start builds with no errors
  • Illustrations page renders under Display
  • IllustrationGallery: search filters, selecting a card shows copyable code, spacing looks balanced in light + dark
  • Page mentions independent versioning of the package @elastic/eui-illustrations
  • Page explains EuiIllustration accessibility

CI / pipelines

  • Illustrations-only PR skips heavy @elastic/eui build + VRT (test after merge)
  • Illustrations-only PR still deploys Storybook + Website (test after merge)
  • skip-vrt PR label also skips VRT (validated by this PR)
  • Storybook is built and deployed correctly
  • Website is built and deployed correctly

Release scripts

  • yarn workspace @elastic/eui-release-cli build builds with no errors
  • yarn release:prep --workspaces @elastic/eui-illustrations (dry-run) bumps only that package + opens PR

Kibana integration

  • @elastic/eui + @elastic/eui-illustrations installed with file: tarballs (yarn build-pack)
  • yarn kbn bootstrap --no-validate succeeds
  • Dashboard empty state renders through <EuiIllustration type={dashboardIllustration} />
  • Illustration adapts to Kibana light/dark theme switch

Checklist before marking Ready for Review

Reviewer checklist

  • Approved Impact Assessment — Acceptable to merge given the consumer impact.
  • Approved Release Readiness — Docs, Figma, and migration info are sufficient to ship.

@weronikaolejniczak weronikaolejniczak self-assigned this Jul 3, 2026
@weronikaolejniczak weronikaolejniczak added infrastructure skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) labels Jul 3, 2026
@weronikaolejniczak
weronikaolejniczak force-pushed the feat/illustrations-package branch from b14506f to b41897d Compare July 3, 2026 11:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new independently versioned @elastic/eui-illustrations workspace for theme-adaptive SVG assets, adds a corresponding EuiIllustration component to @elastic/eui that inlines the appropriate SVG for the active color mode, and updates release + CI tooling to support independently released packages and test/VRT skipping rules.

Changes:

  • Added @elastic/eui-illustrations package with SVG authoring/codegen, build outputs, licensing, and initial assets.
  • Added EuiIllustration component to @elastic/eui, plus tests, styles, and Storybook integration; added docs pages/gallery in the website.
  • Refactored release scripts into shared release_lib and added independent-package tagging/linking; adjusted Buildkite test/VRT skip logic.

Reviewed changes

Copilot reviewed 37 out of 41 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
yarn.lock Adds workspace dependency entries for @elastic/eui-illustrations.
scripts/release-publish.sh Removed old kebab-case publish script (replaced by snake_case version).
scripts/release_publish.sh New publish script with shared helpers + independent package tagging/releases.
scripts/release_prep.sh Uses shared release helpers and forwards args to release CLI.
scripts/release_lib.sh New shared helper functions for release scripts (workspace discovery, checks, url encoding).
scripts/independent_packages.json Source of truth list for independently released packages.
packages/website/package.json Adds @elastic/eui-illustrations as a website dependency.
packages/website/docs/components/display/illustrations/index.mdx New docs page for EuiIllustration and illustration catalog.
packages/website/docs/components/display/illustrations/illustration_gallery.tsx New searchable gallery UI for illustration assets.
packages/release-cli/src/update_changelog.ts Updates changelog heading links to support independent package release URLs.
packages/release-cli/src/steps/update_versions.ts Passes package name into changelog update to build correct links.
packages/release-cli/src/independent_packages.ts New helper to load independent packages and compute release URLs.
packages/illustrations/tsconfig.types.json Adds TS config for declaration-only type output.
packages/illustrations/tsconfig.json Adds base TS config for local typechecking (noEmit).
packages/illustrations/tsconfig.esm.json Adds TS config for ESM build output.
packages/illustrations/src/types.ts Defines the illustration data contract types.
packages/illustrations/src/svgs/dashboard.light.svg Adds initial light-mode dashboard illustration SVG.
packages/illustrations/src/svgs/dashboard.dark.svg Adds initial dark-mode dashboard illustration SVG.
packages/illustrations/src/index.ts Exports generated assets and public types.
packages/illustrations/scripts/generate.js Codegen script to optimize SVGs and generate typed modules/registry.
packages/illustrations/README.md New package documentation (authoring/consuming/release instructions).
packages/illustrations/package.json New package manifest, scripts, exports, and devDependencies.
packages/illustrations/licenses/SSPL-LICENSE.md Adds SSPL license text for the new package.
packages/illustrations/licenses/ELASTIC-LICENSE-2.0.md Adds Elastic License 2.0 text for the new package.
packages/illustrations/LICENSE.txt Adds package-level license notice file.
packages/illustrations/changelogs/upcoming/_template.md Adds upcoming changelog template for the new package.
packages/illustrations/changelogs/CHANGELOG_2026.md Adds initial yearly changelog file for the new package (currently empty).
packages/illustrations/.gitignore Ignores build outputs, tarballs, and generated sources.
packages/illustrations/.babelrc.js Babel config for the CJS build step.
packages/eui/src/components/index.ts Exports the new illustration component entry point.
packages/eui/src/components/illustration/index.ts New barrel export for EuiIllustration and its types.
packages/eui/src/components/illustration/illustration.tsx Implements EuiIllustration (theme-adaptive SVG inlining).
packages/eui/src/components/illustration/illustration.test.tsx Adds RTL/Jest tests for rendering, color mode, and a11y behavior.
packages/eui/src/components/illustration/illustration.styles.ts Adds Emotion styles for consistent SVG sizing/layout.
packages/eui/src/components/illustration/illustration.stories.tsx Adds Storybook story wired to @elastic/eui-illustrations.
packages/eui/src/components/illustration/snapshots/illustration.test.tsx.snap Snapshot output for the new component test.
packages/eui/package.json Adds @elastic/eui-illustrations as a devDependency for stories/docs.
packages/eui/changelogs/upcoming/9779.md Adds changelog entry documenting the new EuiIllustration component.
package.json Renames release scripts from kebab-case to snake_case filenames.
.buildkite/scripts/pipelines/pipeline_test.sh Treats packages/illustrations/ as “non-EUI paths” for skipping heavy EUI jobs.
.buildkite/scripts/deploy_docs/step_vrt.sh Adds path-based VRT skipping rules (plus @elastic/eui-test-helpers).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/illustrations/README.md Resolved
Comment thread scripts/release_publish.sh Resolved
@weronikaolejniczak weronikaolejniczak added the skip-changelog-illustrations Use on PRs to skip changelog requirement (for @elastic/eui-illustrations) label Jul 3, 2026
@weronikaolejniczak
weronikaolejniczak force-pushed the feat/illustrations-package branch 2 times, most recently from c2c6664 to fbb1327 Compare July 3, 2026 16:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 41 changed files in this pull request and generated 3 comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 41 changed files in this pull request and generated 3 comments.

Comment on lines +55 to +65
export const EuiIllustration: FunctionComponent<EuiIllustrationProps> = ({
type,
alt,
className,
...rest
}) => {
const { colorMode } = useEuiTheme();
const styles = useEuiMemoizedStyles(euiIllustrationStyles);
const classes = classNames('euiIllustration', className);
const cssStyles = [styles.euiIllustration];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emotion Babel plugin merges css declarations so for Kibana's sake, the spread won't override our styles.

Comment thread scripts/release_publish.sh Resolved
@weronikaolejniczak
weronikaolejniczak force-pushed the feat/illustrations-package branch from 1ea5ce0 to 7937de3 Compare July 3, 2026 17:29
@weronikaolejniczak
weronikaolejniczak marked this pull request as ready for review July 3, 2026 17:31
@weronikaolejniczak
weronikaolejniczak requested a review from a team as a code owner July 3, 2026 17:31
@mgadewoll
mgadewoll self-requested a review July 7, 2026 09:48

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The component might need .test.env variant that instead of rendering SVG renders a simple span with an identifier. Okay to do later.

@mgadewoll

Copy link
Copy Markdown
Contributor

❓ I think the /lib when running build isn't actually added in the gitignore?

@mgadewoll

Copy link
Copy Markdown
Contributor

❓ I think the /lib when running build isn't actually added in the gitignore?

@weronikaolejniczak Actually no, please disregard this. I had switched branches and hence had files leftover, my mistake 🫠
Just checked on this branch to be sure and it's ignored as expected.

@snyk-io

snyk-io Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@weronikaolejniczak weronikaolejniczak removed the skip-vrt Skips Visual Regression Testing job in CI (clearly state why you're using it in your PR) label Jul 9, 2026
@weronikaolejniczak

Copy link
Copy Markdown
Contributor Author

buildkite test this

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 37 out of 41 changed files in this pull request and generated 2 comments.

Comment thread scripts/release_publish.sh Resolved
Comment thread scripts/release_publish.sh Resolved
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
3 visual difference(s) found - expand to review, then click Approve visual changes to update baselines

euicodeblock (1 difference)

StoryBeforeAfterDiff
virtualized code block scrolling desktop

euisuperdatepicker (2 differences)

StoryBeforeAfterDiff
custom time zone display desktop
quick select only desktop

@weronikaolejniczak

Copy link
Copy Markdown
Contributor Author

@mgadewoll re: Kibana CI

Bunch of flakes (unrelated) + a snapshot to update. No changes needed in this PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 39 out of 47 changed files in this pull request and generated 2 comments.

Comment thread scripts/release_publish.sh Resolved
Comment on lines +146 to +150
for i in "${!REL_TAGS[@]}"; do
echo -e " ${BOLD}${REL_TAGS[$i]}${RESET}"
git tag -a "${REL_TAGS[$i]}" "$MERGE_SHA" -m "${REL_TITLES[$i]}"
git push upstream "${REL_TAGS[$i]}" --no-verify
done

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe pre-pending the tag with @elastic/eui would only confuse things because it's an aggregate one and may span several packages.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @weronikaolejniczak

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @weronikaolejniczak

@mgadewoll mgadewoll left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Thanks for the additional changes! LGTM 🚢

@weronikaolejniczak
weronikaolejniczak merged commit 541e102 into elastic:main Jul 9, 2026
1 check passed
mgadewoll added a commit to elastic/kibana that referenced this pull request Jul 17, 2026
## Dependency updates

`@elastic/eui` - v116.5.0 ⏩ v117.0.0

## Changes

- removes temporary custom styles in
`src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx`
(added previously in #273985)
- removes custom icon usages passed via `children` on `EuiCallOut` to
prevent duplication (callouts now have internal default icons per type)
- updates tests and snapshots due to `EuiCallOut` changes

## Package updates

### `@elastic/eui`
[`v117.0.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Added `EuiIllustration` for rendering SVG illustrations (e.g. from
`@elastic/eui-illustrations`) that respond to the active EUI color mode
([#9779](elastic/eui#9779))
- Added `compressed` prop to `EuiSearchBar` to enable compact display
mode for the search box and filter buttons
([#9743](elastic/eui#9743))
- Added `addToChat` glyph to `EuiIcon`
([#9768](elastic/eui#9768))
- Updated `EuiCallOut`:
([#9642](elastic/eui#9642))
    - Updated component styles
- Added `text` prop on `EuiCallOut` which renders the main, inline
callout description text - use this instead of `children` where possible
- Added `actionProps` prop on `EuiCallOut` which renders primary and
secondary action buttons
- Added `showErrorTooltip` (defaulting to `true`) to `EuiSearchBar` to
allow consumers to opt-out of the built-in parse-error tooltip
([#9773](elastic/eui#9773))

**Bug fixes**

- Fixed `EuiToast` cutting off absolute positioned content by removing
`overflow: hidden`. ([#9791](elastic/eui#9791))
- Fixed `EuiFlyout` container-scoped flyouts shrinking below usable
widths for named sizes `s` and `m` by applying minimum width floors
derived from theme breakpoints
([#9787](elastic/eui#9787))
- Fixed `EuiSelectable` with group labels rendering options with stale
heights ([#9770](elastic/eui#9770))

**Breaking changes**

- Removed the `accent` variant for `color` on `EuiCallOut`
([#9642](elastic/eui#9642))
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 5, 2026
## Dependency updates

`@elastic/eui` - v116.5.0 ⏩ v117.0.0

## Changes

- removes temporary custom styles in
`src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx`
(added previously in elastic#273985)
- removes custom icon usages passed via `children` on `EuiCallOut` to
prevent duplication (callouts now have internal default icons per type)
- updates tests and snapshots due to `EuiCallOut` changes

## Package updates

### `@elastic/eui`
[`v117.0.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Added `EuiIllustration` for rendering SVG illustrations (e.g. from
`@elastic/eui-illustrations`) that respond to the active EUI color mode
([elastic#9779](elastic/eui#9779))
- Added `compressed` prop to `EuiSearchBar` to enable compact display
mode for the search box and filter buttons
([elastic#9743](elastic/eui#9743))
- Added `addToChat` glyph to `EuiIcon`
([elastic#9768](elastic/eui#9768))
- Updated `EuiCallOut`:
([elastic#9642](elastic/eui#9642))
    - Updated component styles
- Added `text` prop on `EuiCallOut` which renders the main, inline
callout description text - use this instead of `children` where possible
- Added `actionProps` prop on `EuiCallOut` which renders primary and
secondary action buttons
- Added `showErrorTooltip` (defaulting to `true`) to `EuiSearchBar` to
allow consumers to opt-out of the built-in parse-error tooltip
([elastic#9773](elastic/eui#9773))

**Bug fixes**

- Fixed `EuiToast` cutting off absolute positioned content by removing
`overflow: hidden`. ([elastic#9791](elastic/eui#9791))
- Fixed `EuiFlyout` container-scoped flyouts shrinking below usable
widths for named sizes `s` and `m` by applying minimum width floors
derived from theme breakpoints
([elastic#9787](elastic/eui#9787))
- Fixed `EuiSelectable` with group labels rendering options with stale
heights ([elastic#9770](elastic/eui#9770))

**Breaking changes**

- Removed the `accent` variant for `color` on `EuiCallOut`
([elastic#9642](elastic/eui#9642))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure skip-changelog-illustrations Use on PRs to skip changelog requirement (for @elastic/eui-illustrations)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Illustrations] Add a new @elastic/eui-illustrations package

5 participants