
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@fishtank/icons
Advanced tools
SVG icons for use with the Fishtank Design System.
On build, any icon in src will be optimized using svgo and saved to icons. We (will) maintain an NPM package with this step already done called @fishtank/icons.
npm install @fishtank/icons
If your project depends on @fishtank/icons, you'll be able to refer to the contents of the icons directory. How you'll do this will depend on your choice of build system or deployment mechanism. At this point, our adopters on using Webpack. If you are using something else, please let us know and we'll update this accordingly.
We recommend using [SVG Sprite Loader] (https://github.com/kisenka/svg-sprite-loader). This loader support a number of different strategies. We've had success with the default runtime.
If you are working with Vue JS, we have built @fishtank/icons-vue, a Vue Component that renders our SVG shapes.
Note that external sprites cannot be used with CDNs or asset hosts due to cross-origin restrictions.
Early on, we decided in favor of using SVG sprites instead of font icons for our design system. To summarize the key points:
More information here: Seriously Don't Use Icon Fonts
We support two different icon sizes: 24px and 32px. Although SVG allows our icons to be infinitely scalable, the icons have been designed to be crisp and not have sub-pixels at those sizes (or integer multiples thereof).
In the future, we may figure out a way to make the icons responsive to the size they're used in.
When dealing with icon accessibility, we follow the advice in this article: Hiding inline SVG icons from screen readers
Many, probably the majority, of articles explaining how to use inline SVG for icons describe multiple ways of ensuring that your SVG graphics have a text alternative. That can be appropriate, but most of the time, at least in my experience, you just want an icon as an added visual cue alongside some text. Just like adding an image via the background-image CSS property. And icons of that kind should not have any text alternative since for a screen reader user that will just duplicate the information already available in plain text.
title elements from the SVGs before packaging them.aria-hidden="true" to the <svg> elementCurrently, we use SVGO's default optimization settings, but we're open to suggestions.
FAQs
The Fishtank Design System's SVG icons.
The npm package @fishtank/icons receives a total of 23 weekly downloads. As such, @fishtank/icons popularity was classified as not popular.
We found that @fishtank/icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.