@amsterdam/asc-assets
Advanced tools
Weekly downloads
Changelog
[0.38.0]
Readme
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
FAQs
Contains icons and fonts
The npm package @amsterdam/asc-assets receives a total of 612 weekly downloads. As such, @amsterdam/asc-assets popularity was classified as not popular.
We found that @amsterdam/asc-assets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.