
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@amsterdam/asc-assets
Advanced tools
This is a standalone package that contains:
font-face definitions)Add this package to your project by running:
npm install @amsterdam/asc-assets
import { IconName } from '@amsterdam/asc-assets'
return <IconName />
There are currently two ways of including the fonts used in your application, you can either copy them in from this package in your build or include a version from the Amsterdam CDN. Note that if you want to use the version hosted by Amsterdam you must have an application that runs in the amsterdam.nl domain space.
Add the following code to your index.html file:
<link href="https://static.amsterdam.nl/fonts/fonts.css" rel="stylesheet" />
There is nothing more to do, the fonts should now be available in your application.
This step assumes that you are using WebPack, but it should be possible to do this with other tools or a simple shell script as well.
Add the following code to your WebPack configuration:
new CopyWebpackPlugin({
patterns: [
{
from: './node_modules/@amsterdam/asc-assets/static/fonts',
to: 'fonts',
},
],
})
And make sure to import the CSS file in your stylesheet:
@import '~@amsterdam/asc-assets/static/fonts/fonts.css';
npm run build # generates JSX components using the optimized SVG icons
[0.38.0]
FAQs
Contains icons and fonts
The npm package @amsterdam/asc-assets receives a total of 3,662 weekly downloads. As such, @amsterdam/asc-assets popularity was classified as popular.
We found that @amsterdam/asc-assets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.