2.1.1 • Published 7 years ago

fyndiq-styles-fonts v2.1.1

Weekly downloads
14
License
MIT
Repository
github
Last release
7 years ago

fyndiq-styles-fonts npm

Font helpers for Fyndiq

Installation

The styles can be installed through NPM:

npm i -S fyndiq-styles-fonts

Usage

This package exposes 2 main modules: bootstrap.css and fonts.css.

bootstrap.css

This script bootstraps the usage of the fonts, declaring and loading the fonts (WOFF, EOT) as well as setting the default font on the <html> tag.

// In Javascript
import `fyndiq-styles-fonts/bootstrap.css`

In order for it to work properly, a custom loader for the WOFF and EOT files need to be implemented in your webpack config

{
  module: {
    loaders: [{
      test: /\.(eot|woff)$/,
      loader: 'file-loader',
    }],
  },
}

fonts.css

This file exposes 2 variables: the @font-standard which corresponds to font supposed to be in the body of your webpage, and @font-headline which corresponds to the headlines font.

@import "fyndiq-styles-fonts/fonts.css";

h3.mySpecialHeadline {
  font-family: var(--font-headline);
}
2.1.1

7 years ago

2.1.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.1-0

8 years ago

2.0.0

8 years ago

2.0.0-pre.0

8 years ago

1.0.0

8 years ago

0.2.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.6

8 years ago