# @legocss/core

> LegoCSS Core package

Latest version **0.0.8** (published 2020-11-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install @legocss/core
pnpm add @legocss/core
yarn add @legocss/core
bun add @legocss/core
```

## 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.0.8 |
| Published | 2020-11-23 |
| First published | 2020-11-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | morgantaylor |
| Maintainers | mataylo8 |

## Links

- npm: https://www.npmjs.com/package/@legocss/core
- Repository: https://github.com/morgantaylor/legocss
- Homepage: https://github.com/morgantaylor/legocss#readme
- Issues: https://github.com/morgantaylor/legocss/issues
- npm.io page: https://npm.io/package/@legocss/core

## Recent versions

- 0.0.8 (latest) — 2020-11-23
- 0.0.7 — 2020-11-23
- 0.0.6 — 2020-11-23
- 0.0.5 — 2020-11-23
- 0.0.4 — 2020-11-23
- 0.0.3 — 2020-11-23
- 0.0.1 — 2020-11-23
- 0.0.0 — 2020-11-23

## README

# @legocss/core

[![NPM](https://img.shields.io/npm/v/@legocss/core.svg)](https://www.npmjs.com/package/@legocss/core) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm i --save @legocss/core
```

This package contains all Core packages, including:
- utilities [![NPM](https://img.shields.io/npm/v/@legocss/utilities.svg)](https://www.npmjs.com/package/@legocss/utilities) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
- css-reset [![NPM](https://img.shields.io/npm/v/@legocss/css-reset.svg)](https://www.npmjs.com/package/@legocss/css-reset) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
- foundation [![NPM](https://img.shields.io/npm/v/@legocss/foundation.svg)](https://www.npmjs.com/package/@legocss/foundation) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)


## Usage: WIP

To use the core styles in your own css.

`.scss` file:
```bash
@import "~@legocss/core";

.test {
	color: var(--color-primary);
	font-size: var(--type-scale-headline);
}
```

If you want to use the mixins and breakpoints in your own `.scss` files:

```bash
@import "~@legocss/core/dist/_mixins.scss";
@import "~@legocss/core/dist/_breakpoints.scss";

.test-custom {
  @media #{$phone} {
  	@include text(var(--type-scale-headline), 1.25, 600, var(--color-primary));
  	color: var(--color-danger)
  }
}
```

## Development

To compile css to the dist folder - dev:
```bash
npm run dev
```

To compile css to the dist folder - product:
```bash
npm run package
```


## License

MIT © [morgantaylor](https://github.com/morgantaylor)

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