@avalanche/setting-font-sizes

4.0.0-alpha.5 • Public • Published

@avalanche/setting-font-sizes

Font sizes.

Install

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

Basic usage

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

// Import just the settings file.
@import 'node_modules/@avalanche/setting-font-sizes/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-sizes';

Usage

// Function.
.selector {
  font-size: setting-font-size(m);
}

// Map.
.selector {
  font-size: map-get($font-sizes, m);
}

Settings

/// Default font sizes.
/// @type Map
$font-sizes: (
  xs: 0.64em,
  s: 0.8em,
  m: 1em,
  l: 1.25em,
  xl: 1.563em,
  xxl: 1.953em,
  xxxl: 2.441em,
) !default;

About

Author

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

License

MIT

Dependents (0)

Package Sidebar

Install

npm i @avalanche/setting-font-sizes

Weekly Downloads

2

Version

4.0.0-alpha.5

License

MIT

Unpacked Size

2.82 kB

Total Files

7

Last publish

Collaborators

  • avalanche
  • maoberlehner