Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

@amsterdam/asc-assets

Package Overview
Dependencies
0
Maintainers
10
Versions
37
Issues
File Explorer

Advanced tools

@amsterdam/asc-assets

Contains icons and fonts

    0.38.0latest
    GitHub

Version published
Maintainers
10
Weekly downloads
617
decreased by-21.1%

Weekly downloads

Changelog

Source

[0.38.0]

  • Changed: updated Amsterdam Sans font
  • Changed: show fallback font while font files are loading
  • Added: content prop for StepByStepNav

Readme

Source

asc-assets

This is a standalone package that contains:

  • Fonts (including CSS font-face definitions)
  • Icons (SVGs as React components)

Install

Add this package to your project by running:

npm install @amsterdam/asc-assets

Basic Usage

Icons

import { IconName } from '@amsterdam/asc-assets' return <IconName />

Fonts

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.

Using the Amsterdam CDN

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.

Copying the files at build time

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';

Build Project

npm run build # generates JSX components using the optimized SVG icons

FAQs

Last updated on 28 Nov 2022

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc