Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 728 Bytes

installation.md

File metadata and controls

27 lines (17 loc) · 728 Bytes

Installation

!THIS IS CURRENTLY OUT OF DATE!

yarn add -D chronstruct-primitives

Usage note: Requires linaria. See starter for an example.

Also, if you'd like to auto-add import {css} from 'linaria', use:

["chronstruct-primitives", {
    "autoImport": true
}],

in .babelrc

Typescript: reference types

Since this is global, and you have no reason to import {} from chronstruct-primities in your source code, create a global.d.ts file in your project with:

/// <reference types="chronstruct-primitives" />

Now, typescript should understand these primitives and not error.