JSPM

  • Created
  • Published
  • Downloads 12762
  • Score
    100M100P100Q131206F
  • License MIT

compiles tailwind like shorthand syntax into CSS

Package Exports

  • @twind/core
  • @twind/core/package.json

Readme

@twind/core

Minimal implementation of a tailwind-compatible CSS-in-JS framework.

This package does not contain any Tailwindcss rules. These are defined in @twind/preset-tailwind.


READ THIS FIRST!

Twind v1 is still in beta. Expect bugs!


Installation

Install from npm:

# Using npm
npm install @twind/core@next

# Using Yarn
yarn add @twind/core@next

Usage

import { twind, cssom, observe } from '@twind/core'

const tw = observe(
  twind(
    {
      theme: {
        /* .. */
      },
      rules: [
        /* ... */
      ],
    },
    cssom(),
  ),
)