# @opticss/template-api

> Simple templates for use in testing with OptiCSS.

Latest version **0.7.0** (published 2020-08-04) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @opticss/template-api
pnpm add @opticss/template-api
yarn add @opticss/template-api
bun add @opticss/template-api
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0 |
| Published | 2020-08-04 |
| First published | 2018-04-24 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | 6.* \|\| 8.* \|\| >= 10.* |
| Dependencies | 4 |
| Unpacked size | 796.5 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Chris Eppstein |
| Maintainers | chriseppstein, epicmiller |
| Keywords | css, cascade |

## Links

- npm: https://www.npmjs.com/package/@opticss/template-api
- Repository: https://github.com/linkedin/opticss
- Homepage: https://github.com/linkedin/opticss/tree/master/packages/%40opticss/template-api
- Issues: https://github.com/linkedin/opticss/issues?q=is%3Aopen+is%3Aissue+label%3Apkg%3Atemplate-api
- npm.io page: https://npm.io/package/@opticss/template-api

## Dependencies (4)

- [postcss](https://npm.io/package/postcss.md) ^7.0.14
- [@opticss/util](https://npm.io/package/@opticss/util.md) ^0.7.0
- [typescript-collections](https://npm.io/package/typescript-collections.md) ^1.2.5
- [@opticss/element-analysis](https://npm.io/package/@opticss/element-analysis.md) ^0.6.2

## 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.7.0 (latest) — 2020-08-04
- 0.6.3 — 2019-09-16
- 0.6.2 — 2019-05-02
- 0.6.1 — 2019-04-30
- 0.6.0 — 2019-04-25
- 0.5.0 — 2019-04-19
- 0.4.0 — 2018-10-19
- 0.3.0 — 2018-04-24
- 0.3.0-rc.1 — 2018-04-24
- 0.3.0-rc.0 — 2018-04-24

## README

OptiCSS
=======

[![Greenkeeper badge](https://badges.greenkeeper.io/linkedin/opticss.svg)](https://greenkeeper.io/)

### OptiCSS is a template-aware stylesheet optimizer.

Most developers don't use OptiCSS directly. You may be looking for a style framework that uses it:

* [CSS Blocks](http://css-blocks.com/)
* *Add your project to this list! We want to collaborate with you on adopting OptiCSS.*

Overall [architecture documentation](./docs/ARCHITECTURE.md).

This is a monorepo, there's different documentation available in the various packages:

### Public API & Libraries:

These packages are what we expect others to have dependencies on. We are careful about their public APIs and backwards compatibility.

* `opticss`: The core library containing the optimizer. [README](./packages/opticss/README.md)
* `template-api` - The template analysis API.
* `element-analysis`: The element analysis API.
* `resolve-cascade` - A library that produces a resolved cascade for CSS
  selectors against a DOM without using a browser. [README](./packages/resolve-cascade/README.md)
* `util` - Common utilities and data structures that we share across our project.

### Internal Dependencies:

These packages are extracted to allow them to be shared. You probably won't
need to depend on them. As long as the other packages in this monorepo
compile and pass tests we don't worry about backwards incompatibilty for
these.

* `simple-template` - A custom template language we use for testing OptiCSS.
* `attr-analysis-dsl` - A custom DSL for expressing attribute analysis succinctly.
* `code-style`: The coding styleguide and linters for OptiCSS. [README](./packages/@opticss/code-style/README.md)

### Miscellany
* `demo-app`: An interactive demo of OptiCSS.

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