The source for UI iconography used in Spectrum CSS
This package uses SVGO to process SVGs and combines them into several sprite sheets for use in this and other projects.
Please do not import assets from the source directory as these are fluid and not part of the semantic publishing contract. Instead, use the dist
directory.
yarn add -DW @spectrum-css/ui-icons
SVGs are available in the dist
directory. They are organized by size. The dist
directory contains the following:
medium
: assets to be used in desktop display formatslarge
: assets to be used in mobile display formatscombined
: assets to be used in products requiring both desktop and mobile display icons to swap quickly or be used in parallelspectrum-css-icons.svg
: a single sprite sheet containing all iconsspectrum-css-icons-medium.svg
: a single sprite sheet for medium iconsspectrum-css-icons-large.svg
: a single sprite sheet for large icons
CSS for the icons is available from the @spectrum-css/icon
package. See the Icon documentation for more information.