Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@opticss/template-api

linkedin126BSD-2-Clause0.7.0TypeScript support: included

Simple templates for use in testing with OptiCSS.

css, cascade

readme

OptiCSS

Greenkeeper badge

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
  • Add your project to this list! We want to collaborate with you on adopting OptiCSS.

Overall architecture documentation.

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

Miscellany

  • demo-app: An interactive demo of OptiCSS.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.7.0 (2020-08-04)

Features

  • Expose StyleMapping data as public. (ab815be)
  • Record in the stylemapping styles used before optimization. (314a8c9)

0.6.3 (2019-09-16)

Note: Version bump only for package @opticss/template-api

0.6.2 (2019-05-02)

Note: Version bump only for package @opticss/template-api

0.6.1 (2019-04-30)

Note: Version bump only for package @opticss/template-api

0.6.0 (2019-04-25)

Note: Version bump only for package @opticss/template-api

0.5.0 (2019-04-19)

0.4.0 (2018-10-19)

Features

  • Manually throw error for Node 6 in Optimizer. (c4db789)

0.3.0 (2018-04-24)

0.3.0-rc.0 (2018-04-24)

0.3.0 (2018-04-24)

Note: Version bump only for package @opticss/template-api

0.2.0 (2017-11-26)

Note: Version bump only for package @opticss/template-api