# bmjs-css

> A JavaScript library for generating static CSS.

Latest version **0.1.0** (published 2017-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install bmjs-css
pnpm add bmjs-css
yarn add bmjs-css
bun add bmjs-css
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-11-02 |
| First published | 2017-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brent McCoy |
| Maintainers | brent258 |
| Keywords | css, javascript, nodejs |

## Links

- npm: https://www.npmjs.com/package/bmjs-css
- Repository: https://github.com/brent258/bmjs-css
- Homepage: https://github.com/brent258/bmjs-css#readme
- Issues: https://github.com/brent258/bmjs-css/issues
- npm.io page: https://npm.io/package/bmjs-css

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

- 0.1.0 (latest) — 2017-11-02

## README

# bmjs-css
A JavaScript library for generating static CSS.
```javascript
const css = require('bmjs-css');
```
Start a new CSS stylesheet:
```javascript
css.init();
```
Perform a full reset and add a Bootstrap-style grid with an optional breakpoint ('sm','md','lg','xl'):
```javascript
css.reset();
css.grid('md');
```
Add rules with the **css.tag()** object and chain multiple convenience CSS property methods with an optional breakpoint, then use the **css.tag.close()** method to finalize:
```javascript
let h1 = css.tag('h1').c('#fff').m('15px','md').fontSize('2em').close();
```
Use the **css.add()** method to add the tag to the style sheet and media queries for each breakpoint will be added:
```javascript
css.add(h1);
```
Create animations with **css.keys()**, the first argument is the name, and following arguments are **css.tag()** objects:
```javascript
css.keys('myAnimation', css.tag('from, to').w('100%').close(), css.tag('50%').w('0%').close());
```
When you're finished compress and save:
```javascript
css.minify();
css.file('style.css');
```

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