0.2.0 • Published 4 years ago

@tempera/twind v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

twind

An API that generates a Twind instance from a set of design tokens.

Installation

yarn add @tempera/twind

Usage

import getTwind from "@tempera/twind";

const { tw } = getTwind(tokens);

function Demo() {
  return (
    <div className={tw`text-primary`}>
  );
}

Tokens

The plugin expects these specs/tokens to be in the javascript/es6 format which you can generate using Style Dictionary.

In other words, flat modules in PascalCase are expected.

Example:

export const ColorPrimary = blue;
export const ColorSecondary = yellow;

View the source

0.2.0

4 years ago

0.2.0-7

4 years ago

0.2.0-6

4 years ago

0.2.0-5

4 years ago

0.2.0-4

4 years ago

0.2.0-3

4 years ago

0.2.0-2

4 years ago

0.2.0-1

4 years ago

0.2.0-0

4 years ago