# postcss-hamster

> PostCSS Hamster

Latest version **1.3.0** (published 2017-06-07) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install postcss-hamster
pnpm add postcss-hamster
yarn add postcss-hamster
bun add postcss-hamster
```

## 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.3.0 |
| Published | 2017-06-07 |
| First published | 2017-04-06 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 45 |
| Author | Grigory Vasilyev |
| Maintainers | h0tc0d3 |
| Keywords | css, postcss, baseline grid, vertical rhythm, typography, sass, compass, ruler |

## Links

- npm: https://www.npmjs.com/package/postcss-hamster
- Repository: https://github.com/h0tc0d3/postcss-hamster
- Homepage: https://github.com/h0tc0d3/postcss-hamster#readme
- Issues: https://github.com/h0tc0d3/postcss-hamster/issues
- npm.io page: https://npm.io/package/postcss-hamster

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^6.0.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2017-06-07
- 1.2.0-rc3 — 2017-05-19
- 1.2.0-rc2 — 2017-05-18
- 1.2.0-rc1 — 2017-05-18
- 1.2.0-rc0 — 2017-05-17
- 1.2.0-beta — 2017-05-15
- 1.1.0-rc1 — 2017-04-17
- 1.1.0-rc0 — 2017-04-17
- 1.0.0-rc9 — 2017-04-13
- 1.0.0-rc8 — 2017-04-11
- 1.0.0-rc7 — 2017-04-11
- 1.0.0-rc6 — 2017-04-11
- 1.0.0-rc5 — 2017-04-10
- 1.0.0-rc4 — 2017-04-09
- 1.0.0-rc3 — 2017-04-08
- … 2 more at https://npm.io/package/postcss-hamster/versions

## README

# PostCSS Hamster Framework

Typography, Vertical Rhythm, Modular Scale, Fluid Responsive Typography functions for CSS. Flexible system with high performance.

Hamster Framework - it's the language of macros and functions, which in the future can be easily transformed into css code and any units. Easy adapted to any user browser resolution.

If your company uses the plugin, then you can contact me and I can attach for free your company logo in main page https://hamster.im.

Support / Discussion: [Gitter](https://gitter.im/postcss-hamster/hamster).

Documentation: [RU](https://hamster.im/hamster-ru.html)

Big article with examples how to use Hamster Framework [RUSSIAN](https://habrahabr.ru/post/328812/)

CSS Code: [Examples](https://github.com/h0tc0d3/postcss-hamster/tree/master/web/src)

# Installation

Be careful if you use precss and cssnext. You need to disable "lookup" plugin in precss and "rem" in cssnext.
They interfere and the hamster plug-in expands their functionality.

```
npm install postcss-hamster
```

## PostCSS

```

var fs = require("fs"),
    postcss = require("postcss"),
    hamster = require("postcss-hamster");

fs.readFile("filename.css", "utf8", (err, css) => {
    postcss([hamster]).process(css).then(result => {
        fs.writeFileSync("outputfilename.css", result.css);
    });
});

```

## Gulp

If you are using postcss-gulp then install version 6.4.0. postcss-gulp@7.0.0 + precss have  bug, and @import can't work correctly.

```
npm install gulp-postcss@6.4.0
```

```

var gulp = require("gulp"),
    sourcemaps = require("gulp-sourcemaps"),
    postcssgulp = require("gulp-postcss"),
    precss = require("precss"),
    autoprefixer = require("autoprefixer");
    hamster = require("postcss-hamster");

gulp.task("css", function () {
  
    var processors = [precss({
        "lookup": false
    }), hamster, autoprefixer({
        browsers: ["> 0.5%"]
    })];

    return gulp.src("./web/src/style.css")
       .pipe(sourcemaps.init())
       .pipe(postcssgulp(processors))
       //.pipe(cssnano())
       .pipe(sourcemaps.write("."))
       .pipe(gulp.dest("./web/css"));
});

gulp.task("default", ["css"]);

```

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