JSPM

@avalanche/setting-font-families

4.0.0-alpha.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q52916F
  • License MIT

Font families

Package Exports

  • @avalanche/setting-font-families

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@avalanche/setting-font-families) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@avalanche/setting-font-families

Font families.

Install

npm install @avalanche/setting-font-families --save-dev

Basic usage

// Import the main file.
@import 'node_modules/@avalanche/setting-font-families/scss/index.scss';

// Import just the settings file.
@import 'node_modules/@avalanche/setting-font-families/scss/settings';

Usage with node-sass-magic-importer

Using node-sass (or a plugin for Grunt, gulp or webpack which is using node-sass) in combination with the node-sass-magic-importer custom importer, can make importing CSS dependencies from node_modules a much nicer experience.

// Import the main file.
@import '~@avalanche/setting-font-families';

Usage

// Function.
.selector {
  font-family: setting-font-family(a);
}

// Map.
.selector {
  font-family: map-get($font-families, a);
}

Settings

/// Font families.
/// @type Map
$font-families: (
  a: sans-serif,
  b: serif,
) !default;

About

Author

Markus Oberlehner
Website: https://markus.oberlehner.net
Twitter: https://twitter.com/MaOberlehner
PayPal.me: https://paypal.me/maoberlehner

License

MIT