# sass-google-fonts

> Implement google fonts easily and readable in sass.

Latest version **1.0.1** (published 2017-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install sass-google-fonts
pnpm add sass-google-fonts
yarn add sass-google-fonts
bun add sass-google-fonts
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-12-25 |
| First published | 2017-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lasse S. Haslev |
| Maintainers | lassehaslev |
| Keywords | sass, google-font, readable, webfont |

## Links

- npm: https://www.npmjs.com/package/sass-google-fonts
- Repository: https://github.com/LasseHaslev/sass-google-fonts
- Homepage: https://github.com/LasseHaslev/sass-google-fonts#readme
- Issues: https://github.com/LasseHaslev/sass-google-fonts/issues
- npm.io page: https://npm.io/package/sass-google-fonts

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-12-25
- 0.1.0 — 2017-12-25
- 1.0.0 — 2017-12-25

## README

# sass-google-fonts ![Travis status](https://api.travis-ci.org/LasseHaslev/sass-google-fonts.svg?branch=master)
> Include google fonts to your projects

## Install

```bash
npm install sass-google-fonts
```

## Usage

First you need to import the project.

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

Import your [Google font](https://fonts.google.com/) to your project by entering the font name of the font.

```scss
// Include a google font
@include google-font( 'Tintos' );

html, body {
    font-family: 'Tintos';
}
```

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

```scss
// 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

```bash
# 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

```bash
# Set the version
npm version {type} # major/minor/patch

# Publish to npm
npm publish

# Publish to github
git push && git push --tags
```

---
_Source: https://npm.io/package/sass-google-fonts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
