sass-google-fonts

1.0.1 • Public • Published

sass-google-fonts Travis status

Include google fonts to your projects

Install

npm install sass-google-fonts

Usage

First you need to import the project.

// Import the project 
@import "node_modules/sass-google-fonts/src/GoogleFonts.scss";

Import your Google font to your project by entering the font name of the font.

// Include a google font 
@include google-font( 'Tintos' );
 
htmlbody {
    font-family: 'Tintos';
}

You can also specify the weight and language you want to include as follows.

// If you want to specify sizes of the font 
@include google-font( 'Tintos', '400,400i,700' );
 
// Include languages of fonts 
@include google-font( 'Tintos', '400,400i,700', 'greek,latin-ext,vietnamese' );

Development

# Install dependencies 
npm install
 
# Run tests one time 
npm run test
 
# Run test driven development 
npm run tdd

Publish to npm

Make sure all tests are successful before publishing to NPM

# Set the version 
npm version {type# major/minor/patch 
 
# Publish to npm 
npm publish
 
# Publish to github 
git push && git push --tags

Package Sidebar

Install

npm i sass-google-fonts

Weekly Downloads

140

Version

1.0.1

License

MIT

Last publish

Collaborators

  • lassehaslev